www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: entis on May 22, 2008, 03:35:45 pm

Title: Camera rotation with the mouse...
Post by: entis 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.
Title: Re: Camera rotation with the mouse...
Post by: EgonOlsen 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.
Title: Re: Camera rotation with the mouse...
Post by: entis on May 22, 2008, 04:00:10 pm
Thanks Egon I'll check them...
Title: Re: Camera rotation with the mouse...
Post by: Melssj5 on May 22, 2008, 05:28:15 pm
What is fov?
Title: Re: Camera rotation with the mouse...
Post by: EgonOlsen on May 22, 2008, 06:32:48 pm
Field of view. You can set it in Camera.