|
Post by pardus on Sept 16, 2021 7:57:39 GMT -5
Not sure how to ask this question. With alpha hairs you have to go through the process of layering the hairs, either in milkshape or separating it in order with blender. Now what I assume is that each cluster of connected faces has a parameter that tells the game engine which group should be rendered on top regardless of its actual position in world space. I believe this is called Z layers. A classic example of this is in your typical first person shooter your gun will never clip into a wall no matter how close you stand against it because the engine is made to draw the image of the gun on your screen even if it should be occluded by other objects. My question is if you have a mesh that is a bit of a clippy mess would that be sorted out if you separate the z layers of whatever accordingly that would make the clipping invisible in game?
|
|
|
Post by mauvemorn on Sept 16, 2021 9:01:35 GMT -5
Hi. We would need to see the problem you're dealing with because there are actually two similar (in appearance) issues that are caused by completely different things. I feel like you're either mixing them both together or mistaking one for another, so let me elaborate: - Z-fighting issue happens when faces overlap with each other. Looks like this: The rendering engine does not know which one to render first because both have the same distance from the camera, both are in the same place in space, neither "comes first". To fix this issue you simply need to move one plane away from another; - Z-sorting issue happens when transparency is involved. The planes can be in completely different places in space, but when you angle the camera in a way that the font of one plane is seen through the front of another, the rendering engine does not understand which one is closer to the camera. This issue is depth-related Here is an example As you see, some planes that are further away from the camera are rendered first then the closer ones. To fix this issue, you need to layer the planes manually, like the onion.
As for your example with the gun, i don't know for a fact but think this a different thing altogether. More like overlay that must always be rendered first?
|
|
|
Post by pardus on Sept 16, 2021 9:54:11 GMT -5
So what exactly happens when you sort the separated groups in milkshape?
|
|
|
Post by mauvemorn on Sept 16, 2021 10:13:50 GMT -5
That fixes Z-sorting ( to an extent, it is not fool proof). It will not fix Z-fighting.
|
|