yaio
19-10-2009 09:32:26
Hello, I have to port in Python this code snippet:
http://www.ogre3d.org/wiki/index.php/Projecting_3D_position_and_size_to_2D#Projecting_position
but when I execute this instruction:
(that is the first line of ProjectPos function) I obtain:
How can I solve this? Thanks!
http://www.ogre3d.org/wiki/index.php/Projecting_3D_position_and_size_to_2D#Projecting_position
but when I execute this instruction:
eyeSpacePos = camera.getViewMatrix( True ) * pos
(that is the first line of ProjectPos function) I obtain:
File "C:\...\pp.py", line XX, in projectPos
eyeSpacePos = camera.getViewMatrix( True ) * pos
TypeError: unsupported operand type(s) for *: 'Matrix4' and 'Vector2'
How can I solve this? Thanks!