Game Development Community

Environment Maps & Distance

by Tim Lane · in Torque Game Engine · 08/23/2004 (11:47 am) · 5 replies

Hey everybody.

I'm new to TGE but I hope this isn't a newbie question.

I've successfully created a car model, textured it, and imported it into Torque as a .dts. It works fine and everything, but the enviroment map I've applied to it only dispays when the camera is very close to it. The map fades out the farther away the camera goes. When the camera gets about 3 meters away the car looks like it doesn't have any emap at all.

Does anyone have any idea why or what script I can edit to get the emap to draw at farther distances?

I am running an NVidia GeForce MXII on an AMD Athlon on Windows XP if that helps.

#1
08/23/2004 (6:03 pm)
Have you tried looking at the model in the show tool?
#2
08/24/2004 (9:23 am)
I cant really remember, but i think the engine fades out the environment map as you get to the last LOD of your model. So if you only have one LOD it doesnt work at all and if you have 2 it fades out rather quickly. Try adding more low detail levels like 10 and 2 and see if that works.
#3
08/24/2004 (9:29 am)
Yup, I noticed this very same thing. I don't know of any setting that might effect this behavior, but it could be lurking in prefs.cs.

You might want to poke around in Shapebase's render methods to see exactly what is going on.
#4
08/24/2004 (10:12 am)
Thanks guys.

I could be wrong, as I'm new to this, but I dont think the show tool displays emaps. Anyway, I'll definately add more LOD's. I just haven't as of yet 'cause I've just been trying to get my vehicles to work at all. I'll also check ./client/prefs.cs and shapebase.cc(?) to see if there are any clues there.

Thanks again.
- Tim
#5
03/09/2005 (7:22 am)
Did the LODs work for you, Tim?