looks like you are trying to get the scene coordinates on the surface of the
face under the mouse. This is information already contained within
MouseEvent3D:
public function onGlobeMouseDown(e:MouseEvent3D):void
{
var obj:Number3D = new Number3D();
obj.x = e.sceneX;
obj.y = e.sceneY;
obj.z = e.sceneZ;
}
should give you what you want. If you are after local object coordinates,
you can multiply the resulting number3d by the inverse scene matrix of the
container in question
atb
Rob
On Sat, Nov 22, 2008 at 6:41 PM, artur <[EMAIL PROTECTED]> wrote:
>
> Hi Daevid
>
> I Think I got the half, initially the values were to wrong places but
> after of review my code i found that i was change the
> scale of the 3ds model loaded this was the reason , seems that affect
> the coords , to make it works i added the model to a Display container
> and scale the container instead,
> no I get the face where is clicked using:
>
> > var f:Face3D = (e.drawpri as DrawTriangle).face;
> > if(f==null) return
>
>
> Now I have access to one of the 3 vertex correctly, now im tryng to
> figure out how get exact point in that face using UV coords
>
> Ty for you comments
>
>
> cheers
> artur.
>
> On Nov 22, 3:15 am, Daevid <[EMAIL PROTECTED]> wrote:
> > It should work with the mouseevent data. Are the values returning 0 or
> > does the values put your effect on the wrong place? Remember that the
> > coordinates maybe need to be transformed to the coordinate space of
> > the new primitive if you are placing it in a different parent.
> >
> > /David
>
--
Rob Bateman
Flash Development & Consultancy
[EMAIL PROTECTED]
www.infiniteturtles.co.uk
www.away3d.com