Hi Robert, just some thoughts:

Could the cache read be implemented inside the .net plugin as a fallback method? If it is possible to know at runtime wether a particular reader can read from stream then would be possible to add code inside the net plugin:

If the called plugin is able to read from stream, then proceed as now, otherwise read from the net socket, save on a
(cached?) file and then pass the filename.

This could be the default behaviour if the file cache option is activated.

Does this make sense?

Thanks in advance.



Robert Osfield wrote:

Hi Neil,

The 3ds plugin doesn't have support for reading from an istream, and the .net plugin reads from http, and redirecting the input to istream, which then is passed on to the plugin - which in this case can't handle it.

Potentially the 3ds plugin could be ported across to read from istream, but this is a bit problematic due to the lib3ds, that the 3ds plugin integrates, reading from standard a C file. Perhaps one could get around this by reading from istream and write to a local cache then pass the filename of this to the 3ds plugin.

Robert.

On 9/18/06, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi All,

    Has anyone succeeded in loading a 3DS file into OSG across the
    internet ? I've compiled the ".net" plugin and tracked into the
    code. The code issues the HTTP GET request to the correct server,
    and I get a response of 200, which is OK. It even tells me the
    correct number of bytes for the file that I've requested. However,
    when it then goes to get the ReaderWrite object, it finds the 3DS
    plugin, but the status that comes back when it trys to read the
    file is "FILE NOT HANDLED".

    Is there something about 3DS files that mean they can't be loaded
    across the web like this, or have I missed something out.

    Any help would be greatly appreciated. If you need a model on a
    server to try this with then the following link is a link to a
    bath tub 3DS file model that you could try.

    http://vso.logicom.com/testmodels/bathroom/300.3ds

    Many thanks for any help you can give.

    Regards

    Neil.


    _______________________________________________
    osg-users mailing list
    [email protected] <mailto:[email protected]>
    http://openscenegraph.net/mailman/listinfo/osg-users
    <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/


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

Reply via email to