I’m trying to create a 3D scene and for development I’d like to be able to control the camera (position and rotation) using “first-person-shooter style” mouse/keyboard input.
I’m reading about the cameraViewport comp from the Palette (here and here) but I’m not managing to to move the camera at all.
I know the 3D Mouse and Keyboard settings have to be enabled (see screenshot below) but nothing seems to happen when I move/drag the mouse or press the (any) keys on the keyboard (also in perform mode).
Am I forgetting something, or could this be a bug? I’m currently only testing on a macbook.
It’s the panel you use with the cameraViewport that will show in perform mode. For the sake of plug n playness, the cameraViewport is coming with its own internal panel by default. Look at the parameters
Panel COMP Panelcomp - The Panel Component receives the mouse and keyboard interactions, and is used to control the interaction. By default, this parameter is set to a basic container inside of the camera that is used as the node’s viewer. You can change this reference to an external panel if you wish to control the camera from another view. Note: If you’re using your own panel, make sure to enable the Mouse Wheel and Mouse UV Button parameters to enable full functionality.