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 want to know the time of rendering.

2012-06-27 Thread Robert Osfield
Hi Jerome,

On 27 June 2012 02:05, J.YoungStone jer...@cybermed.co.kr wrote:
 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.

Nodes don't get rendered so you can't measure how long they take to
render, you can only measure what the drawable leaves in their
subgraphs take to render.  Since the subgraphs are likely to be the
same we can safely say that the time will also likely be identical.

ProxyNode only effects loading of subgraphs.

Robert.
___
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-27 Thread YoungStone, Jeong
Hi, Robert

I got what you mean to some extent.

Maybe I need deep learning of OSG.

And later, I will ask you about related issues.

Thank you for your interest in my topic. :)
... 

Thank you!

Cheers,
YoungStone,

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





___
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] I want to know the time of rendering.

2012-06-26 Thread Robert Osfield
Hi Jarome,

I don't really know what you are actually asking.  First you asking
about time of rendering, now you want to compare nodes, but don't
specify how you want to compare them.  There is no way I or anyone
else can provide an answer.

Robert.

On 26 June 2012 00:40, J.YoungStone jer...@cybermed.co.kr wrote:
 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
___
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 Sebastian Messerschmidt

Robert, Jarome

I guess Jarome wants to compare the rendering time (i.e. time for 
rendering one frame) with the scene containing the first node type vs. 
the scene containing the second node type.
Unfortunately I cannot help here directly, but I know that there is a 
kind of Stats object (used by the StatsHandler), which could be 
retrieved every frame.
From the stats one could get the raw times for cull- and 
render-traversal for the last frame.
Maybe this is a pointer into the right direction and someone else can 
give some more detailed advices.


cheers
Sebastian

Hi Jarome,

I don't really know what you are actually asking.  First you asking
about time of rendering, now you want to compare nodes, but don't
specify how you want to compare them.  There is no way I or anyone
else can provide an answer.

Robert.

On 26 June 2012 00:40, J.YoungStone jer...@cybermed.co.kr wrote:

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

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



___
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


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

2012-06-25 Thread Robert Osfield
Hi Jerome,

When you say you want to know the time of rendering, do you mean the
time in seconds since the start of the viewers frame loop?  Time of
day?

Also how do you want to use the time?  This is important to know as
depending upon what task you have there are different ways to get the
time in the more convenient way for that task - for instance update,
event, cull and draw callbacks, or in the main loop.

As a point of reference the OSG maintains an osg::FrameStamp object in
the Viewer that is update once each frame by viewer.advance() and this
FrameStamp is passed to all scene graph traversals.

Robert.

On 25 June 2012 05:29, J.YoungStone jer...@cybermed.co.kr wrote:
 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
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org