[Papervision3D] How to find the camera "center point"?

Steve D kruass at gmail.com
Thu Apr 16 16:45:03 PDT 2009


Try creating a Plane3D object (core.math.Plane3D, not a
objects.primitives.Plane!) at the z depth you're looking to place the object
at.  Then follow the logic from this page http://blog.zupko.info/?p=143

Note, when creating your plane3d, instead of:
 p.setNormalAndPoint(new Number3D(0, 1, 0), new Number3D(0, 0, 0));
you'd use:
 p.setNormalAndPoint(new Number3D(0, 1, 0), new Number3D(0, 0,
-desiredZDepth));



On Thu, Apr 16, 2009 at 10:53 AM, lunetta <carlos.lunetta at gmail.com> wrote:

>
> Hello all
>
> I think I may be missing something again (that good old gray jelly inside
> my
> skull), but I'm having a hard time to find out the "center point" of a
> camera at a given z distance.
>
> Let's say I have a scene, and my camera is happily rotating around
> according
> to mouse position.
> At a certain moment, I want to move an object to move to the exact center
> of
> the screen; I know the z distance I want it to have, but how to figure out
> the x and y that would match the exact center of the screen at that given
> camera position?
>
> I tried searching the forum, but couldn't find this.
>
> Thanks for any tips!
> --
> View this message in context:
> http://www.nabble.com/How-to-find-the-camera-%22center-point%22--tp23083215p23083215.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090416/9e627889/attachment.html>


More information about the Papervision3D mailing list