Skydome

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Sfortza
Posts: 39
Joined: Thu Mar 17, 2011 12:40 pm
Location: 184

Skydome

Post by Sfortza »

Using skydome,

Code: Select all

ISceneNode* skydome = ScManager->addSkyDomeSceneNode(Driver->getTexture(skyTextureFilename.c_str()), 
                                                                                       16, 
                                                                                       8, 
                                                                                       0.95f, 
                                                                                       1.5f);
Skydome a strongly stretched horizontally.
Was playing with params with no result.
Please help.

Should I use Skydome only for the sky, or can specify all the background on it?

Thank you.
CarlS
Posts: 86
Joined: Wed May 09, 2007 1:21 am
Contact:

Re: Skydome

Post by CarlS »

It looks distorted because the Skydome is expecting a spherically mapped image like one of these:
http://www.philohome.com/skycollec/skycollec.htm

Try using the rectangular version of one of those images.

--Carl
Sfortza
Posts: 39
Joined: Thu Mar 17, 2011 12:40 pm
Location: 184

Re: Skydome

Post by Sfortza »

Carl, thank you.
What about as a background usage of skydome?
CarlS
Posts: 86
Joined: Wed May 09, 2007 1:21 am
Contact:

Re: Skydome

Post by CarlS »

Hi Sfortza,

I believe that Photoshop can transform an image from the usual rectangular projection, to spherical, and you may be able to apply that to the SkyDome. If you look at some of the other pages on that website, you might get some other ideas on how to use it.

A SkyBox might be easier to work with for this purpose, but you might still need to pre-distort the 6 images for the box so the result would look undistorted.

Something worth looking into might be Panocube. It expects a spherical panorama as an input, but it comes with some extra tools that might be of some use.
http://www.panoshow.com/panocubeplus.htm

Good luck,
--Carl
Sfortza
Posts: 39
Joined: Thu Mar 17, 2011 12:40 pm
Location: 184

Re: Skydome

Post by Sfortza »

Carl, thank you very much!
Your answers are very valuable!
Post Reply