Game Development Community

Texture is White

by Edward A. Kimsa-Rowntree · in Torque Game Engine Advanced · 11/22/2007 (12:33 pm) · 3 replies

Http://img221.imageshack.us/img221/396/wtfhc1.jpg

The material is white from a certain distance and beyond. Up close it shows up fine, is there an exporter option that would cause this to occur? We're using setScale to scale the model down, could that cause this also? (this appears to be the issue, anyone have any idea why that would happen?)

#1
11/22/2007 (12:51 pm)
To explain the situation a little more thoroughly, we've exported a character from 3ds max and have loaded it into the starter.fps scene. However the character is HUGE at its default scale. 0.5% (scaling down to <0.005 0.005 0.005>) of the original scale makes him the same size as the default orc. However after scaling down the character appears as pure white, as if the camera were extremely far from the player and the renderer is saying "he's way out there, let's fog him up." Using our second character and camera we can run up close to our player character and see his texture "de-white" itself.

If we return the character to its default scale and move the camera back far enough to see him, his texture is fine.

- Feynt


PS:
Cancel request, the problem was a fog issue. We've determined we won't really need fog, so setting the game's fog distance up fixed our problem.
#2
11/22/2007 (1:21 pm)
Don't scale him in the engine. Scale him previously to export.

That or go into the bugboards and apply the fog fix ... might help.

main problem is, basically your base character is too large (larger than 70 units) and that can and tends to cause some nasty bugs.
#3
11/27/2007 (1:59 pm)
Our models are about 200+ units, so I guess that explains things. Since they're animated already there isn't much we can do, but I'll inform the modeler for our next version that they should be significantly smaller.

- Feynt