Reskinning in TGEA 1.8.1
by University of Lyon (#0001) · in Torque Game Engine Advanced · 05/31/2009 (7:05 am) · 2 replies
Hello,
I've got some problems to reskin a shape in TGEA 1.8.1
First, I use this fix to enable the reskinning
www.garagegames.com/community/forums/viewthread/58560
Then I declare the different materials for my shape
But when I do %myPlayer.setSkinName("texture1"); my player shows the "no material" texture.
Where are my mistakes ? Does the fix works for someone ? Is there a fix that can make the reskinning work under TGEA 1.8.1 ?
Please help me
I've got some problems to reskin a shape in TGEA 1.8.1
First, I use this fix to enable the reskinning
www.garagegames.com/community/forums/viewthread/58560
Then I declare the different materials for my shape
new Material(BaseSkin)
{
baseTex[0] = "base.Eliott";
pixelSpecular[0] = false;
specular[0] = "1.0 1.0 1.0 1.0";
specularPower[0] = 32.0;
};
new Material(tex1)
{
baseTex[0] = "texture1.Eliott";
pixelSpecular[0] = false;
specular[0] = "1.0 1.0 1.0 1.0";
specularPower[0] = 32.0;
};But when I do %myPlayer.setSkinName("texture1"); my player shows the "no material" texture.
Where are my mistakes ? Does the fix works for someone ? Is there a fix that can make the reskinning work under TGEA 1.8.1 ?
Please help me
#2
Thak you very much for your help Steve.
05/31/2009 (8:07 am)
I removed the mapTo because it changed nothing. But it was because I have mapped my skins on the same file (I mapped my two textures on base.Eliott.png (damned copy/paste)) so the shape was always skinned with the texture1. Now the mapTo is correct and the reskin works very well.Thak you very much for your help Steve.
Associate Steve Acaster
[YorkshireRifles.com]