Camera rotation with the mouse...

Started by entis, May 22, 2008, 03:35:45 PM

Previous topic - Next topic

entis

Hi,

I would like to know how camera rotation (relative to the camera center) with a mouse could be implemented in jpct (in sw renderer mode), i.e. I would like to choose direction with the mouse and only then move there with the keys (like in 3D shooter games, e.g. CS), also zooming with the mouse wheel would be great... May be someone has an example?

Thanks in advance.

EgonOlsen

The "advanced example" (available in the download section) does this....except for the zooming, which is basically just a change of the fov depending on the mouse wheel, which is very easy to add.

entis


Melssj5

Nada por ahora

EgonOlsen

Field of view. You can set it in Camera.