WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Rotation and Translation (https://forum.worldviz.com/showthread.php?t=5082)

Shweta 06-26-2014 12:22 AM

Rotation and Translation
 
Hello,

Is it possible to control the speed of motion during rotation or translation when we change the viewpoint using setPosition() or setEuler()?
Is there a method to implement the default behavior of using a mouse to move around through matrices (transformation matrix with 6 DOF)?
If yes, how do I control the speed there?

Thanks and Regards,
Shweta.

Jeff 06-30-2014 11:45 AM

You can scale the mouse movements using the .setScale command. Does that help answer your questions?

Shweta 07-01-2014 05:07 AM

Hello,

Thank you for the reply.
I want to implement the navigation through the window using matrices(without using the mouse. But I also want to control the speed of navigation).
At this point I am using the following code snippet:
(for translation)
gotoRight = vizact.goto([2,1,-2],3,mode =viz.SPEED,rotate_mode=viz.BLEND_ROTATE,ori_mask=v iz.BODY_ORI)
court.addAction(gotoRight)

(for rotation)
spinToYaw90 = vizact.spinTo(euler=[90,0,0], speed=5)
court.addAction(spinTOYaw90)
court.addAction(spinToYaw90)

Now if I want to implement both translation and rotation simultaneously, can I do that?

I tried using setPosition() and setEuler(). However these two commands change the positions within the blink of an eye. Can I slow down the speed with which they impact the scene?

Thanks and Regards,
Shweta Shitole


All times are GMT -7. The time now is 01:36 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC