Hello. I'm trying to set a skybox or dome, or plane, during runtime, after SceneCreating, but I always end up with no change after doing the error free call. I did tinker with FarClipDistance during runtime as well, but there was still no change in background appearance (black I assume is the ambient color)
OgreWindow.Instance.mSceneMgr.SetSkyDome(true, "clouds", 5, 8);
plane.d = 1000;
plane.normal = Mogre.Vector3.NEGATIVE_UNIT_Y;
OgreWindow.Instance.mSceneMgr.SetSkyPlane(true, plane, "clouds", 1500, 75);
So far I've been successful in loading textures and meshes during runtime, and It's my intention to remove all dependencies on the default "scripting system" when Ogre loads. If I have to give up on setting the sky during runtime, I might cry.
if it is in fact only possible within the scenecreating window, then does anyone have any suggestions as to how I can replicate that skybox/dome/plane behavior?
Did you create a tiny application by the Mogre Basic Tutorial 3
There you learn how to setup a SkyDome.
Also you need to embedd the right resource files.
Additionally look to the file ogre.log
- maybe there are helping warnings or errors.
Alternatively you can use the add-ons SkyX
for nice sky simulations.
Look to this forum topic for further links:
IMPORTANT LINKS - an overview for add-ons, topics, etc.
Thank you, but I am bypassing the scripting system completely, and I know how the examples do it (in the SceneCreating window). There are no errors/warnings that I can observe, in ogre.log or otherwise. I can only guess that the helper functions SetSky(Dome/Box/Plane/etc) only works in said window. Thanks for trying to help me. It would be nice to get a confirmation from someone who has great understanding of the underlying algorithms. I would rather work on higher level things than getting knee deep in the stock code, and hope someone can lend a helpful tip.
yes lol I have given up trying to do my own sky for now. I merged the skyxmogre svn repo with mine, and am now in the process of gathering enough courage to integrate it fully. I forgot how horrifying it can be to get the perfect combination of projects to all compile and play together nicely. I gave up on the first attempt to compile skyx when I found that you have to actually go back to the very bottom of the stack and compile ogre first (or second after mogre?). Love how SkyX looks btw, couldn't ask for much for than that