Does Ogre 2.1 support SceneManager::setSkyBox() ?

Design / architecture / roadmap discussions related to future of Ogre3D (version 2.0 and above)
Post Reply
Hotshot5000
OGRE Contributor
OGRE Contributor
Posts: 145
Joined: Thu Oct 14, 2010 12:30 pm

Does Ogre 2.1 support SceneManager::setSkyBox() ?

Post by Hotshot5000 » Mon Jul 17, 2017 8:59 pm

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?
0 x

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 3432
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
Contact:

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

Post by dark_sylinc » Mon Jul 17, 2017 9:44 pm

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.
0 x

Post Reply