Game Development Community

Textures appear great with WorldEditor but not in my game [SOLVED]

by Isidoros · in Torque Game Engine · 10/23/2009 (10:19 am) · 0 replies

I have created a simple rock item. Inside the WorldEditor the texture of the rock is what Iam expecting (screenshot here)! When I use the rock inside my mission the texture has not the same quality (screenshot here).

Just to note that I have written my own "common" (and ofcourse "control") scripts. Any ideas how to solve this? Can the problem be a $pref variable that I have not added in my prefs?


EDIT (solved):

Ok I found it. I had added these OpenGL preferences:
$pref::OpenGL::gammaCorrection = "0.5";								
$pref::OpenGL::compressionHint="GL_DONT_CARE"; 							
$pref::OpenGL::textureAnisotropy = "0.3";	
// -->mipmapping levels-values 0 to 5
$pref::OpenGL::mipReduction="3";
$pref::OpenGL::interiorMipReduction="2";
$pref::OpenGL::skyMipReduction="3";
// <--

I don't know which of them causes the problem. I REMOVED them and its ok now even the skybox edges (check the second link I gave and notice the sky on the right, above the hill-you can see the edge of the sky box)!