Screen position of the object in Away 4

Software: Away3D 4.x

Avatar
SasMaster, Sr. Member
Posted: 11 July 2011 12:12 PM   Total Posts: 127

Hi to all away dudes.Looked for a method to find screen coordinates of 3d object.Found camera.project() that returns a point.The values it returns don’t look like screen space values .Are those just a projection values ? Isn’t there a method like ScreenVertex we have in Away3.6?
Thanks .

 Signature 

This looks like a job for superman
http://blog.alladvanced.net

   

Avatar
Choons, Sr. Member
Posted: 11 July 2011 11:00 PM   Total Posts: 281   [ # 1 ]

you can get the x & y values from yourObject.position. They are the first two numbers. The coordinate system is different than Flash’s but it’s pretty to easy to convert it if that’s what you need

   

Avatar
SasMaster, Sr. Member
Posted: 12 July 2011 04:10 AM   Total Posts: 127   [ # 2 ]

Hi Choons.Desperately trying to catch up with you to become “the Member” wink The vector position property of object3d is not the screen space position.Also you don’t take into account only x and y modelview coordinates when you convert it into the screen space .Of course I can write my own solution for it but I wanted to know if there is a generic Away3D 4 implementation for it smile .

 Signature 

This looks like a job for superman
http://blog.alladvanced.net

   

Avatar
Choons, Sr. Member
Posted: 12 July 2011 04:26 AM   Total Posts: 281   [ # 3 ]

I thought there had to be some ulterior to that post, Michael. I responded and then realized who I was responding to ; ). Yeah a feature similar to the 3.6 method would be nice. I’m not aware if there is one or not.

   

Avatar
SasMaster, Sr. Member
Posted: 12 July 2011 04:39 AM   Total Posts: 127   [ # 4 ]
Choons - 12 July 2011 04:26 AM

I thought there had to be some ulterior to that post, Michael. I responded and then realized who I was responding to ; ).

Come on Choons! I am just a user like you,may be with little bigger former google group activity experience smile) .
BTW ,are you familiar with this quote? “There are only two industries that call their clients ” users ” ” .
wink

Have a nice day man .

 Signature 

This looks like a job for superman
http://blog.alladvanced.net

   

Avatar
Choons, Sr. Member
Posted: 12 July 2011 04:56 AM   Total Posts: 281   [ # 5 ]

HAHA! Keep pushing those sweet sweet pixels wink

   

jeffrey9700, Newbie
Posted: 17 November 2011 06:47 PM   Total Posts: 14   [ # 6 ]

Did you discover a solution?

   

Avatar
SasMaster, Sr. Member
Posted: 17 November 2011 07:22 PM   Total Posts: 127   [ # 7 ]

Yeah,I posted it somewhere here already for a long time ago.

 Signature 

This looks like a job for superman
http://blog.alladvanced.net

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X