Game Development Community

Texture LOD's?????

by Viren Thambidorai · in Torque Game Engine · 09/11/2007 (4:45 am) · 4 replies

Hi all

Plz can anyone explain how we can do LOD's for the textures on an object apart from mesh LOD's?????

#1
09/11/2007 (5:00 am)
Do you mean mipmapping? If so this is handled automatically by the engine.
#2
09/11/2007 (11:02 am)
I have had many situation where i would like to have control over mipmapping. I could not find when in the code this part is handled automatically by the engine.
#3
09/11/2007 (12:21 pm)
In general mipmapping is not handled by the engine. It is a function of the OpenGL drivers of your video card.

That said, TGE does generate its own set of mipmaps instead of letting the driver do it (for historical reasons that are probably no longer practical). This is accomplished when the ResourceManager loads the texture.

I don't think the engine exerts any direct control over when the different mipmaps are swapped out by the video driver since this largely an automatic optimization. There *may* be someway to bias the driver but I don't know if that exists in Torque or not.

The only way I have seen to exert *any* "control" over the mipmaps is by changing the size of your texture (try doubling or halving the image size).
#4
09/11/2007 (3:57 pm)
Ah, interesting. I had poked around the code, but never have enough time to truly look into it.

My biggest problem is with DIF, if i use the SAME texture, but at several different texture scale settings; i often notice ALL of that texture changing mipmap at the same time....