rainypark
25th October 2011, 17:20
Hi,
I am trying to add a couple of views manually into a camera path by using the keyframe camera path editor.
I have tcl code as following:
set cp [create HxKeyframeCameraPath]
set cpe [create HxKeyframeCameraPathEditor]
$cpe attache $cp
$cp fire
for loop{
... set values to view position (px, py, pz) and direction (dx, dy, dz)
viewer 0 setCameraPosition $px $py $pz
viewer 0 setViewDirection $dx $dy $dz
$cp portKCPEButtons setValue 0 1
$cp portKCPEButtons send
$cp fire
}
The resulting camera position and orientation is correctly set, but the path connecting these cameras is wrong ( big local loops connecting the cameras instead of a smooth spline/cubic curve)
Can anybody tell me how to make smooth campath curve in TCL?
Thanks a lot!
Rainy
I am trying to add a couple of views manually into a camera path by using the keyframe camera path editor.
I have tcl code as following:
set cp [create HxKeyframeCameraPath]
set cpe [create HxKeyframeCameraPathEditor]
$cpe attache $cp
$cp fire
for loop{
... set values to view position (px, py, pz) and direction (dx, dy, dz)
viewer 0 setCameraPosition $px $py $pz
viewer 0 setViewDirection $dx $dy $dz
$cp portKCPEButtons setValue 0 1
$cp portKCPEButtons send
$cp fire
}
The resulting camera position and orientation is correctly set, but the path connecting these cameras is wrong ( big local loops connecting the cameras instead of a smooth spline/cubic curve)
Can anybody tell me how to make smooth campath curve in TCL?
Thanks a lot!
Rainy