astrocreep, What was the final formula you used? I have been trying to use the examples in this discussion withou much success. Any pointers?
Tony On Oct 13, 3:09 am, astrocreep <[email protected]> wrote: > that's it! thank you very much... > > On 12 Okt., 16:20, Rob Bateman <[email protected]> wrote: > > > > > aah, right. this would be because native flash 10 matrices use 4x4 > > projection matrices for converting their vertices toscreencoords. > > > 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.screenfunction. > > > > > > 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] Hide quoted > > text - > > - Show quoted text -
