Hello Aleksander,
Aleksander Stroiński wrote:
> Hello,
>
> i have to simple question:
>
> 1. Is there any API in OpenSG that supports frame rate measurement?
not directly, as OpenSG does not have an explicit render loop or thread
that continuously renders the scene.
That being said, the RenderAction keeps track of the time required to
traverse the scene (and build the draw tree --
DrawActionBase::statTravTime) and the time for drawing the draw tree
(RenderAction::statDrawTime). From the sum of these two times, you can
compute the framerate.
Take a look at one of the test programs in Source/System/Statistics to
see how the statistics component can be used.
> 2. Is it possible to read model in PLY format file using OpenSG?
There is a loader for .ply files in Source/Contrib/PLY. It is not a full
part of OpenSG because of license issues; see the readme in that
directory for more info and build instructions.
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users