Game Development Community

Car Pack

by CodingChris · in Torque Game Engine Advanced · 01/02/2008 (5:14 am) · 6 replies

Hi,
does anyone know how to get the games extract car pack working in TGEA? I got it working... The cars do work. But the textures of cars don't. I think there a problem with setSkinName in TGEA... Does anyone know more about this?

#1
01/03/2008 (8:04 pm)
Im fairly certain that setSkinName doesn't work in TGEA, since setSkin relies on the TGE rendering pipeline. In order to remedy this, you could try exporting out a car dts for each of the textures. Im not sure of a code/script driven solution; its not my forte.
#2
01/04/2008 (12:28 am)
Do you know more about why the taillights are not working?
#3
01/07/2008 (8:47 pm)
The taillights aren't working? Off the top of my head, im unsure of why they wouldn't work in TGEA beyond materials.cs not being set up properly. I can take a look at it, though.
#4
01/08/2008 (5:02 am)
Problem:
the taillights are only shown as red rectangles.
I've got nothing about the taillights in my materials.cs... Should there be something about them?
#5
01/09/2008 (4:19 pm)
You will need to make ( or add to ) a "materials.cs" file to allow alpha transparency for the texture...

new Material(cartaillight_tex)
{
baseTex[0] = "taillighttexturename"; // change this to the taillight texture name minus the file extension
translucent = true;
translucentBlendOp = LerpAlpha;
translucentZWrite = true;
alphaRef = 20; // anything below this number is not visible and is not written to zbuffer
};
#6
01/10/2008 (5:04 am)
Thanks.