Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

skybox in opengl

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 boldyman   Members   

138
Like
Likes
Like

Posted 02 October 2001 - 10:41 PM

Hello, Does anybody know how to do a skybox in opengl. I have made several attempts but i can''t get it to work. (Every time a different camera problem, etc etc). Maybe some one know some source code or a good tutorial. Thanx Boldyman

#2 Null and Void   Members   

1087
Like
Likes
Like

Posted 03 October 2001 - 12:38 AM

Turn off depth buffer. (glDepthMask(0))
Rotate. (glRotatef)
Render the cube.
Turn on depth buffer. (glDepthMask(1))
Now draw everything else.

[Resist Windows XP''s Invasive Production Activation Technology!]

#3 joke_dst   Members   

122
Like
Likes
Like

Posted 04 October 2001 - 11:58 PM

And be sure to render the skybox _before_ you do the camera translatef. That way the skybox is always at the same distance from the camera.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.