hi Serge and Jean-Sébastien,

if i got you right, you suggest to implement a kind of proxy plugin associated 
with a particular file extension which would make use of existing plugins in 
order to load different file formats.

certainly, you are right. it is one possibility. however i feel that it is not 
general enough. it would be nice not to touch any file extensions, instead let 
the api user interfere in fetching the data from physical medium. for instance 
the plugin for getting data from remote machines via a network protocol does 
internally something similar, i.e. it does not fetch the data from local hard 
disk, but uses a network protocol.

i think a cleaner approach would be a mechanism for accessing data during 
plugins read and write data. thus (Serge) you would not need to write an own 
plugin for accessing sql data, but just interfere in your application in the 
operation of accessing the data. so imagine you use the osgDB method for 
reading a node and the node is read from sql database instead of a local hard 
disk. so you would be able to read any supported file type from your sql 
database, e.g. osg, ive, obj, image files, etc. for directing the read/write 
operation to a sql database one could use the options object. in your 
application you would have a callback where you check the option and either 
forward the file operation to current implemented mechanisms or you handle the 
file operation yourself (e.g. read/write from/to sql database).

Serge, your sql access is very similar to my idea of accessing a virtual file 
system.

i am curious what Robert thinks about this stuff.

cheers
boto


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to