Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

dirtypope

Infinite Sky Box

This topic is 5985 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
You must *always* center the skybox on the camera''s position, else you''ll get visual artifacts and the skybox "illusion" is gone.......

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!