|
From: Jean-Nicolas O. <jno...@gm...> - 2010-09-02 13:18:13
|
Hi, I am developing an application where I display a wrl model from a custom viewpoint in opengl, similar to what is done in artoolkit. I built the latest version of openvrml (0.18.99 for now) along with the dependency and successfully integrated it in my application. I use a custom viewer (myViewer: openvrml::gl::viewer ) and I can display one model without problems. The model is loaded from the browser load_url as in the sample sdl_viewer. I use the render function to display the vrml model. Now I want to display more models pre-loaded from different wrl files dependeing on the user interaction with the application. Is there a simple and efficient method to accomplish this. Digging in openvrml source, I found the viewer::replace_world which seems to do this but I don't understand the documentation. An example of how to do this would be very usefull. Can someone explain how this can be done? Regards, JNO |