Hi I am trying to create a new camera objects from a plugin but the reported function PluginFunctions::addCamera is missing. Also I would like to know how to associate a view with a camera. I have seen the viewerId and examinerId methods of the CamerObject class, but it is not clear how to use them. Thank you Olaf
On 28.09.2012 13:38, Olaf Razzoli wrote:
Hi
I am trying to create a new camera objects from a plugin but the reported function PluginFunctions::addCamerais missing. Hi,
you have to use the LoadSaveInterface: http://openflipper.org/Daily-Builds/Doc/Developer/loadSaveInterfacePage.html There is also a code snippet on how to create cameras on this page: http://openflipper.org/Daily-Builds/Doc/Developer/CameraType.html
Also I would like to know how to associate a view with a camera. I have seen the viewerId and examinerId methods of the CamerObject class, but it is not clear how to use them.
Currently there is no direct interface to associate them. You can simply get the matrices from the camera object and set them in the viewer via the PluginFunctions Best, Jan Möbius -- Dipl.Inform. Jan Möbius Department of Computer Science VIII Aachen University of Technology (RWTH) Ahornstrasse 55, 52074 Aachen, Germany Phone ++49 (0)241 80-21817 Fax ++49 (0)241 80-22899 mailto:moebius@cs.rwth-aachen.de http://www.rwth-graphics.de
participants (2)
-
Jan Möbius
-
Olaf Razzoli