brettwiesner wrote on Wednesday, October 01, 2008 11:54 AM:

> Bryan,
> 
> Thanks for the reply. See inline...
>> You could implement your own loader with a different file extension
>> (say, ".enc") that does the en/decryption and then calls the IVE
loader
>> to load the resulting data. The curl loader does something like this.
>> 
> 
> This is what I did originally. There was a problem with referenced
> files; those wouldn't get encrypted/ decrypted. The IVE loader would
> just process them as .ive's.
> 
>> Or you could use a osgDB::Registry::Read/WriteFileCallback to
de/encrypt
>> the data before it gets read/sent from/to disk.
>> 
>> 
> 
> That is interesting. I didn't know about those before. I think they
will
> have the same problem though. If I write a callback that does
something
> special when it's suppose to write out an encrypted file, and it uses
> the IVE loader to get the data to encrypt, that process will still
cause
> the IVE loader to write out referenced files as .ive's.
> 
> This would be pretty easy if I could derive from ReaderWriterIVE.

It sounds like the problem is the referenced filenames; perhaps a
visitor to change them to have the ".enc" extension so they get written
through your loader rather than the IVE one directly?

For example, a ProxyNode or PagedLOD that refers to "foo.osg" would have
to be changed to refer to "foo.osg.enc" before you do the actual write.

-- 
Bryan Thrall
FlightSafety International
[EMAIL PROTECTED]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to