I am having trouble using the Projector class in the SpriteText
example to get a 2D screen Point from a 3D Position.  I understand I
need to set the current view, pass it the current projection/modelview
matrices, and then call project. What I am have trouble with is how do
I prepare my x,y,z position to pass it as a 4x4 matrix to the project
function? The example only passes in the x,y values (the z is always 0
which isn't really a fair example of 3D projection). I've tried
setting the top row of the Matrix to x,y,z,1 (guessing from how the
example works) but that did not give me the correct coordinates. I
also tried creating an identity Matrix then translating by x,y,z to no
avail. Can someone verify the Projector does work as intended, with
real 3d positions and a modelview that changes rotation; or maybe just
show me what I'm missing :)

Thanks in advance for any help given.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to