Jump to content
  • Advertisement

Archived

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

apit

how to make *.bmp as background

This topic is 6127 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

hello members...how can i use *.bmp file as my background in openGL...let say i use sea scenary (bmp file) and others objects like peoples, birds and so on i use openGL coding...how can i make it? please guide me...

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
not that I know but i''d say you should create a sky box , then bind the texture to that.

Share this post


Link to post
Share on other sites
its easy...

1. switch to ortho view.
2. load identity.
3. draw the quad background to fit the ortho coords.
4. switch back to normal view.
5. clear the depth buffer.
6. draw your scene...



"The Railgun Master"
DaHeR


Edited by - DaHeR on February 2, 2002 2:53:24 AM

Share this post


Link to post
Share on other sites
step 5 is very costly... it would be a lot easier to either disable depth testing, or disable depth writing when drawing the objects. you just have to make sure you draw them in the order you want. assuming it''s a simple scene, this would be faster.

Share this post


Link to post
Share on other sites
Hi,

On my site, I''ve a example who display a BMP in background like a splash screen.

========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/

Share this post


Link to post
Share on other sites
quote:
Original post by RipTorn
step 5 is very costly... it would be a lot easier to either disable depth testing, or disable depth writing when drawing the objects. you just have to make sure you draw them in the order you want. assuming it''s a simple scene, this would be faster.


yeah thanx i think i missed that one ! disabling the depth buffer write is better before 3 and enabling it ( if you want to ) in step 5 ....

"The Railgun Master"
DaHeR

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!