aah, right. this would be because native flash 10 matrices use 4x4
projection matrices for converting their vertices to screen coords.

you can do what they do - divide the x and y values of the position you get
by it's z value. that should produce meaningful results, i hope

Rob

On Mon, Oct 12, 2009 at 11:04 AM, astrocreep <[email protected]> wrote:

>
> with myObject.viewMatrix3D.position i'm getting some really big
> numbers. i.e. 10000 for objects only being about 200 pixels from the
> center.
>
> do i have to translate the vector in some way?
>
> On 11 Okt., 02:23, Rob Bateman <[email protected]> wrote:
> > try this:
> >
> > myObject.viewMatrix3D.position
> >
> > Rob
> >
> > On Fri, Oct 9, 2009 at 1:56 PM, astrocreep <[email protected]> wrote:
> >
> > > Is there a was to retrieve screenpositions of objects in the scene? In
> > > the standard version, there is the camera.screen function.
> >
> > > I tried transmat = displayObject.transform.getRelativeMatrix3D
> > > (vieport) and then get the positions via
> > > transmat.position.x and transmat.position.y. positions seem to be in
> > > the right direction, but the results are not correct.
> >
> > --
> > Rob Bateman
> > Flash Development & Consultancy
> >
> > [email protected]




-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to