Game Development Community

TGEA 1.8 Mac Bug -- Bad Sun Color on Legacy Terrain

by Jeff Faust · in Torque Game Engine Advanced · 01/07/2009 (2:30 pm) · 2 replies

In TGEA 1.8 on Mac OS-X, when the Sun's color is used to light legacy terrain, the red and blue component of the color is reversed.

Here is an image made with the T3D example on Windows and Mac OS-X. The only change from stock was to change the Sun color to a primary red with no ambient.

arcane-fx.com/visuals/forums_pics/red_blue_sun.jpg

About the author

Jeff Faust creates special effects indie middleware and games for Faust Logic. --- Blog: Effectronica.com --- Twitter: @FaustLogic


#1
01/07/2009 (2:37 pm)
Also, if the Sun's ambient is set to a primary red with no color, red and blue are still reversed on the terrain lighting.
#2
01/17/2009 (12:09 am)
D'oh, my bad! In gfxGLDevice.cpp, line 102, change
mDeviceSwizzle24 = &Swizzles::rgb;
to
mDeviceSwizzle24 = &Swizzles::bgr;