Sky

Blitz3D Forums/Blitz3D Beginners Area/Sky

Terry B.(Posted 2006) [#1]
Can anyone show me how to do a good sky?

I've been trying but not going to well...


b32(Posted 2006) [#2]
You could create a sphere, scale it 10,10,10x. Then flip it and use EntityOrder sky, 1. Finally, in your main loop, before renderworld, place it at the X,Y,Z of the camera.


Stevie G(Posted 2006) [#3]
Have a look here ...

http://www.blitzbasic.com/Community/posts.php?topic=64320#717814

Stevie


LKFX(Posted 2006) [#4]
I used ted, for my world creating makes life more easy, or see the castle demo which comes with blitz


puki(Posted 2006) [#5]
This is somewhat old and the picture links are dead:

http://membres.lycos.fr/blitzcoder/cgi-bin/articles/Wc58eab27e15e.htm


GfK(Posted 2006) [#6]
Don't use sphere's for skies! You get a horrible 'pinching' effect at the top (and bottom as well, if you're able to see it).

Use a cube instead. It also uses less polys than a sphere would.


scribbla(Posted 2006) [#7]
my understanding of sky boxes, is that you end up creating a box with 5 surfaces, to apply the textures(blitz and surfaces= bad)

Definitely dont use spheres, but domes seem as fair work around if you get the uv right you get rid of the pinching, and its only 1 surface

i may be wrong ive never dealt with boxes


bytecode77(Posted 2006) [#8]
the mak/castle demo contains a code which shows how to load a skybox!


Naughty Alien(Posted 2006) [#9]
regarding memory requirements I would suggest sphere..there is excellent skydome textures around without any pinching, and it will take less video memory than skybox


scribbla(Posted 2006) [#10]
these may be of use, a few edited since last link

download 20 SkyDomes

ive nearly 200 of these damn things, alot are well lets say not very good , a few are usable, i was trying for a certain look


Mr Snidesmin(Posted 2006) [#11]
A really simple sky can be done like this:
-attach a cube to the camera:
-flip it
-set entity color to sky blue
-set entiyFX 1
-set entityorder 1 so it gets drawn first

for a nice realistic effect, you can use camerafog the same color as the sky

you can then add clouds by whatever means you like. . .


GfK(Posted 2006) [#12]
A really simple sky can be done like this:
-attach a cube to the camera:
-flip it
-set entity color to sky blue
-set entiyFX 1
-set entityorder 1 so it gets drawn first
either that or set camera CLS color to sky blue, which would look just the same (and pretty bad!).


Mr Snidesmin(Posted 2006) [#13]
set camera CLS color to sky blue


oh yeah, should have thought of that.

pretty bad!


Actually, when you combine this with fog of the same color the effect seems pretty good to me (At least considering the tiny amount of effort it takes)

This screenshot is using this technique:




Mr Snidesmin(Posted 2006) [#14]
Another cool thing about this is that it's very easy to fade the sky color to other colors, creating day/night and weather effect.

You can use sprites or something to throw in some clouds, sun etc