[Papervision3D] 3D >> 2D coordinates
Makc
makc.the.great at gmail.com
Thu Jan 10 03:11:26 PST 2008
in dod3d you have:
public var screen :Number3D = new Number3D();
...
private function calculateScreenCoords( camera :CameraObject3D ):void
{
var persp:Number = (camera.focus * camera.zoom) / (camera.focus + view.n34);
screen.x = view.n14 * persp;
screen.y = view.n24 * persp;
screen.z = view.n34;
}
perhaps simply changing calculateScreenCoords( to public would help.
On 1/10/08, Dennis Ippel <ippeldv at gmail.com> wrote:
> This'll do it:
>
> http://osflash.org/pipermail/papervision3d_osflash.org/2007-August/010225.html
>
>
>
> On Jan 10, 2008 9:48 AM, Lukasz Karluk <julapy at googlemail.com> wrote:
> >
> > hi, im working on a project at the moment with papervision 1.7b
> > im running MovieScene3D with a few Planes scattered randomly all facing
> the camera.
> > i would like to add movie clips over the 3D scene based on the coordinates
> of the planes. more precisely, i need to convert 3D coordinates into 2D
> coordinates on the screen.
> > if anyone has done this before or has any idea on how it can be done, can
> you please point me in the right direction.
> >
> > cheers.
> > julaps
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> >
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
More information about the Papervision3D
mailing list