Author Topic: sortOffset problem  (Read 955 times)

Offline Minigame

  • int
  • **
  • Posts: 55
    • View Profile
sortOffset problem
« on: April 11, 2013, 02:29:18 pm »
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

« Last Edit: April 11, 2013, 02:39:19 pm by corey »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11744
    • View Profile
    • http://www.jpct.net
Re: sortOffset problem
« Reply #1 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.

Offline Minigame

  • int
  • **
  • Posts: 55
    • View Profile
Re: sortOffset problem
« Reply #2 on: April 11, 2013, 06:11:16 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