Game Development Community

Space simulator without fog

by Linas Jasaitis · in Torque Game Engine · 07/18/2006 (5:04 am) · 3 replies

Hello.

How to make skybox (space) without a fog ? removed terrain, now want to the the bottom of my space, and can see only the fog beginning exactly where i'm standing (on a pyramide in space) and going below. Imagine, i want to make AAA space shooter, kinda Freelancer (heh, it's a joke, but i want to move and see everything in every direction).

Regards.

#1
07/18/2006 (6:49 am)
In the Sky object in the mission in question, set the visibleDistance to something huge -- I'm using 25000 on my space levels -- and the fogDistance to something somewhat less. I'm using 20000 for the fogDistance. In addition, making the fogColor black ("0 0 0 1") creates a 'murk' of distant space, instead of a light gray fog.

You also need to create a space skybox the usual way, except that you add a real bottom texture. Finally, in the Sky object, set 'renderBottomTexture' to 1, and noRenderBans to 1.

In my case, I also set the MissionArea.area to a large, large size (30000 on a side), and the flightCeiling to an equally large value (such as 28000 or so). I don't know if changing the mission area size is strictly necessary, though.

For extra fun, implement one of the gravity resources to create zero-G (I use the 'individualized gravity' resource, since I have trigger-enabled 'artificial gravity' around each of my 'space station' interiors).
#2
07/18/2006 (11:27 pm)
Big thanks. I'll try everything :)
#3
07/19/2006 (12:04 am)
Ye, man :) This is what i needed.