Game Development Community

Transparent Terrain

by Daniel Neilsen · in Torque Game Engine · 06/04/2002 (5:15 am) · 4 replies

This is one wierd question but someone out there may know the answer.

What I want to do is a two part thing.

1) Make my terrain semi transparent.

2) Make the skybox go completely over and under....full 360 degrees.


Anyone know if either of these (or both) are possible?

#1
06/04/2002 (5:20 am)
To the skybox, there is a field renderBottomTexture. Activate this and the sky box is completely rendered.

greetings
Daniel
#2
06/04/2002 (3:35 pm)
ok thats half the battle.
Anyone know how to make the terrain transparent ?
#3
06/04/2002 (4:43 pm)
mmm.... maybe you could change the terrain rendering code to use GL_BLEND to render the textures...
#4
06/04/2002 (6:22 pm)
You'd have to enable blending and color modulation then set a datablock field for alpha value and use that along with glColor*. Now I don't think this would work well due to how terrain rendering algorithms work. Also I think it'll be really tough to figure things out when there are lots of hills in the way (plus you'd probably need to enable back and front face rendering).