Re: [osg-users] osgViewer::setSceneData calling sequence with osgUtil::Tessellator

2014-07-18 Thread Yu Zhang
Hi Robot, Your point is true. Thanks a lot for your help, and sorry for this question, it looks not very outstanding:) Thank you! Cheers, Yu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60338#60338 ___

Re: [osg-users] osgViewer::setSceneData calling sequence with osgUtil::Tessellator

2014-07-18 Thread Robert Osfield
Hi Yu, Could it be that you haven't done anything to update the position of the viewer Camera to account or the scene that you've just updated? My guess is that it's simply that the viewer's Camera is still in it's default position looking at the center of the empty canvas node. Robert. On 18

[osg-users] osgViewer::setSceneData calling sequence with osgUtil::Tessellator

2014-07-18 Thread Yu Zhang
Hi experts, I have 2 piece of code, use tessellaor to extrude and hole generation. Looks the setSceneData should call after hole tessellation operation, otherwise the viewer will draw nothing. Could you please advice on how to setSceneData the root nodes in the begin of application, and update

Re: [osg-users] assume render order?

2014-07-18 Thread Robert Osfield
On 18 July 2014 16:30, Bram Vaessen wrote: > Thanks for your quick answer! > What exactly does 'sorted by state order' mean? state sorting uses the pointer to the StateSet as the key, so all Drawables that inherit the same state will be rendered together. Robert. __

Re: [osg-users] assume render order?

2014-07-18 Thread Bram Vaessen
Thanks for your quick answer! What exactly does 'sorted by state order' mean? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60334#60334 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] How do I get a reference viewpoint from a DrawCallback?

2014-07-18 Thread Glenn Waldron
I tried your suggestion, but the camera stack is always size=1, with only the current camera on top (be it the main cam or the RTT cam). I am still trying to track down why that is. (OSG 3.3.2) Glenn Waldron / @glennwaldron On Fri, Jul 18, 2014 at 7:31 AM, Robert Osfield wrote: > Hi Glenn, >

Re: [osg-users] [osgPlugins] osg store user values

2014-07-18 Thread Robert Osfield
Hi Robert, On 18 July 2014 14:36, Robert Gosztyla wrote: > > robertosfield wrote: > > Hi Robert. > > The new serializers allow you to implement your own serializers for your > own osg::Object subclasses... > > > > > This means that i need to subclass all osg classes to have such > possibility?

[osg-users] Light-Linking in OSG

2014-07-18 Thread Colin McKay
Hi, I had a question relating to any known approaches of linking lights to specific geometries in a scene while ignoring others. I have been building my assets in 3dsMax and using the exporter to get an OSGT file which provides the model, textures, light and cameras. The linking I do in 3dsMax

Re: [osg-users] [osgPlugins] osg store user values

2014-07-18 Thread Robert Gosztyla
robertosfield wrote: > Hi Robert. > The new serializers allow you to implement your own serializers for your own > osg::Object subclasses... > This means that i need to subclass all osg classes to have such possibility? What about osg::Group, osg::Transform and osg::Geode? Is it possible to j

Re: [osg-users] [osgPlugins] osg store user values

2014-07-18 Thread Robert Osfield
Hi Robert. On 18 July 2014 14:11, Robert Gosztyla wrote: > Is it possible to force osg plugin to store user values for nodes (set by > setUserValue() method from osg::Node) somehow? Maybe using osgDB::Options, > but haven't found any solution. Or only solution to store nodes with user > values

Re: [osg-users] FBO and Render to Texture

2014-07-18 Thread Robert Osfield
HI Saravanan? Have a look at the osgdistortion example for how you can render to texture and reuse the result when rendering to a screen aligned quad. Robert. On 18 July 2014 13:31, Saravanan Sivaprahasam < saransivapraha...@rediffmail.com> wrote: > Hi, > > I have a scene to be captured by ca

[osg-users] [osgPlugins] osg store user values

2014-07-18 Thread Robert Gosztyla
Hi, Is it possible to force osg plugin to store user values for nodes (set by setUserValue() method from osg::Node) somehow? Maybe using osgDB::Options, but haven't found any solution. Or only solution to store nodes with user values is writting separate plugin? Thank you! Cheers, Robert ---

[osg-users] FBO and Render to Texture

2014-07-18 Thread Saravanan Sivaprahasam
Hi, I have a scene to be captured by camera and render it to a texture. I am applying shaders to post process the scene and draw the scene as texture to a scene aligned quad. I need clarification regarding applying shaders and drawing the scene. Does it needs to implemented as camera callbac

Re: [osg-users] assume render order?

2014-07-18 Thread Robert Osfield
Hi Bram, The rendering order is controlled by the type of RenderBin that the drawable leaves are dropped into during the cull traversal. If the drawables are in the default opaque bin then they'll be sorted by state order, the traversal order will have no effect on the draw order. If the drawabl

Re: [osg-users] HUD Camera as Ortho View

2014-07-18 Thread Robert Osfield
HI Sonya, On 18 July 2014 07:51, Sonya Blade wrote: > I figured out that part, there was a scale difference with main model if I > scale it up to > 25 times in each direction then model is visible. But still it is vague > how we can setup the > hud camera viewing direction or up vector, I'll ap

Re: [osg-users] How do I get a reference viewpoint from a DrawCallback?

2014-07-18 Thread Robert Osfield
Hi Glenn, The RenderInfo object maintains a stack of Camera which you should be able to use to get access to parent Camera's to the current Camera. With the computation I would suggest you convert the centroid into eye coords of the RTT Camera like you are doing then convert back into world coord

Re: [osg-users] [osgPlugins] Very confused about plugins

2014-07-18 Thread Bram Vaessen
Thanks Robertos and Farshid. Robertos, when I said: "What are the steps that are involved in building the libraries, and loading them as plugins? " I actually meant to ask this from the perspective of the 'system', and not the steps that a user has to take to make it work. This demonstrates wha

[osg-users] assume render order?

2014-07-18 Thread Bram Vaessen
Hi, I was wondering what kind of assumptions I can make about the rendering order. for example in kinda pseude code: rootnode->addChild(node1); rootnode->addChild(node2); node1->addChild(node3); node1->addChild(node4); node3->addChild(node5); would give: rootnode -> node1 -> node3