Game Development Community

Evmap=true; not working

by Greg Gardinier · in Torque Game Engine · 03/25/2006 (4:40 am) · 3 replies

I am using a stock build of TGE 1.3 ( my project is just two weeks away from completion so using 1.4 is out of the question) For some reason every time I try to use a static shape in any data block in torque my environment maps just up and disappear and "emap=true;" isn't fixing it.

I have a very simple shape that I want to get environment maps working on, and as of a few minutes ago they were working just fine. I have a perfectly functioning png texture with an alpha map in it. So long as the object is a static mesh everything works fine.

myworldforge.com/temp/ggposts/emap.jpg
However, as soon as I try to use the following datablock, and load up my object as shape file inside Torque the evmap disappears. What is REALLY frustrating is that if I use the exact same files and datablock inside stock TGE 1.4 the environment maps WORK.

datablock ItemData( teleport )
{
    category = "customstuff";
    shapeFile = "~/data/shapes/pumpfix.dts";
    emap = true;

};

function teleport::onAdd(%this,%obj)
{
	%obj.playThread(0,"pump");
}

So this leads me to ask the question: is this a bug in TGE 1.3, or is there just something I need to do differently? If it is a bug in 1.3 then is there can anyone direct me to the files I need to look at to port the fix from 1.4 back to my build...

Thanks in advance

#1
03/25/2006 (5:04 am)
Wow, I feel dumb. For some odd reason I had accidently swapped out the client folder with an older version and the $pref::environmentMaps option was set to 0.

I changed it 1 and it worked.

lol

I am not crazy...really
#2
03/25/2006 (7:58 am)
LOL~

I promise you're not the only one who's done things like that.

In fact, I think I've done exactly that in the past. =)
#3
03/25/2006 (8:04 am)
I second that LOL

I was swearing at my monitor & bashing my desk. Then I opened up me prefs file and had to take my foot out of my mouth.

I saw the forum post & was ready to reply with "set the $pref::environmentMaps to true" but you beat me to it.