Page 1 of 1

Depth sorting problem

Posted: Thu Feb 24, 2005 9:31 pm
by jorgy
Okay, now I know this is probably a FAQ, but since I've searched through the forum here and didn't find the answer I think it's time to post it.

I have been making a 3D model out of 2D vector layers (and I have gotten past the origin issues I was seeing before by moving entire layers, not the contents). However, I am having visibility problems.

Image

Image

As I drag the orbit workspace tool, the sides of the barn move in front of and in back of the front of the barn. I have put these layers into a group layer, and in the group layer checked "sort layers by depth". I also played with the "true distance" option there, but it didn't seem to help. Note that when I do a render preview, it shows up incorrectly as well.

Here is my moho file.

Thanks!

Posted: Thu Feb 24, 2005 9:38 pm
by Hiddicop
Ok, I checked you file and located the problem.

The orgin-points in the sides of the barn are incorrectly placed. The "sort layers by depth" function measures the distence to the orgin-point. If you stand facint forward the barn, the orgins of the sides are closer to you then the orgin of the front. Therefor they will be counted as "closer to the camera". If you put the orgin in the center of each layer, this problem will not occure.

Posted: Thu Feb 24, 2005 9:38 pm
by Lost Marble
When you sort layers by depth, they are sorted based on layer origins. The layer with the furthest origin point from the camera gets drawn first, etc.

In your barn, if you look at the two side layers, you'll see that the origins for those layers are out in front of the barn, so Moho thinks they should appear in front of the barn's front side. I just moved the origins of those two layers so that they're in the middle of the side walls, and it works much better:

http://www.lostmarble.com/misc/Barn.moho

Posted: Thu Feb 24, 2005 10:05 pm
by jorgy
Wonderful! Thanks! I had been messing around with the origins before I had put the layers into a group layer.

The only thing better than moho is the moho support here!