OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

update partial of geometry

Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [forum]
View previous topic :: View next topic  
Author Message

Joined: 20 Sep 2013
Posts: 2

PostPosted: Fri Sep 20, 2013 1:16 pm    Post subject:
update partial of geometry
Reply with quote

Hello Everyone,

I am a new osg user using 3.1.3. Recently I am trying to make a dynamic geometry drawing on win7 using NVIDIA.

I have one geometry which contains a huge number of primitive sets (for example 7000) and one vertices around 800,000. All the primitive sets are defined as range primitive set type. I use BIND_PRIMITIVESET in color binding. each set corresponds to one element in the colorarray. after constructing the geometry, the geometry display is ok. If I set using vertexbufferobject( true), my application is almost blocked. I got very very low frame rate. If I set using displaylist( true ), the frame rate is much high than using vertexbufferobject and my application works fine with the manipulations such zoom(in/out ).

Now, i got questions. my idea is only to change one element of the colorarray and hope only updating the primitive set which is linked to the changed color element. The rests of primitive sets should not be updated.
I hope this process should be fast and simple. But the dirtyldisplaylist update all colors and redraw all. So before I change the color, I set using displaylist as false, after changing, I set using display back as true. such way avoids to call dirtydisplaylist. but the speed almost is same as using dirtydisplaylist. My geometry data variance is set as Static.

I read some threads. Is 3.2 can solve this problem?

Can someone help me?


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [forum] All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Force OSG for GLES 2.0 to reenable ve... plamen_t General 1 Tue Jun 11, 2019 11:57 am View latest post
No new posts Layered rendering with a geometry shader AnyOldName3 General 8 Tue May 14, 2019 11:25 pm View latest post
No new posts Retrieve the triangles indices array ... Paradox General 1 Mon May 13, 2019 11:16 am View latest post
No new posts osgAnimation depth of Skeleton update sbrkopac General 0 Mon Apr 08, 2019 11:13 pm View latest post
No new posts hidden geometry in embedded osg Meldryt General 1 Thu Feb 21, 2019 7:17 am View latest post

Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP