Game Development Community

Help:About Environment mapping.

by Winsoft · in Torque Game Engine · 08/12/2006 (10:46 am) · 1 replies

Hi,I have done the following according the turotial,but it still doesn't work.

1. Check the reflection channel in the material editor. Adjust the spinner that is next to the reflection channel, you can control the amount of reflectivity the object has.

2. In player.cs file, set emap to true;

3. In \client\prefs.cs, change the value of $pref::environmentMaps from 0 to 1.

And the texture for the model is jpg format without alpha info,Does it matter?Or should I assign a texture,such as png format, with alpha info the model?

thanks a lot!

#1
08/12/2006 (11:28 am)
Yes, use a PNG for alpha. I think you can use jpg's with alpha as well, but the filename has to be something like:
myTex.alpha.jpg

I find it easier to just use a png.