Game Development Community

A ridiculous phenomena ?

by ChenJian · in Torque Game Engine Advanced · 07/12/2007 (3:54 am) · 4 replies

I do not know if this is an engine bug, and the problem is:
I have a big tree(one dts file without collisions), in front of which there are some grass (one dts file without collisions), like this:

lh3.google.com/chenjianjack/RpYF4aXLiAI/AAAAAAAAADo/7kcCC8mDgAE/front.JPG?imgmax=720
When I change my view angle, a ridiculous phenomena happens--The tree seems going ahead of the grass, see below:

lh6.google.com/chenjianjack/RpYF9KXLiBI/AAAAAAAAADw/pyrLUdTRdIg/hidden.JPG?imgmax=720
Any ideas?

#1
07/12/2007 (8:01 am)
How do the Material entries for the tree and grass look? That might be a transparency or Z-sorting issue.
#2
07/12/2007 (8:17 am)
Is the grass a DTS billboard? If so, it's probably doing that because it's "turning".
#3
07/12/2007 (11:34 am)
I think Andy is probably right on. I'd check the DTS grass shape, maybe you just need to modify the bounding box or something to make the billboarding correct.
#4
07/12/2007 (6:17 pm)
Thanks, Mark and all, I find it do be the business of the Z-sorting issue. In my materials.cs file, I add this:
translucent = true;
translucentBlendOp = LerpAlpha;
translucentZWrite = true;
alphaRef = 100;
And the problem is gone.
Thanks again.