Neil and Robert

Sounds interesting - did you implement or modify the equivalent write callback for encryption.

However, I am not sure if osgDB is the appropriate place. For example, as far as I can see osgTerrain / DataSet does not route through osgDB. I therefore chose to implement the read/write process via callbacks in OSGA_Archive. This of course limits the usefulness to archives and it does not provide a general solution. My method is rather specific, but it is working all right.

The other question I had was as regards the hardcoding of ".osga" in osgDB::Registry.cpp function read(). I do think a simple change to allow flexibility here would be useful. Otherwise unless I misunderstand something, only "osga" archive files can ever be read by osgDB.

Regards
Alan

[EMAIL PROTECTED] wrote:
Hi Robert and Alan,

I submitted changes approximately 3-4 weeks back that would solve this issue, 
but as I understand it Robert has been snowed with other work and hasn't had 
time to review the submission.

Essentially the submission made an amendment to the Readfilecallback structure to accommodate streams. In terms of how this would then be implemented, as a users you merely derived your own class from the readfilecallback, provided an override for the virtual function that the osgDB called to decrypt the stream, providing your own decryption algorithm. This function returned the decrypted stream which was then passed on to the appropriate reader. (This was in the context of the .Net plugin). I also made changes to the 3DS, tga and jpeg readers to accommodate streaming over the web.
Robert, could you take a look at the submission as I think this addresses the 
topic, and more.

Regards

Neil.


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to