Thanks for answering…
I tried the window->setup_trackball(); it allows me to use mouse to manipulate the camera, as i don`t want that, i removed that line from my code, so my program is not running with it…
Update:
From the link you submit, i noticed there is no Camera* pointer as used type, the example is using NodePath for camera, and get the camera as follows:
camera = window->get_camera_group();
So this line : camera = window->get_camera(0);
does not returns me a manipulable camera… isn`t ? This means i need to understand the concept of a Camera object and NodePath…
OK you explained well…
What I really do not understand is, why do I need to access a node that contains multiples cameras rather than choosing only the camera I want to manipulate…
Moving window->get_camera(0) has a lot o more sense than moving window->get_camera_group() to translate the camera 0…
Moving the group of cameras makes me feel than I’m moving all my camera…
I fully agree with you, please note that the approach used in the official manual is not always correct. It is better to give examples for a tutorial with a newly created camera than to refer to the basic one. This will only confuse.
CameraGroup (a NodePath: this should be the parent of the followings nodes) Camera (a PandaNode : child of CameraGroup NodePath) SomeAudioNode (a PandaNode : chile of CameraGroup NodePath)
The group in this case is CameraGroup, maybe the name get_camera_group means that i’m accessing the Nodepath for the default camera group, not a group of all cameras!..