Does Ogre 2.1 support SceneManager::setSkyBox() ?

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
Hotshot5000
OGRE Contributor
OGRE Contributor
Posts: 226
Joined: Thu Oct 14, 2010 12:30 pm
x 56

Does Ogre 2.1 support SceneManager::setSkyBox() ?

Post by Hotshot5000 »

I see that calling setSkyBox() creates a ManualObject that has the following:

Code: Select all

void ManualObject::_updateRenderQueue(RenderQueue* queue, Camera *camera, const Camera *lodCamera)
    {
        for (SectionList::iterator i = mSectionList.begin(); i != mSectionList.end(); ++i)
        {
            // Skip empty sections (only happens if non-empty first, then updated)
            RenderOperation* rop = (*i)->getRenderOperation();
            if (rop->vertexData->vertexCount == 0 ||
                (rop->useIndexes && rop->indexData->indexCount == 0))
                continue;
            
            //TODO: RENDER QUEUE ?
            //queue->addRenderable(*i, mRenderQueueID, mRenderQueuePriority);
        }
    }
Also, from what I've seen, the _updateRenderQueue() of the ManualObject never actually gets called even though it's in the mVisibleObjects array. Are skyboxes still supported?

I have six jpgs representing up, down, front etc. and I used to be able to use them as one skybox in Ogre 1.7. Can I achieve the same thing in 2.1?
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: Does Ogre 2.1 support SceneManager::setSkyBox() ?

Post by dark_sylinc »

It's broken.
Although you could do something similar (i.e. take a cube, invert the face winding, and set the textures) I'd suggest you do the same as the TutorialSky_Postprocess sample does.
Post Reply