Re: [osg-users] I want to know the time of rendering.

2012-06-27 Thread J.YoungStone
Hi, Robert, Sebastian

First, 
I'm sorry about my ambiguous questions 
because of lack of my English proficiency. :(

But Sebastian seems to be noticing the point of my question.

To summarize my question once again,

I want to compare the rendering time( Time of first loading the model on viewer)
when loading model using 'osg::Node' type and 'osg::ProxyNode' type.

... 

Thank you!

Cheers,
J.YoungStone

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48550#48550





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I wonder the General Node has ON/OFF flag itself.

2012-06-27 Thread J.YoungStone
Yes, it works!
It is what I want exactly.

Thank you very much! 
and have a nice day :)




Sebastian Messerschmidt wrote:
 Hi J. (please state your full name, makes things a little more polite)
 
 There is no such on/off flag directly. But you can take a look into node 
 masks.
 They basically provide this functionality and more.
 Just set the node-mask and the traversal mask on the camera, so the 
 logical and will be true.
 e.g. Node:  0x0001, TraversalMask: 0x will render the node, 
 while Node 0x   won't render it
 
  Hi,
  
  I know OSG use Scene Graph data structures.
  
  And... there are many type of group nodes.
  
  Among them, the Switch Node can control there children's visibility.
  
  I wonder the General Node ( osg::ref_ptrosg::Node node )
  has ON/OFF flag itself.
  
  ...
  
  Thank you!
  
  Cheers,
  J.YoungStone
  
  --
  Read this topic online here:
  http://forum.openscenegraph.org/viewtopic.php?p=48501#48501
  
  
  
  
  
  ___
  osg-users mailing list
  
  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
  
 
 
 ___
 osg-users mailing list
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
  --
 Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48549#48549





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] I wonder the General Node has ON/OFF flag itself.

2012-06-26 Thread J.YoungStone
Hi,

I know OSG use Scene Graph data structures.

And... there are many type of group nodes.

Among them, the Switch Node can control there children's visibility.

I wonder the General Node ( osg::ref_ptrosg::Node node )
has ON/OFF flag itself. 

... 

Thank you!

Cheers,
J.YoungStone

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48501#48501





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I want to know the time of rendering.

2012-06-26 Thread J.YoungStone
I think I mean what you said ( almost exactly ).

Specifically, I want to compare common node and proxy node.

Namely, I want to compare the code above and the code below.


Code:
#include osg/ProxyNode
#include osgViewer/Viewer

int main( int argc, char** argv )
{
osg::ref_ptrosg::ProxyNode root = new osg::ProxyNode;

root-setFileName( 0, cow.osg );

osgViewer::Viewer viewer;
viewer.setSceneData( root.get() );

return viewer.run();
}



Thank you for your interest despite my poor English. :)

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48500#48500





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Top 10 OSG Debugging Tips

2012-06-26 Thread J.YoungStone
it seems to helps a lot

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48499#48499





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] I want to know the time of rendering.

2012-06-25 Thread J.YoungStone
Hi, nice to meet you all.

I'm beginner in OSG.

I'm reading OpenSceneGraph 3.0 Beginner's Guide and
practicing the example in this book.

Here are very simple example.

#include osgDB/ReadFile
#include osgViewer/Viewer


Code:
int main( int argc, char** argv )
{
osg::ref_ptrosg::Node root = osgDB::readNodeFile( cessna.osg );

osgViewer::Viewer viewer;
viewer.setSceneData( root.get() );

return viewer.run();
}



With this code,
I want to know the time of rendering. [Exclamation] 
Are there some methods for this in OSG itself?

If anyone knows please let me know.
... 

Thank you!

Cheers,
J.YoungStone

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48466#48466





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org