smoothing a cubic bezier path
I've got an animation path that I've been having issues with. When I use a cubic bezier path, the curve will either swing too wide and leave the area I want the object to move in, or, when I add extra cp's to keep it on path, will jerk to reset it's facing rather than smoothly turn. The path is going to be way too long for just using a bezier and keeping it in the movement area.
Is there a decent way to smooth this out, or will I just have to live with the jerkiness? |
Have you tried turning on autorotate for the animation path?
|
Yeah, I've got autorotate on, I'll post the code as soon as I get to my computer again
|
If you got the skills and the path is static, I'd stop right now and create the animation in 3ds Max.
I've spent way to much time tuning animation paths and they are never quite right. Controlling the node's orientation with animation paths is the hardest. You might want to control the orientation with some other method. Perhaps you could have node 'lookat' another node that moves around too? |
Here's the code.
The path is static, but I've never even looked at 3ds Max, so I wouldn't know what to do, though I might be able to pick it up with google fu. I'll give it a go, but don't know how it'll work. Code:
import viz |
Would Google Sketchup be a possible substitute for 3ds Max?
|
Don't know if Google Sketchup will work. I'll try exporting an animation to VRML and Collada from Sketchup and testing in Vizard.
It would be nice to establish an art workflow that does not center around the expensive and complex 3ds Max. |
After checking out SketchUp, I don't think it can export animations to 3D formats like VRML. Plus, it's $500 for the Pro version which you need to export to common 3D file formats.
Anyone know if Blender can export OSG animations? It seems Blender can export to Cal3D well enough for Vizard to use it. That could be an animation workflow for Blender to Vizard. Vizard supports VRML animations, so if Blender can export animated VRMLs that could work as well. |
Would it be possible to swap between a bezier path and a linear path? I could at least get some of the straight areas to go well then.
|
As long as you know how long one path takes to complete you could link your object to the second path when the timer, set to the time of the first path, expires.
|
blender OSG animation workflow
1 Attachment(s)
I figured out how to use Blender to create animation paths. This seems much easier than tweaking control points forever in Vizard.
Steps: 1. Install Blender. 2. Install osg export plugin. Download plugin. Copy the osgexport-2.42.py file into 3. Learn how to animate a box in blender. This video provides a simple introduction: http://www.youtube.com/watch?v=FAZFfLmbD2k 4. Checkout the attached Vizard script that moves a car around with an animated box made in blender. The zip includes the .blend file. Code:
import viz |
All times are GMT -7. The time now is 09:27 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC