Thread: Saving as a WRL
View Single Post
  #3  
Old 05-13-2008, 07:29 AM
Andrey Andrey is offline
Member
 
Join Date: Apr 2007
Posts: 21
Sure, no problem to generate wrl. The problem is that the translation and rotation in WRML differ from Vizard. As to translation, WRML has opposite Z direction. More difficult situation is for rotation: since I have top (p1) and bottom (p2) cylinder positions in Vizard, to get WRML rotation parameters I tried

vizmat.LookToQuat(vizmat.VectorToPoint(p1,p2))

and

vizmat.QuatToAxisAngle(vizmat.LookToQuat(vizmat.Ve ctorToPoint(p1,p2)))

but both variants produces something mysterious. Could you help?
Reply With Quote