WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 05-01-2006, 07:17 AM
rdotsch rdotsch is offline
Member
 
Join Date: Jul 2005
Location: The Netherlands
Posts: 20
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')
This doesn't work. It changes a texture alright, but not of the shirt (depending on the order of the meshes in the .cfg file it changes the texture of another mesh, and actually it looks kinda cool to have a red eye-ball ).

Anyway, what am I doing wrong? (I'm using vizard 2.53f)

Regards,

Ron
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:56 AM.


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