Page 1 of 1

skydome/skybox real time

Posted: Sun Apr 22, 2007 2:08 pm
by ishikawa
What I want to do, is to create sky with some image of stars. Then I'm getting system time. If it's, for instance, 9 a.m, I want sky to slowly fade into another skydome//skybox. This could give illusion of changing night to day. My question is simple - is it possible to do such a thing, and if yes, then how?!

Greatings :)

Posted: Sun Apr 22, 2007 2:34 pm
by Luben
I dont know if it is possible, but you could try to have 2 skyboxes, one with the current and one with the next. While the current is dominating, render normally. When we enter a phase where Start<Now<Finish, we set the primary skybox to be the one which we change to. The other one is the old one, which we render using a transparent material, which's transparency is determined as a function of the time, (Finish-Start)/(Now-Start). I dont know if irrlicht hosts such a material tough.

Posted: Sun Apr 22, 2007 2:55 pm
by Strong99
well this is almost what you want, you only need to adjust the timer

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=10769

Posted: Sun Apr 22, 2007 4:16 pm
by Midnight
http://irrlicht.sourceforge.net/phpBB2/ ... ght=skybox

another one. people need to spend more time searching i think.

Posted: Mon Apr 23, 2007 10:44 pm
by imjinc2k
I've been studying this guy's atmospheric scattering shader (GLSL) for the same purpose. I know this Beginner's Help, but the quality and speed of this method is incredible. Plus I find that for a detailed skydome with stars, gradients, etc, to look good at 1280x1024, the actual texture needs to be 4096x4096. So using a procedural shader may also save you 50 megs of video memory.

http://sponeil.org/

Speaking of skydomes, I'll be making a tutorial on creating perfect distortion-free sphere-mappable skydomes using Lightwave 9 in the next couple weeks. Stitching images together turned out to be more trouble and time than it's worth. Lightwave can do it in one pass.