Hi opensg friends,

i am working on a particular cluster server application that needs the
clusterserver on the server side to render directly on a texture (or into an
offline buffer that lately I can transfer into and image) that I can use
later for example as a texture into a "normal" SimpleSceneManager scene.

Right now my best idea is to assign to the clusterserver a Passivewindow and
then make it draw into a buffer rather than into a normal window (maybe the
accumulation buffer). 
So the Server's draw routine should look like:


Void setupOSG ()
{
        createWindow ();
        createSimpleSceneManager ();

        m_pClusterServer = clusterserver::create (offlineWindow, name,
connession...
        m_pClusterServer->start();
}

Void draw ()
{
// DRAW INTO IMAGE
        Gl_Enable (GL_SOME_BUFFER);
        m_pClusterServer->render(m_pRact);
        // clear changelist 
        OSG::Thread::getCurrentChangeList()->clearAll();
        makeImageFromSomeBuffer ();

// USE IMAGE INTO AN "ACTIVE" OSG ENVIRONMENT
        GL_Enable (GL_BACK_BUFFER);
        doStuff();
        m_pSimpleSceneManager->redraw();
        swapBuffers ();
}

Is it possible to do something like this?

Thanks for any hint, 
E.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to