From: Braden M. <br...@en...> - 2005-11-15 02:55:22
|
On Tue, 2005-11-15 at 00:52 +0100, jo...@he... wrote: > Hi all, > > i would like to add a new viewport_node to the browser with a given field of > view. > Or is it possible to change the viewport of the active viewpoint node. I've > searched for this topic, but found nothing helpfull. One way is to create a new node with browser::create_vrml_from_stream and add it to the scene. Another is to get the "Viewpoint" node_type from the scope and create a new node from it: your_browser.root_nodes()[0]->scope()->find_type("Viewpoint")->create_node(...); > Is it also possible to change the absolute transformation of a viewpoint, not > relative to the active viewpoint node? At the moment i'm resetting the current > viewpoint, and then change the transformation. I'm not sure what you mean here because you don't appear to be using VRML's nomenclature. Changes to the user view are always relative to the active Viewpoint node. You can change the position and orientation of a Viewpoint node; or you can change the translation and rotation of one of its parent Transform nodes. PS: The openvrml-develop mailing list permits posting only by subscribers in order to curb spam. Please subscribe to the list if you intend to continue posting. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |