Applying dts bump map in tgea
by Danny Mejia · in Torque Game Engine Advanced · 06/01/2007 (12:25 am) · 1 replies
I've been working on this for last 2 weeks and i have to make this work before
i get fired : (
please help!!!
these are the steps i did to hopefully make the bump map work in tgea :
1. dts object and bump map ready
( using 3ds max, i was not able to export dts with bump map applied, so dts has only diffuse map applied)
2.put dts, diffuse map and bump map in the same folder
3.make material.cs in the same folder
my material.cs looks like this:
---------------------------------------------------------------------------------------------------
new Material(player)
{
mapTo = player;
baseTex[0] = "~/data/shapes/player/player";
bumpTex[0] = "~/data/shapes/player/player_bump";
pixelSpecular[0] = true;
specular[0] = "1 1 1 1";
specularPower[0] = 32.0;
};
-----------------------------------------------------------------------------------------------------
is there anything missing or any mistake?
i get fired : (
please help!!!
these are the steps i did to hopefully make the bump map work in tgea :
1. dts object and bump map ready
( using 3ds max, i was not able to export dts with bump map applied, so dts has only diffuse map applied)
2.put dts, diffuse map and bump map in the same folder
3.make material.cs in the same folder
my material.cs looks like this:
---------------------------------------------------------------------------------------------------
new Material(player)
{
mapTo = player;
baseTex[0] = "~/data/shapes/player/player";
bumpTex[0] = "~/data/shapes/player/player_bump";
pixelSpecular[0] = true;
specular[0] = "1 1 1 1";
specularPower[0] = 32.0;
};
-----------------------------------------------------------------------------------------------------
is there anything missing or any mistake?
About the author
Torque Owner James Laker (BurNinG)
Check your console and see if it compiled correctly. If you still have the Stock player in, that might be your problem since, it might also have a group/material called "player".
Look at :
I'm not sure you can have it without the ----> "
Just to make sure, change it
Same thing with
new Material("player")I have this for my ships (The ship object name is "sf-01", and so is the Materialname):
new Material("sf-01") { mapTo = "sf-01"; baseTex[0] = "~/data/shapes/ships/sf-01"; bumpTex[0] = "~/data/shapes/ships/sf-bumpnormal"; pixelSpecular[0] = true; specular[0] = "0.7 0.7 0.7 1.0"; specularPower[0] = 4.0; }And it works great :)
For more info... Go check out http://tdn.garagegames.com/wiki/TSE/Materials, if you havent already.