Sky
Blitz3D Forums/Blitz3D Beginners Area/Sky
| ||
Can anyone show me how to do a good sky? I've been trying but not going to well... |
| ||
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. |
| ||
Have a look here ... http://www.blitzbasic.com/Community/posts.php?topic=64320#717814 Stevie |
| ||
I used ted, for my world creating makes life more easy, or see the castle demo which comes with blitz |
| ||
This is somewhat old and the picture links are dead: http://membres.lycos.fr/blitzcoder/cgi-bin/articles/Wc58eab27e15e.htm |
| ||
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. |
| ||
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 |
| ||
the mak/castle demo contains a code which shows how to load a skybox! |
| ||
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 |
| ||
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 |
| ||
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. . . |
| ||
A really simple sky can be done like this: either that or set camera CLS color to sky blue, which would look just the same (and pretty bad!). -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 |
| ||
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: |
| ||
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 |