Hi Sven,

Sven Widderich wrote:
> Hello Everybody,
> 
> first question:
> Is there only static draw VBO support in OpenSG?

at this time, yes.

> next:
> How would you recommend to render an OpenSG geometry as a dynamic draw VBO?
> Is there a possibility to write a RenderAction?

You wouldn't have to do that, it would be enough to change the Geometry.

But, with the current model you probably won't gain very much in doing that. As 
OpenSG has very little control over which thread has an active OpenGL context, 
it cannot use direct writing to gfx memory, so the Property will always go to 
main memory first, which is then copied to gfx memory on draw. Changing that 
would be a major effort, as you wouldn't be able to create Geometry before the 
window is open and the context active, and you would only be able to create new 
geometry in the OpenGL thread.

On the other hand I've seen very contradictory performance results comparing 
static and dynamic, so I'm not sure how much benefit it really gives. You 
probably gain more by switching off bounding volume updates, if you change the 
geometry for every frame.

What are you trying to do, what is your bottleneck?

Yours

        Dirk

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to