Hi Dan,
Daniel Sperka wrote:
> Hi all -
>
> I am using OSGGeometry nodecores that have ~ 1000 points in them. I
> setDListCache(true) for these cores, as these points are replaced
> periodically, but after I modify the GeoPositions field it seems that
> the old points are displayed along with the new ones. Is there a way to
> tell OpenSG to dump the old Display list for a node core and generate a
> new one?
>
OpenGL display lists are write-once. You can't read them, you can't edit
them, they need to recreated from scratch every time something changes.
So if you have old point not being deleted, it can't be related to
display lists, as those are scrapped. Do you clear out the OpenSG fields
that contain the data before setting the new points, or do you overwrite
all of the existing data when setting new stuff?
> Another question along those lines, Is there a way to pre-compile
> display lists like this and then directly use the precompiled lists in
> my node cores? This way I could quickly replace one display list ( which
> might contain 1000's of points) with another that already sits in the
> video card's memory. I've got a lot of unused graphics memory just
> sitting there.......
>
So you have a number of sets of points that you want to show
alternatingly? The easiest way to do that is have separate Geometry
nodes and either use a Switch to select one of them or to use traversal
masks to select subsets of them.
Can you give us a better idea of your application? That might help us
understand what it is you're trying to do and come up with more specific
hints.
Yours
Dirk
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users