Ok, one step further =) I can now orbit around two different objects
in the scene. My problem was the distance. Setting this to a higher
value now lets me orbit the objects.

There's still one thing I don't understand: Camera now moves "on a
rater large circle" around the objects - how can I explain - seems
that the cameras orbit is not centered to the object. The distance to
the object varies while orbiting it. I'll set up an example and post
it here. Meanwhile thanks for your help!

Regards,
Stefan


On 3 Mrz., 16:53, Fabrice3D <[email protected]> wrote:
> Since I pasted here only a line, I wanted make clear to you its a 
> Hovercamera3D type camera.
> if the camera object is not of TargetCamera3D type (HoverCamera3D extends it)
> it will not work. So if your view.camera is HoverCamera3D, you can set the 
> target
> like this view.camera.target
>
> if you move the target, the chair, the camera will hover around it and use 
> this point as a lookat position.
> in speudo code:
>
> some setTarget function
>         view.camera.target = chair;
>
> onEnterframe
>         move chair
>         hover
>         render
>
> Fabrice
>
> On Mar 3, 2010, at 4:32 PM, metSyS wrote:
>
> > I have a question. I can't understend what it means this string :
> > "(view.camera as HoverCamera3D).target  = mychair;" . I want to
> > UNDERSTEND this code. "mychair" - it's clear - this is our object
> > around which we want to rotate camera. ".target" - that's clear too.
> > What does it mean "view.camera as HoverCamera3D"??
>
> > On 3 ÍÁÒ, 17:06, Fabrice3D <[email protected]> wrote:
> >> (view.camera as HoverCamera3D).target  = mychair;
> >> if you then move the chair object3d you need to render/hover again
>
> >> Fabrice
>
> >> On Mar 3, 2010, at 3:40 PM, Stefan wrote:
>
> >>> Thanks for the very fast reply!
> >>> This seems to be the basic setup for a hovercam with mouse control. I
> >>> got this to work already. What I'm actually after is the following:
>
> >>> First I want to orbit e.g. the object "table". Then I'd like to move
> >>> the camera to some other position in the room and orbit e.g. the
> >>> object "chair".
> >>> When I change the camera's target from "table" to "chair" it looks at
> >>> chair, but still rotates around the scene's origin. Or in other words:
> >>> I never get to see the back side of the chair. Am I missing something
> >>> here?
>
> >>> Thanks in advance,
> >>> Stefan

Reply via email to