I am trying to override the default setup in OGRE to be able to place customised content on the RenderWindow object. I am using iOS and trying to place an object on the UIWindow but I have found that I can not see anything I place because the skybox is being placed over the top of it. I have tried turning it off and setting the default viewport not to render skyboxes but it is still sitting in-front of the content.
Is it possible to set a transparent background and transparent skybox so that content behind can be viewed?
Removing Skybox
-
- Silver Sponsor
- Posts: 199
- Joined: Thu Apr 21, 2011 3:08 pm
- Location: Lund, Sweden
- x 12
Re: Removing Skybox
Hey chocoanzak,
setSkyDome works fine for me:
Maybe you are setting the 6th param drawFirst=false? That would give you problems. Or if your Distance is to small.
Good Luck!
/mmixLinus
setSkyDome works fine for me:
Code: Select all
void CApplication::setEffectSkyOn(bool bEnable)
{
m_bEffectSkyOn = bEnable;
float fCurvature = 14.0f;
float fTiling = 2.0f;
float fDistance = 100.0f;
mSceneMgr->setSkyDome(bEnable, "Environment/SunilSky", fCurvature, fTiling, fDistance,
true,
Ogre::Quaternion::IDENTITY,
24, 24);
}
Good Luck!
/mmixLinus
Powered by Ogre3D:
MMiX.Me 3D - 3D Music Player
Galaxy Navigator 3D - 2 million stars (ESA's Gaia satellite)
YouTube|Facebook
MMiX.Me 3D - 3D Music Player
Galaxy Navigator 3D - 2 million stars (ESA's Gaia satellite)
YouTube|Facebook