Link MainView to instable platform
1 Attachment(s)
I've got a moving platform that can raise, roll, pitch, turn and move forward. To this platform I want to link the MainView. Besides being linked to the platform the MainView also has to be linked to a joystick/keyboard controls and in the future a HMD 6-dov tracker.
I solved this problem by creating a function that is called every frame and that combines a fixed point on the platform (VizGroup) with a user (VizGroup) object. The user object is moved by the joystick/keyboard while the platform is moved by VizActions. Code:
def setView(event): I've included a example script with a distilled version of my code. As soon as you initiate a roll (using the slider) the image will get shake very slightly but as soon as you move a small amount forward (w key) the shaking gets extreme. The shaking is always the most noticeable if you move close to objects on the platform. My question is: How to link a controllable MainView to a instable platform that does not create a shaking image. |
Does it make any difference if you use the postMultLinkable operator instead of a group node?
Code:
link = viz.link(tracker,viz.MainView) |
The result of using
Code:
link = viz.link(tracker,viz.MainView) |
All times are GMT -7. The time now is 02:32 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC