Jump to content

[Solved] How to Set Skin


practicing01

Recommended Posts

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:

 

	%card = "dnclogo";

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

 

The models material is:

 

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:

 

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...