In camera.screen() you don't pass the scene as the first parameter but a
mesh whose vertices you want to track in 2D.The function works perfectly .I
still completely don't understand what you are trying to achieve but passing
the object into camera.screen() will return a Vector3D of its vertices in
the screen space.

On Tue, May 10, 2011 at 1:34 PM, Michael <[email protected]>wrote:

> Hi,
> I want to cover up an AR marker with a textured plane. My plan was to
> get 4 pixels around the marker and then create a plane with vertex
> colors to interpolate between the corners. I'm struggling a bit with
> the coordinate systems. When I get the corner vertices of the marker
> they are in screen space (which is good to get the pixel colors of the
> camera bitmapdata) BUT I want to move my capture point in local
> scene3d (away3d) coordinates.
>
> If I add a 3d object (e.g. a trident) to my scene I simply can use
> obj.x = obj.y =100 to move it outside my marker (0,0 is the middle
> point of my marker) but I can't pick my pixel color using screen-
> coordinates (obj.x is still 100). I've tried camera.screen(scene3d,
> obj.vertices[0]) to get screen-coordinates but it wasn't working.
>
> Is there a simple way to add a point/invisible object to the 3d scene,
> move it (local space) and then retrieve the screen coordinates of it?
>
> I'm using Away 3.6 and FLARtoolkit.
>
> Thanks
> Michael




-- 
Michael Ivanov ,Programmer
Neurotech Solutions Ltd.
Flex|Air |3D|Unity|
www.neurotechresearch.com
http://blog.alladvanced.net
Tel:054-4962254
[email protected]
[email protected]

Reply via email to