🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Best way to make a background?
Is the best way to make a background to just make a big quad that covers the whole screen, with a texture on it?
Thanks!
Another cool thing about backgrounds is that they can make the need for calling glClear(GL_COLOR_BUFFER_BIT); unnecessary if the background covers the entire scene.
I removed the glClear(GL_COLOR_BUFFER_BIT) calls from Disasteroids 3D and saw a noticable increase in framerate on a lot of low- to mid-range OpenGL accelerators like the ATI Rage cards.
Just thought you''d like to know!
ThomW
www.LMNOpc.com
I removed the glClear(GL_COLOR_BUFFER_BIT) calls from Disasteroids 3D and saw a noticable increase in framerate on a lot of low- to mid-range OpenGL accelerators like the ATI Rage cards.
Just thought you''d like to know!
ThomW
www.LMNOpc.com
Oh yeah, one other thing, if you want to keep the quality of the background image up, you can make a big texture (512x512) and map it onto a grid of four quads. That''s how I did the space background in Disasteroids 3D.
+---+---+
| 1 + 2 |
+---+---+
| 3 | 4 |
+---+---+
Good luck with whatever you''re working on!
ThomW
www.LMNOpc.com
+---+---+
| 1 + 2 |
+---+---+
| 3 | 4 |
+---+---+
Good luck with whatever you''re working on!
ThomW
www.LMNOpc.com
Because many older cards (voodoo2, i think as well as others) don't support textures over 256x256 where if you had 4 quads
256 + 256
----.----2
| | |5
| | |6
.---+---.+
| | |2
| | |5
----.----6
-mike
ps. how do you do the html so it keeps your spaces?
Edited by - Thr33d on July 31, 2000 3:02:36 PM
256 + 256
----.----2
| | |5
| | |6
.---+---.+
| | |2
| | |5
----.----6
-mike
ps. how do you do the html so it keeps your spaces?
Edited by - Thr33d on July 31, 2000 3:02:36 PM
hi why don''t use a skydome :
-it''s easy to code (draw a big sphere around your scene, apply your texture on the backface, that''s it)
-it''s quite impressive
lunasol
-it''s easy to code (draw a big sphere around your scene, apply your texture on the backface, that''s it)
-it''s quite impressive
lunasol
quote: Original post by Thr33d
ps. how do you do the html so it keeps your spaces?
& followed by nbsp;, Non breaking space
![](wink.gif)
-Chris Bennett ("Insanity" of Dwarfsoft)
Check our site:
http://www.crosswinds.net/~dwarfsoft/
Check out our NPC AI Mailing List :
http://www.egroups.com/group/NPCAI/
made due to popular demand here at GDNet :)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement