Different between options in depth sort tab?

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Hamedss
Posts: 98
Joined: Sun Aug 05, 2018 2:52 pm

Different between options in depth sort tab?

Post by Hamedss »

Hi .
There are 3 option in depth sort tab
Enable animation order: let you animate layer order
Sort by true distance : sort layers according to 3d z depth
Sort layer by depth: ? What is this mean? This option is essential to enable pervious option but what it means without 3d z depth?
User avatar
Greenlaw
Posts: 10395
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Different between options in depth sort tab?

Post by Greenlaw »

Layer Order and True Distance are two different ways to display and render layer stacking positions in Moho.

Layer Order uses the order as it appears in the Layers window. This means higher layers will always render in front of the lower layers.

True Distance uses the layer's physical position in 3D space. So if a layer is physically farther away from the camera and other layers, it will appear behind the other layers. If it's closer than the other layers, it will appear in front. To change the stacking relationship, you need to physically move and keyframe the layer in z-space.

There are rare situations where it makes sense to use true distance to sort layers, but I generally suggest sticking with Layer Order. Layer Order is easier to manage and is less prone to user error. You can mix both methods, by the way.

Image
User avatar
Hamedss
Posts: 98
Joined: Sun Aug 05, 2018 2:52 pm

Re: Different between options in depth sort tab?

Post by Hamedss »

Greenlaw. You explained it very nice. Thank you
The distance from camera is not good solution for 3d works because it calculated from the layer origin and makes bizarre results.
The fun thing about depth sort is every group has its depth sort and if in a group we have layers in far z- depth distance they will not appear behind other layer that stacked in lower place. ( I think should switch my 3d brain from 3ds max to 2d moho! 3d world, 😁)
User avatar
Greenlaw
Posts: 10395
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Different between options in depth sort tab?

Post by Greenlaw »

A while back, Lukas made an interesting script that animated an item's z position based on it's relative 2D position, like the item's position on Y.

I'm not sure I remember this accurately, but I think the example he showed was how a character's relative position in front of or behind a tree was based on how close they were to the horizon line along its Y-axis.

Or, I'm just totally making this up. I'll see if I can find the original topic and link it here. :D
User avatar
Víctor Paredes
Site Admin
Posts: 5814
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: Different between options in depth sort tab?

Post by Víctor Paredes »

Greenlaw wrote: Tue Nov 19, 2024 5:24 pm A while back, Lucas made an interesting script that animated an item's z position based on it's relative 2D position, like the item's position on Y.

I'm not sure I remember this accurately, but I think the example he showed was how a character's relative position in front of or behind a tree was based on how close they were to the horizon line along its Y-axis.

Or, I'm just totally making this up. I'll see if I can find the original topic and link it here. :D
Here:
viewtopic.php?f=12&t=33324
It is a great script!
Image Image Image Image Image Image
Moho co-owner

Previously Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
User avatar
Greenlaw
Posts: 10395
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Different between options in depth sort tab?

Post by Greenlaw »

Here we go...

viewtopic.php?t=33324

My description wasn't accurate, but this is generally the idea.

Update: Ah! Victor beat me to it. :D
Post Reply