Hi Robert, On the technical front, I would have thought converting OSG C++ code
to a native OSG Java version while possibly doable would be very difficult to undertake and maintain, at least with the OSG in its present form with its advanced use of C++.
Of what advanced use of C++ do you talk about excatly ? The parsing could be a fork and a first start for the java implementation. A more productive route would probably be to create a standardised
scene graph design that is implemented on different languages. This would require multiple independent implementations though, and work keeping the various implementations in sync.
Yes it is a good idea and a often used principle as the XercesXML api for example. Reuse of common components would be desirable, i.e a loader written in
C++ should be usable to plugin to a Java version of the scene graph, or a Java plugin working with a core C++ version. The way one could tackle this would be to define the scene graph via the data components of the scene graph rather than as class objects.
These data
components would be serialized in and out in a standard way that would facility easy conversion through different language interfaces. The scene graph spec would based around a formal protocol that defines all objects, including how one handles new objects not defined in the local language.
I think data component is not sufficient, the api is as much important the data and should be specified and standardized. But yes only the data can be serialized. If these is a new objects witch doesn't exist in the local language, the user must implement the same or his own implementation for this chunk of data. This is obviously a major departure from how develop the OSG right
now. I touched on this topic in my Siggraph 2006 talk presented by Mike Weiblen in our Bird of Feather sessions. Have a look on the OSG website documentation page for links to this and other presentations.
I have just read presentations but it seem me be very poor in informations and how it could be done. -- Bertrand Greslier http://www.cooki3d.org
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
