Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSpecifying Camera Location Programmatically...
https://www.eclipse.org/forums/index.php/mv/msg/1397/3857/#msg_3857
Miles Parker2009-06-01T19:01:06-00:00Re: Specifying Camera Location Programmatically...
https://www.eclipse.org/forums/index.php/mv/msg/1397/3865/#msg_3865
On 2009-06-01 21:01:06 +0200, Miles Parker <milesparker@gmail.com> said:
> Can it be done? I can't see anywhere in CameraTool API to do this..
Yes, of course. In the default version, "ESC" is a key for reseting the
camera, and other keys can be similarly programmed in subclasses of
CameraTool. Instead of reset, you have to call
org.eclipse.draw3d.camera.ICamera.lookAt(IVector3f, IVector3f).
Cheers,
Jens]]>Jens von Pilgrim2009-06-01T19:50:50-00:00Re: Specifying Camera Location Programmatically...
https://www.eclipse.org/forums/index.php/mv/msg/1397/561771/#msg_561771
On 2009-06-01 21:01:06 +0200, Miles Parker <milesparker@gmail.com> said:
> Can it be done? I can't see anywhere in CameraTool API to do this..
Yes, of course. In the default version, "ESC" is a key for reseting the
camera, and other keys can be similarly programmed in subclasses of
CameraTool. Instead of reset, you have to call
org.eclipse.draw3d.camera.ICamera.lookAt(IVector3f, IVector3f).
Cheers,
Jens]]>Jens von Pilgrim2009-06-01T19:50:50-00:00Re: Specifying Camera Location Programmatically...
https://www.eclipse.org/forums/index.php/mv/msg/1397/3871/#msg_3871
but I see that the camera is actually attached to scene. Again my lack
of knowledge on 3D stuff is showing. It works fine assuming I can get
3D coordinate systems figured out!
> Hi Miles,
>
> On 2009-06-01 21:01:06 +0200, Miles Parker <milesparker@gmail.com> said:
>> Can it be done? I can't see anywhere in CameraTool API to do this..
>
> Yes, of course. In the default version, "ESC" is a key for reseting the
> camera, and other keys can be similarly programmed in subclasses of
> CameraTool. Instead of reset, you have to call
> org.eclipse.draw3d.camera.ICamera.lookAt(IVector3f, IVector3f).
>
> Cheers,
>
> Jens]]>Miles Parker2009-06-01T21:33:56-00:00Re: Specifying Camera Location Programmatically...
https://www.eclipse.org/forums/index.php/mv/msg/1397/561792/#msg_561792
but I see that the camera is actually attached to scene. Again my lack
of knowledge on 3D stuff is showing. It works fine assuming I can get
3D coordinate systems figured out!
> Hi Miles,
>
> On 2009-06-01 21:01:06 +0200, Miles Parker <milesparker@gmail.com> said:
>> Can it be done? I can't see anywhere in CameraTool API to do this..
>
> Yes, of course. In the default version, "ESC" is a key for reseting the
> camera, and other keys can be similarly programmed in subclasses of
> CameraTool. Instead of reset, you have to call
> org.eclipse.draw3d.camera.ICamera.lookAt(IVector3f, IVector3f).
>
> Cheers,
>
> Jens]]>Miles Parker2009-06-01T21:33:56-00:00