Author Topic: Camera rotation with the mouse...  (Read 4121 times)

Offline entis

  • byte
  • *
  • Posts: 32
    • View Profile
Camera rotation with the mouse...
« on: May 22, 2008, 03:35:45 pm »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Camera rotation with the mouse...
« Reply #1 on: May 22, 2008, 03:53:42 pm »
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.

Offline entis

  • byte
  • *
  • Posts: 32
    • View Profile
Re: Camera rotation with the mouse...
« Reply #2 on: May 22, 2008, 04:00:10 pm »
Thanks Egon I'll check them...

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Re: Camera rotation with the mouse...
« Reply #3 on: May 22, 2008, 05:28:15 pm »
What is fov?
Nada por ahora

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Camera rotation with the mouse...
« Reply #4 on: May 22, 2008, 06:32:48 pm »
Field of view. You can set it in Camera.