Hi Sam,
I managed to implement my own manipulator (OVNIController, derived from
FirstPersonManipulator), but still can't change the camera position (I want
to change it in the beginning of the program, and also when the user press
the Home key).
You can see my code here:
Hi Rodrigo,
The Camera::setViewMatrixLookAt function is equivalent to the gluLookAt. You
can find more documentation on the inner workings here
(https://stackoverflow.com/questions/21830340/understanding-glmlookat).
If you don't set a camera manipulator prior to viewer.run() and move the
Dear Trajce,
do you have any idea how incomplete is your answer? There's no point in knowing
the function if I don't know how to set its parameters correctly.
What everybody learning OSG need is "a simple source code showing how it's
done", and this means a few lines of code, not less than a
Hi,
viewer.getCamera()->setViewMatrixAsLookAt
On Thu, Jan 31, 2019 at 10:01 AM Rodrigo Dias wrote:
> I want to change the camera direction with the mouse, and position with
> the keyboard. I've found an example on how to change the position, but
> still couldn't find anything explaining how to
I want to change the camera direction with the mouse, and position with the
keyboard. I've found an example on how to change the position, but still
couldn't find anything explaining how to change the direction (and not sure if
the position will change correctly when the direction changes). All
5 matches
Mail list logo