pauldol opened this issue on Oct 12, 2011 · 12 posts
pauldol posted Wed, 12 October 2011 at 9:31 AM
Quote - Python will give you acces to the object's geometry:-
scene = poser.Scene()
actor = scene.CurrentActor()
geom = actor.Geometry()
verts = geom.Vertices()
worldverts = geom.WorldVertices()print "Local Vertices:-"
print "----------------------------"
i = 0
while i < 10:
print verts[i].X(),
print verts[i].Y(),
print verts[i].Z()
i = i + 1print "World Vertices:-"
print "----------------------------"
i = 0
while i < 10:
print worldverts[i].X(),
print worldverts[i].Y(),
print worldverts[i].Z()
i = i + 1Does that help any?
Thank you!
Your answer is quite helpfull.
2)So, if I can get the 3D location of the camera pinhole,
I can calculate the distance of the vertices from the pinhole.
Ideally, what I would like is this:
For a 2D rendered image, I would like to know for every 2D pixel how far the respective vertex is from the camera. in this way I can create a "depth image".
If you are familiar with the Kinect (Microsoft's new camera) you can get "depth images" as I described above.
Thanks in advanve for your help!
Paul