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 

avoid writing some node on osgDB::writeNodeFile


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
David Callu
Guest





PostPosted: Wed Oct 15, 2008 12:42 pm    Post subject:
avoid writing some node on osgDB::writeNodeFile
Reply with quote

Hi Alexandre

You can just copy the Scene Graph structure (osg::Node, osg::Group, ...)
and share every other thing (StateSet, Drawable, texture, ...)
You can specify which object to share and which to clone with the osg::CopyOp class.


HTH
David Callu

2008/10/6 amalric alexandre < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
Hi osg-users,

I would have know if it was possible to avoid to write some node in a scene when calling osgDB::writeNodeFile on the current scene.

Let's assume I got a group of nodes and I wand to save this group on disk without saving some chosen nodes from the group. But I don't want to modify the group because I need it to stay the same.

My first choice was to make a copy from the group, modifying the copy keeping the original and writing the copy. But I think it's a bad choice because I got very big nodes (300Mo and more) and making a copy use more memory.

If someone has a great idea, please let me know

Thank you,
--
Alexandre AMALRIC Ingénieur R&D
===================================
PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille
http://www.pixxim.fr



_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General 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 osg::LOD node not being considered in... Josiah425 General 0 Tue Feb 19, 2019 6:52 pm View latest post
No new posts Happy New Year to all OSG Users Chris Hanson General 0 Mon Jan 07, 2019 10:17 am View latest post
No new posts Can i use MatrixTransform to transfo... PeterGao General 8 Fri Jan 04, 2019 1:46 pm View latest post
No new posts osg-users Digest, Vol 138, Issue 27 Zachary1234 General 0 Tue Jan 01, 2019 1:16 am View latest post
No new posts Update node color on demand dhhabyc General 12 Sat Nov 24, 2018 3:05 pm 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