![]() |
#12
|
|||
|
|||
Problem mapping mesh names to actual meshes
Hi,
I need to change the texture of a specific mesh of a home-made cal3d avatar. The problem is that vizard doesn't seem to map the mesh names right. Hypothetically I use a .cfg file that looks like this (this is in fact only a fragment of the real .cfg I'm using): ---------- skeleton = avatar_skel.CSF mesh = head.CMF mesh = torso.CMF mesh = pants.CMF mesh = rhand.CMF mesh = lhand.CMF etc. material = head.CRF material = shirt.CRF material = pants.CRF material = rhand.CRF material = lhand.CRF etc. -------------- Now, let's say I want to change the texture of the shirt to shirt.jpg. I would do the following, right? Code:
avatar = viz.add('avatar.cfg') shirt = viz.add('shirt.jpg') avatar.texture(shirt, 'shirt.CMF') ![]() Anyway, what am I doing wrong? (I'm using vizard 2.53f) Regards, Ron |
|
|