Double Wall Floors on Sandbox

mamakisupa007Apr 27 200906447
    Halo and Forge Discussion

I am currently building a map in the sky bubble. I'm pretty far in and I just realized I am having serious issues with my flooring. The issue is with double walls being turned on their side and used as a floor. After saving and quiting, when the game is reloaded, the floors will be incredibly bumpy and angled, even though it was perfect when I saved. After doing some research I found this on Bungie.

Enter the Engineer

The Problem

When using double walls (or some other objects) to create a "floor," sometimes the objects become "bumpy" after saving and reloading the map.

The Cause

There are a near-infinite number of possible orientations that an object can be placed in. While you are editing a map, the objects are allowed to be in pretty much any orientation. When we save the map, we quantize the orientation in order to save space in storage. What this means is that the orientation you get when you load the map might not quite be what it was when you saved it.

Specifically, we store what direction the object's 'up' vector is pointing, and a rotation around that vector from its default position. When you first create an object in forge, its up vector is pointing straight up, and its rotation is zero. If you leave the object in a straight-up position, we use a special quantization method that preserves more precision for the rotation.

But if you tilt it (on its side, for example), then more of the storage space has to be used for that direction, and the rotation can lose precision. What this means is that when you are creating a floor out of walls, it's using the less precise method. The good news is that it's usually easy to predict which way the quantization error will go.

"Why can't you fix this?"

This problem is really inseparable from the way we store Map Variants on the disk. If we change the way the maps are encoded, then all the content saved in the old method could become invalid. It's a complex problem, and complexity means high risk. And risky changes are not something you want to make in a patch to a console game.

The Forge engine was built before we ever knew that maps like Foundry and Sandbox would exist. And this problem, of course, has been present since day one. It only now became apparent because people are building truly amazing maps and demanding more fidelity out of Forge.

"How about some good news?"

As outlined above, you should leave objects pointing 'up' if you can. If possible, create your floor out of double boxes instead of double walls. No effort, no bumps!

If you must use double walls for the floor, pay close attention to the location and direction of the helper gizmo (the blue/white orb that shows the origin of the object). When saved, walls placed horizontally tend to rotate such that the "forward" end of the gizmo is pointing slightly downward. You can use this to your advantage by placing walls that are end-to-end rotated 180 degrees from each other, so that both edges will be either high or low. Walls placed side-by-side should have the same gizmo orientation. See the following diagram:

Blame Stosh

Again, this is an issue that only crops up when you are rotating objects around their Z-axis, and most commonly, when shifting objects out of their initial orientation (i.e. laying a wall onto its side). The easiest solution is to make such shifts to orientation as sparingly as possible, or if you must, to simply follow the diagram Cable has laid out, juxtaposing the objects based upon the "gizmo," so that any variation you come across becomes uniform and therefore, less noticeable to players who traverse your map.

Yanking the network cable from the back of your Xbox 360, as some have suggested, does not resolve this issue.

I am trying to find out if anyone has had success using their alternating direction suggestion to fix this problem. I have been trying this for a while now and I can't get them to stay smooth using this method. If anyone has a technique that can salvage my map, please let me know. If I am just wasting my time and there is no way to make a smooth wall floor, let me know, too.