Game Development Community

Environment Mapping issues

by Ken Beard · in Torque Game Engine · 12/10/2006 (10:50 am) · 3 replies

Greetings everyone,

I have what I believe and hope is a newb issue. I'm trying to use environment mapping on a car model I have made. Here is what I can tell you,

- Model was made and exported via milkshape using the ms2dtsplus plug in.
- Model shows correct e-maping in showtool pro
- my car.cs file has emap = true; enabled.
- I'm using Torque 1.5

The problem,

The car doesn't display the environment map. BUT if I load the dts file as a static mesh the environment map is displayed and it is correct. Does anyone have any idea why environment mapping isn't working on a scripted model? Also would like to note, the bravetree car pack does the same thing. The environment map doesn't work unless the car is added as a static mesh. Below is a pic, you can kind of see the car in the distance is shinny compared to the dull black one I am driving towards it.

www.motorworldonline.net/media/emaptrue.gif

#1
12/14/2006 (12:42 am)
Just in case anyone else is having this problem I found that in the perfs.cs that environment mapping is set to 0. Simply changed the value to 1 and everything worked fine.
#2
12/20/2006 (11:23 am)
If you don't mind me asking what was the variable in prefs.cs called?
#3
12/20/2006 (11:36 am)
I think he means this one $pref::environmentMaps = "1"; in example/starter.fps/client/prefs.cs.