I finally figured it out.

This tutorial helped me understand it.

http://blog.tartiflop.com/2008/08/understanding-zoom-focus-and-field-of-view-in-papervision3d/

I got the screen position of the pipe and then used the formula on
that page to figure out how I need to rotate it.

Thanks


On Jun 23, 7:48 pm, Peter Kapelyan <[email protected]> wrote:
> Have you tried the default zoom+focus, and can you see down the pipe then?
>
> Also, can you please put your test online so we can see, and possibly have
> some sort of slider or textbox so you can change and see what happens when
> you change the zoom/focus, if that's what you think is causing your
> problems?
>
> Thanks
> -Peter
>
>
>
>
>
> On Wed, Jun 23, 2010 at 6:45 PM, abowman <[email protected]> wrote:
> > When I use lookAt for the pipe to point at other objects it rotates
> > correctly.
>
> > The problem seems to be that I'm having an issue wrapping my brain
> > around the focus and zoom properties of the camera.  When I place a
> > cube at the camera position, I can see the cube on the screen as
> > though it were in front of the camera.  I thought that if I placed a
> > cube at the camera position that it would completely obstruct my
> > view.  How can I determine that position?  The position that I would
> > place the cube to block my view.  I think if I knew that, I could use
> > it to rotate the pipe to the correct angle.
>
> > On Jun 23, 5:10 pm, Peter Kapelyan <[email protected]> wrote:
> > > Try putting it inside it's own ObjectContainer3D (like a group), and use
> > > lookAt on the ObjectContainer3D  instead. You will have to rotate the
> > pipe
> > > (not the ObjectContainer3D ) until it's correct.
>
> > > Once you figured the correct rotation for your pipe, you might be able to
> > > applyRotations() to the pipe and then you won't need that
> > ObjectContainer3D,
> > > since applyRotations will lock in the correct rotation.
>
> > > Hope it makes sense
>
> > > -Pete
>
> > > On Wed, Jun 23, 2010 at 4:43 PM, abowman <[email protected]> wrote:
> > > > Yeah, like a hollow cylinder.
>
> > > > On Jun 23, 4:38 pm, Peter Kapelyan <[email protected]> wrote:
> > > > > pipes?
>
> > > > > On Wed, Jun 23, 2010 at 4:36 PM, abowman <[email protected]> wrote:
> > > > > > How can I get a pipe to rotate so that I can look straight through
> > it?
>
> > > > > > I tried using the pipes lookAt function with the camera position,
> > but
> > > > > > it doesn't work correctly unless it's toward the center of the
> > > > > > screen.  I get different results depending on what the camera's
> > focus
> > > > > > and zoom are set to.  Is there a way I can get the correct position
> > to
> > > > > > pass to the pipes lookAt function or is there a better way to go
> > about
> > > > > > doing this?
>
> > > > > > Thanks
>
> > > > > --
> > > > > ___________________
>
> > > > > Actionscript 3.0 Flash 3D Graphics Engine
>
> > > > > HTTP://AWAY3D.COM
>
> > > --
> > > ___________________
>
> > > Actionscript 3.0 Flash 3D Graphics Engine
>
> > > HTTP://AWAY3D.COM
>
> --
> ___________________
>
> Actionscript 3.0 Flash 3D Graphics Engine
>
> HTTP://AWAY3D.COM

Reply via email to