Game Development Community

Transparencies.

by arteria3d · in Torque Game Engine · 11/06/2004 (12:54 pm) · 12 replies

I have exported from gamespace a plant that i had made in aliencodec's new plantlife program. I noticed that gamespace had converted the PNG file to JPEG. The plant loads into torque fine - just that the transparencies on the leaves are not being used - so i can see the black part of the texture, which should be blanked out. Firstly why would gamespace have converted the texture to jpeg, and secondly how do i achieve the black parts to blank out so just the colouration is shown?

About the author

Owner of uk based Ltd company ArteriaMediaLtd. with a trading name of Arteria3d Website;arteria3d.com


#1
11/06/2004 (1:49 pm)
Try this:
copy the original png files to the folder with the exported Dts.
you can remove the jpg file.
Tge should pick up the png files,. it doesnt seem to mind the file extension.

It should work.

Sam (Zmatrix)
#2
11/06/2004 (1:56 pm)
Thanks for posting. When i remove that file and have the PNG in its place the object loads in white?? i.e. it doeesnt pick the texure up. i tried altering the gamespace exported DTS file in notepad and removed the jpg prefix so it was just the texture name - when loaded into torque the engine crashes!!!

In gamespace i am using the exporter than comes with it. I have installed the dark industried exporter, but when i try to use it, it says cant save - found no bounds???

Steve
#3
11/06/2004 (2:00 pm)
From your comments on the irc channel it would seem that the exporter is erronously including .jpg in the texture name in the dts (this hould have been stripped off).

Try this...
Copy the png's into the folder and remove the jpg's like mentioned above.
*Then* rename the png's to blah.jpg.png
#4
11/06/2004 (2:38 pm)
Hi

it was right to change the filename from 'flower.png" to "blah.jpg.png" wasnt it?

Anyway i did so,and the object appeared white un textured.
#5
11/06/2004 (3:38 pm)
Flower.jpg.png
#6
11/06/2004 (3:42 pm)
Nope mate - still shows up white doing as u said
#7
11/06/2004 (3:49 pm)
As you mention that gS said there were no bounds I can assume you are using version 2 of the exporter from dark industries.

Please read through the documentation with the exporter for scene setup (will take too long to explain here) When you read through this you'll see quite obviously what this error means.

As for your material setup to work correctly with transparency:

-On the "colour" part of the material pallete bring up the 'plain transparency' option
-Reduce the opacity of the material (>0, <1)
-Export
#8
11/06/2004 (5:50 pm)
Are there any programs that convert x files to dts format - as i am having real trouble with gamespace trying to convert them.. I dont know how to put a bounding box on my object, as i am new to gamespace and not sure of a lot of control yet/
#9
11/07/2004 (4:47 am)
Judging by your reply you haven't bothered to read the documentation, please do so...

And no there is not any programs that can convert .x to .dts.
#10
11/07/2004 (4:52 am)
People do seem to have an atitude on these forumns.... I AM READING THE DOCS BUT AS A NEWBIE IT IS HARD TO GRASO THINGS... Please dont have this atitude. These are the only forumns i have ever been on where people are not helpful. I am very disatisfied completely........

I am a newbie remember - and sometimes reading the docs over and over again doent render questions that u would find easy, explainable...
#11
11/07/2004 (4:58 am)
If you had read the documentation properly you will understand that a bounds is just a box (if you have problems with this then please use some caligari tutorials on gS)

Also, if you have read properly you will understand that there is a special structure for the hierarchy of objects in a scene to export to dts. hence why a straight conversion from .x to .dts is not possible.

-

Off the back of this thread I think I'm gonna finally put together a step by step tutorial on how to setup objects for export from gS.
#12
11/07/2004 (5:01 am)
I would apreciate that - in gamespace i made a box, renamed it BOUNDS - then when to the scene editor. BOUNDS was at the top of the list with my tree and all its meshes underneath. I dont know wher to insert collision data?? Anyways i tried to export with the dts plugin and it eaid nothing to export>.......

See thats what confuses a newbie. I do have a good head on me, but simple things u expect to work dont..... and i cannot press any further on until i know how sort this out.

I would apreaciate any such further help. I do value people who help me. And believe me i havent stopped reading the docs, havent stopped i say!

Stevie