Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-07-30 Thread Andrew Thompson
Hi all, An update on this problem, I've managed to solve it by the following steps [list=] [*]As I was operating in Debug mode, the IVE plugin required zlib1d.dll - so I copy/pasted zlib1.dll and renamed it to d and put this in C:\. I can confirm this works now in debug and release [*]Then I

Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-07-29 Thread Andrew Thompson
Hi there, I finally got around to implementing this functionality (!!) - it works great with osg as the target format, but with ive the getReaderWriteForExtension call returns null. I assume I am missing an environment variable or something and the OSG cannot find the correct plugin? For

Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-07-29 Thread Andrew Thompson
To clarify this problem, I have checked my environment variables and added the plugins directory to PATH, I also was missing zlib1.dll which I have copied to the bin directory. Now when I go to the command prompt and type osgconv --format ive it comes back with a ReaderWriter for the IVE

[osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-06-05 Thread Andrew Thompson
Hi there, This is the first time I've posted on these boards, I wonder if any of you guys can help me out? I am developing a CAD application that uses OpenSceneGraph and I need to implement custom serialization of the CAD data to/from disk. This requires saving individual nodes and their

Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-06-05 Thread Andrew Thompson
... To add to the above, I just noticed osg::ReaderWriter::writeNode has an overload accepting a std::ostream I imagine this is what I'm looking for - the ability to read and write nodes to a memory stream. Does anyone have any experience this this overload and can offer comment on it?

Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-06-05 Thread Robert Osfield
Hi Andrew, If you don't have any custom nodes then you could use the .ive format, and use the .ive plugins support istream/ostreams. osgDB::ReaderWriter* writer = osgDB::Registry::instance()-getReaderWriterForExtension(ive); if(writer) { std::stringstream

Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-06-05 Thread Andrew Thompson
Hi Robert, Thank you for your reply. Some quick questions for you - By custom nodes do you mean my own classes inheriting a node? If so, no I don't have these. I am creating geometry inside Geode's in code, but the structure is very simple. As for the .ive format, I'll do a bit of googling

Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-06-05 Thread Robert Osfield
Hi Andy, It does sounds like .ive should foot the bill for you as your just using standard OSG classes. Robert. On Fri, Jun 5, 2009 at 12:45 PM, Andrew Thompsonandyb1...@yahoo.co.uk wrote: Hi Robert, Thank you for your reply. Some quick questions for you - By custom nodes do you mean my