Jump to content

  • Log In with Google      Sign In   
  • Create Account


skybox in opengl


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   -  Reputation: 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

Sponsor:

#2 Null and Void   Moderators   -  Reputation: 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   -  Reputation: 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.



PARTNERS