Infinite Sky Box
k i want to make a sky box for a level system that is basically endless, which would be the best way to make this sky box... the only way i can think of would be make a box arround the camera with full alpha blending on it, so that everything shows through it except well, the sky... is there a better way of doing this, and will my way even work?
Theres no such thing as stupid people... only people with under clocked brains. -dirty
Turn off any fog, then center the skybox on the player and draw everything over it.
------------
aud.vze.com - The Audacious Engine <-- It''s not much, yet. But it''s mine... my own... my preciousssss...
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155
------------
aud.vze.com - The Audacious Engine <-- It''s not much, yet. But it''s mine... my own... my preciousssss...
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155
_______________________________________Pixelante Game Studios - Fowl Language
In order to make everything else appear closer than the skybox (ie the skybox is infinitely far away), draw the skybox FIRST with depth writes disabled (glDepthMask(GL_FALSE)), then re-enable depth writes and draw the rest of your scene (glDepthMask(GL_TRUE))
Is that what you needed? Hope so...
[edited by - Bad Monkey on June 29, 2002 3:19:48 AM]
Is that what you needed? Hope so...

[edited by - Bad Monkey on June 29, 2002 3:19:48 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement