[Solved] How to Set Skin

There are no stupid questions, just stupid answers.
1 post Page 1 of 1
Posts: 31
Joined: Sat Apr 11, 2015 8:05 pm
  by practicing01 » Sun Aug 14, 2016 4:24 pm
Solved Edit: The problem was that I need to set the model material name to base_tcgMat within blender.

I've got a TSStatic that I'm instantiating with:

Code: Select all

   %card = "dnclogo";
   %cardModel = new TSStatic()
          shapeName = "art/shapes/dotsnetcrits/tcg/card.cached.dts";
          position = %player.position;
          skin = %card;

The models material is:

Code: Select all

singleton Material(card_tcgMat)
   mapTo = "base_tcgMat";
   diffuseMap[0] = "dnclogo";
   translucentBlendOp = "None";
   effectColor[1] = "InvisibleBlack";

and the material I'm trying to set it to is:

Code: Select all

singleton Material(tcgdnclogo : card_tcgMat)
   mapTo = "dnclogo_tcgMat";
   diffuseMap[0] = "dnclogo.png";

the error I'm getting is: [MaterialList::mapMaterials] Unable to find material for texture: tcgMat

What's the correct way of setting skins? Thanks for any help.
1 post Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests