Re: [osg-users] dynamic cube map

2017-12-11 Thread Rômulo Cerqueira
Hi Nick, how can I encode the normal and depth data in the env texture? ... Thank you! Cheers, Rômulo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72565#72565 ___ osg-users mailing list

[osg-users] How to Save and Load the current scene graph data ?

2017-12-11 Thread Jishen Li
Hi, If there a way to save the current scene graph data into disk and later load it in a different computer to restore it ? I tried google it a little bit, but didn't find good solution. ... Thank you! Cheers, Jishen -- Read this topic online here:

Re: [osg-users] dynamic cube map

2017-12-11 Thread Trajce Nikolov NICK
Hi Romulo, I guess you should do a render to texture and make sure the texture format is with texels as floating points. Then custom shaders that will render normals and depths into these textures. I am on travel at the moment will help you more when I get back. Meanwhile you can do research.

Re: [osg-users] How to Save and Load the current scene graph data ?

2017-12-11 Thread Trajce Nikolov NICK
osgDB::writeNodeFile/readNodeFile On Dec 11, 2017 6:50 PM, "Jishen Li" wrote: > Hi, > > If there a way to save the current scene graph data into disk and later > load it in a different computer to restore it ? > > I tried google it a little bit, but didn't find good solution.

Re: [osg-users] dynamic cube map

2017-12-11 Thread Trajce Nikolov NICK
Hi Romulo, more proper example is osgprerendercubemap - how to setup the RTT for cubemaps. Then you can have a look again in the OpenIG project, in the Triton plugin, line 70 - 114, that is the shader to generate HeighMap, for your case instead of the world Z you put in the output Z from the