WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Smooth transition from Linear to Bezier in animation (https://forum.worldviz.com/showthread.php?t=1302)

masaki 01-11-2008 09:19 AM

Smooth transition from Linear to Bezier in animation
 
hello all,
I was wondering if there is a way to switch from Linear to Bezier translatemode in an animation path without it becoming jerky when the switch happens. I have a pretty simple path that starts off translating in a straight line (this is the part i need to have it linear), and then i need the path to start curving and then at the end it is a straight translation again. I've tried making the straight line control points linear, and the others bezier. I've also tried making a timer function to turn autorotate on and off while keeping all controlpoints bezier. Please let me know if there's a way to make a seamless combination of straight and curved animation paths. thanks in advance.

-masaki

farshizzo 01-11-2008 08:54 PM

Have you tried using cubic bezier mode? This will ensure that the object passes through the control point.

masaki 01-13-2008 11:22 AM

Hi farshizzo,
yes i've tried cubic bezier but it behaves very oddly when i use it. instead of following a smooth curve, it swings from left and right between each control point. Oh and by the way, the animation path is linked to the mainview - so any jerkyness is really apparent and i really need a seamless transition. if it would help, here are the control points for one of the paths:
Code:

positions = [[0,0,0],[0,0,1],[0,0,2],[0,0,3],
                        [-0.0523359562429438,0,3.99862953475457],
                        [-0.156864419510597,0,4.99315143012285],
                        [-0.313298884550828,0,5.98083977071799],
                        [-0.521210575368588,0,6.95898737145179],
                        [-0.780029620471108,0,7.92491319774086],
                        [-1.08904661484606,0,8.87596971403601],
                        [-1.44741456439136,0,9.80955014053321],
                        [-1.85415120746716,0,10.7230955981758],
                        [-2.30814170720670,0,11.6141021223642],
                        [-2.80814170720670,0,12.4801275261486],
                        [-3.3081417072067,0,13.3461529299331],
                        [-3.8081417072067,0,14.2121783337175]]

thanks.
-m


All times are GMT -7. The time now is 08:09 PM.

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