Game Development Community

T3D 1.1F - LevelInfo fog and the leaves in the trees

by Paul Yoskowitz · in Torque 3D Professional · 10/25/2011 (8:28 pm) · 7 replies

I used the Forest editor to create a quick forest and then set the fog in the levelinfo. when i was looking down from a hill, i saw that the fog "engulfed" everything that was it it - except for the leaves of the trees. Those i saw perfectly. I would have thought that maybe it was another sky issue except that i was looking down and the ground should have been behind the trees and leaves.

Is this working as its supposed to? I wouldnt think so, but i want to make sure.

thanks!

#1
10/26/2011 (6:19 pm)
Any idea on this? i just went back and tried this as a regular mesh and using the forest editor and had the same issue with both.
#2
10/26/2011 (9:58 pm)
all transparent materials are rendered on top; through fog, precip..etc etc. In TGEA had similar issues I had to fix, so..when I have a spare moment, I'll look into this and post a fix if I make one.

Unless someone else possibly has one to post ?
#3
10/27/2011 (6:12 am)
ok, i didnt realize that was the issue. a fix would be awesome EB, but your information at least lets me know whats goin on.

would this be considered a bug or is it done this way on purpose?
#4
10/27/2011 (6:41 am)
Try using the alpha-ref rather than the ... thingy ... whatever you're doing now ... translucentBlendOp!

I just got up and am on my first cuppa tea ... brain no work ...
#5
10/27/2011 (6:58 am)
Ill have to chk that when i get home. im not 100% sure where thats set, but ill look tonite.
#6
10/27/2011 (4:11 pm)
@Steve - ok, im missing it apparently. where is alpha-ref set at?
#7
10/28/2011 (3:55 am)
You have to do the same trick as discussed in your plant thread.

For the material of the leaves you should disable Transparency and Transparency Z-Write and enable Alpha treshold and adjust the slider until your texture looks right (I use values around 120 or so). You can also enable Double sided.

This is the same thing that Steve is mentioning, but he needs more tea to get his brain working ;)