Textures not showing
by gr33ny · in Artist Corner · 06/10/2007 (6:35 pm) · 2 replies
When i export my constructor models into torque game engine, they show up black with only one face with the texture. when i move the object the blackness goes away and i can see all the texture perfectly but then a relight window pops up and if i relight it reverts back to to being black with only 1 textured face, if i dont relight though then when i load my mission it automatically relights it anyways, and im not sure what is wrong. im not sure if this is in the right section but i appreciate the help. thanks
About the author
#2
now my interior.cc file looks like this:
the beginning of the setupActivePolyList reads:
and since that change it fixes the crashing bug but I am getting the error mentioned above. Texture EXISTS but becomes black upon relight. When you move it its textured again but becomes black upon mission relight and/or game restart which both invoke relighting.
06/25/2009 (9:01 am)
I am having this EXACT same problem. Any help would be appreciated. I had to modify my engine/interior/interior.cc to look like the following to resolve the bug where null.png textures were causing a hard engine crash:now my interior.cc file looks like this:
the beginning of the setupActivePolyList reads:
void Interior::setupActivePolyList(ZoneVisDeterminer& zoneDeterminer,
SceneState* state,
const Point3F& rPoint,
const Point3F& osCamVector,
const Point3F& osZVec,
const F32 worldZ,
const Point3F& scale)
{
// These global variables need to be initialized in case we return early
sgActivePolyListSize = 0;
sgEnvironPolyListSize = 0;
sgFogPolyListSize = 0;and since that change it fixes the crashing bug but I am getting the error mentioned above. Texture EXISTS but becomes black upon relight. When you move it its textured again but becomes black upon mission relight and/or game restart which both invoke relighting.
gr33ny
Http://img236.imageshack.us/img236/9976/lightingproblems1qa8.png
http://img209.imageshack.us/img209/3235/lightingproblems2ci1.png