|
#1
|
|||
|
|||
Scaling Portions of a CAL3D Model
Hello Vizard Support Staff,
I had a quick question. I am attempting to induce a non-uniform scale on an Avatar I created in 3D Studio Max inside of Vizard. I attempted to do the scaling as part of the animation in max, however I noticed that while the 'bones' appeared to shrink in size, the actual vertices had no scaling applied to them. The vertices simply bunch up in groups based on what bone they were apart of and moved on top of one another. I am guessing the bones are remembering the translation they undergo due to scaling in max but not the true underlying scaling. Is is possible to scale per bone to distort proportions via Max or in Vizard? I noticed there are no available methods for scaling a bone natively in Vizard 3.0 in the help file. I have included an image of the desired effect in max, the initial start in Vizard and the the near end of the animation in Vizard. Thank you, George |
#2
|
|||
|
|||
I also want to do exactly this. I was unable to figure it out, but here's what I tried:
(assuming "male" is a cal3d avatar with a bone called "Bip01 Head") Code:
import viz import vizmat viz.go() viz.MainView.setPosition(0, 1.8, 1.0) viz.MainView.setEuler(180, 0, 0) headbone = male.getBone("Bip01 Head") trans = vizmat.Transform() trans.setScale(0, 0, 0) headbone.unlock() headbone.setMatrix(trans) my guess (and this is a wild guess) is that at some point in vizard's code they normalize the matrix. |
#3
|
|||
|
|||
You have to lock the bone before the transform is added, unlocking the bone will also force the avatar into the original position/size.
headbone = male.getBone("Bip01 Head") headbone.lock() trans = vizmat.Transform() trans.setScale(0, 0, 0) headbone.setMatrix(trans) will probably do what you want, you do lose all animations on the headbone. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change model alpha and memory leak | hosier | Vizard | 2 | 06-25-2009 11:55 AM |
Successful Cal3D Export But Texture Problems | ezanih | Plug-in development | 2 | 01-26-2009 05:28 PM |
Cal3D Stereo Bug? | shivanangel | Vizard | 3 | 10-30-2008 08:38 AM |
Incampatible CAL3D files | luakt | Vizard | 4 | 09-15-2008 12:28 AM |
importing avatars with cal3d | marcoleon | Vizard | 15 | 04-28-2006 05:48 PM |