Game Development Community

Problem with transparent DTS

by Jan Kavan · in Torque Game Engine · 06/28/2007 (3:30 pm) · 9 replies

Hi again,

I have the following problem. We've followed this article:

http://tdn.garagegames.com/wiki/DTS/3dsmax/Z_Sorting_Explained

and exported the trivial dts file with a transparent texture. The object's name was before the export
prepended with SORT::

But our problem is, that when I import it in Scene Editor, nothing shows and in the Torque Show Tool Pro we see some strange garbage instead of the texture.

The object is single plane with double sided texture.

I have the DTS file together with texture and if anyone would be so kind and help newbies with this, please
download the files from:

http://www.ghostinthesheet.com/tests/trans.zip (236kb)

Thanks a lot!

Jan

#1
06/28/2007 (3:50 pm)
Hi Jan

All textures need to be a power of 2

Your tex is 600x600 so make it smaller 512x512

Also the object is Huge! Is that the intent? And its off center its way below the ground centroid.*

You dont need SORT for such an object you only need it if you have complex transparent objects that dont Z-Sort correctly

Cheers

*Edit: err way above I mean, I think I turned the scene upside down. :)
#2
06/30/2007 (10:19 am)
Thank you Thak!

Right now I am baffled with another newbie question. My shape right now shows correctly
in ShowTool Pro, but if I import it to the scene as a static shape, it's invisible. I've included
this time also the max source. If anyone could help me, it'll be really appreciated.

http://www.ghostinthesheet.com/tests/trans.zip

Thanks again

Jan
#3
06/30/2007 (12:29 pm)
It works fine - once you place the static shape just lift it up a bit, since itll sit a bit underground. ;)
#4
06/30/2007 (1:42 pm)
That's strange. Here is what it does to me:


http://www.ghostinthesheet.com/tests/bug.jpg

(I made a floor of leaf tiles so it would be better visible).

I tried Scene relighting, moving this up and down. Rotating it along all axis. Still nothing else than this is visible to me.

What am I missing? :)
#5
07/07/2007 (1:34 pm)
*Bump* please :)
#6
07/07/2007 (1:42 pm)
Hmm! Looks like a bug. I've opened the same shape in TGE and it immediately shows correctly. TGEA doesn't show anything.

Can someone please move this thread to Bugs or set me on the right path?
#7
07/09/2007 (12:40 pm)
Did you make a material file for it? TGEA requires materials to be assigned in a material.cs file in the same folder as your object.
#8
07/09/2007 (1:00 pm)
...
#9
07/09/2007 (1:18 pm)
Mb: Thanks for the suggestion, but see below.

Joseph Greenawalt: Thanks a lot! We've been following tutorials and we never find this is not supported. Works perfectly now!