Game Development Community

Turning off terrain lighting

by K. Adams · in Torque Game Engine · 11/18/2005 (6:09 pm) · 3 replies

Sorry if this is an obvious question, but I've been digging through the forums and can't seem to find an answer.

We are using a clear, but not empty set terrain texture that our vehicles "glide" across to make it look like they're flying, even though the game technically plays in 2D. This is working really well, but when weapons fire, we're getting a lighting reflection off our invisible terrain texture.

Where would one look to turn off dynamic lighting effects on the terrain?

Thanks!

About the author

Recent Threads


#1
11/18/2005 (9:13 pm)
Open terrRender.cc, grep for light. There's a function that renders that data, just comment out the GL calls for a quick safe fix.
#2
11/19/2005 (3:04 am)
K.,

This is a bit off topic, but how did you make your terrain invisible? That sounds pretty cool.

A.
#3
11/21/2005 (8:13 pm)
Oops. It was a really obvious question. I was looking in the wrong place, there was a boolean that handles turning it on and off cleanly about 10 lines down. Thanks for pointing me in the right direction!

Aaron - Just make a transparent .png, then set your DetailTexture in the .mis file to point to it.