sortOffset problem

Started by Minigame, April 11, 2013, 02:29:18 PM

Previous topic - Next topic

Minigame

Pic says it all. I don't fully understand how the sortOffset works, but I have played with it a lot and the result is always the same.

Edit: What can I do to determine a proper offset for the z-Sorting? I've read the docs, and the current value is -500k


EgonOlsen

Sorting between transparent objects is done based on the z-coordinate of the object's center in world space. The sort offset that you apply modifies this z-coordinate. In your case, it looks like as if the water plane is always below everything, so you should give it some high positive sort offset to push it back into the sorted list.

Minigame

Quote from: EgonOlsen on April 11, 2013, 04:28:23 PM
Sorting between transparent objects is done based on the z-coordinate of the object's center in world space. The sort offset that you apply modifies this z-coordinate. In your case, it looks like as if the water plane is always below everything, so you should give it some high positive sort offset to push it back into the sorted list.

That worked. Thanks again ;D