SkyBox

Started by
6 comments, last by enigmagame 16 years, 6 months ago
Hi :-)! I'm working on Elite clone for a school project, with Opengl and Glut. How can i make a static background with star? I have thought to use a skybox, but i have some questions. I have found some images for texture, for example: http://img409.imageshack.us/img409/64/starsbknh1.jpg - The size of box around the camera. - The size and the numbers of texture (the same texture for all face or one different texture for every face). - The box must be transparent (How?). - How can i obtain an lighting effect of the star? Too many questions, sorry :-(! Thanks!!
Advertisement
Quote:Original post by enigmagame
Hi :-)!
I'm working on Elite clone for a school project, with Opengl and Glut.
How can i make a static background with star?
I have thought to use a skybox, but i have some questions.
I have found some images for texture, for example:
http://img409.imageshack.us/img409/64/starsbknh1.jpg
- The size of box around the camera.
- The size and the numbers of texture (the same texture for all face or one different texture for every face).
- The box must be transparent (How?).
- How can i obtain an lighting effect of the star?
Too many questions, sorry :-(!
Thanks!!


-The size of the box doesn't really matter. To have a Sky box, you have to disable depth testing anyway, so it look as if it is never ending.
-You can have the same texture for every face if it is like your image link there, but typically, a Sky box has a scenery in it, but yours is fine too.
-The box doesn't have to be transparent. whoever told you that...
-To obtain the lighting effect, you would have to do this yourself.
Holy crap, you can read!
Quote:Original post by enigmagame
- The box must be transparent (How?).

Copy PCN. Whoever told you that probably had something other in mind.
Quote:Original post by enigmagame
- How can i obtain an lighting effect of the star?
I just have to point out that in the real world, only the star "Sun" is bright enough to effectively cast shadows. The Moon can sometimes cast shadows but stars in general don't.

Previously "Krohm"

i tried to set this up a few weeks ago. sky boxes have to have perspective correct textures or they will stretch the stars near the seams. eventually i settled on drawing random points on a sphere surrounding the camera.
Perhaps you should try my skyboxes, they may help you.

content
http://www.avantivita.com/ootb_skybox1.html
http://www.avantivita.com/ootb_skybox2.html

ingame slide show.
http://www.avantivita.com/ootb1_slide_show.html
http://www.avantivita.com/ootb2_slide_show.html
Hi! Thanks to all!
I have positioned the camera in (0,0,0), then i have made a box around the camera, the box size is 2x2x2 (i've turned off the depth test) . I have applied the texture, the same texture for all face, but the result is not very nice...
Example: http://img353.imageshack.us/img353/8256/screenshotho8.png
I've made the texture with GIMP, black background and "SuperNova" filter with radius 1.
- The problem is the texture?
- Other?
Sorry for the question of transparency, is bad!!
Thanks!!!
I don't see anything wrong with it. -?
Holy crap, you can read!
Quote:Original post by PCN
I don't see anything wrong with it. -?

Hi!
All runs ok, but i wanted to obtain a similar effect to this: http://oolite.aegidian.org/screenshots/images14/oolite_002.jpg
Thanks!

This topic is closed to new replies.

Advertisement