Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF3D » Specifying Camera Location Programmatically...
Specifying Camera Location Programmatically... [message #3857] Mon, 01 June 2009 19:01 Go to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1340
Registered: July 2009
Senior Member
Can it be done? I can't see anywhere in CameraTool API to do this..
Re: Specifying Camera Location Programmatically... [message #3865 is a reply to message #3857] Mon, 01 June 2009 19:50 Go to previous messageGo to next message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 295
Registered: July 2009
Senior Member
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
Re: Specifying Camera Location Programmatically... [message #3871 is a reply to message #3865] Mon, 01 June 2009 21:33 Go to previous message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1340
Registered: July 2009
Senior Member
Sorry, I was being dense. I meant by calling a method on CameraTool,
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!

On 2009-06-01 12:50:50 -0700, Jens v.P. <developer@jevopi.de> said:

> 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
Re: Specifying Camera Location Programmatically... [message #561771 is a reply to message #3857] Mon, 01 June 2009 19:50 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 295
Registered: July 2009
Senior Member
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
Re: Specifying Camera Location Programmatically... [message #561792 is a reply to message #3865] Mon, 01 June 2009 21:33 Go to previous message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1340
Registered: July 2009
Senior Member
Sorry, I was being dense. I meant by calling a method on CameraTool,
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!

On 2009-06-01 12:50:50 -0700, Jens v.P. <developer@jevopi.de> said:

> 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
Previous Topic:Specifying Camera Location Programmatically...
Next Topic:Lighting
Goto Forum:
  


Current Time: Thu Dec 18 07:13:52 GMT 2014

Powered by FUDForum. Page generated in 0.08613 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software