Author Topic: Vehicle Transparency  (Read 1031 times)

I have a vehicle that I am currently working on that has transparent glass windows, I know that when the vehicle is painted the portions of the vehicle with the blank texture are painted because they are essentially transparent, how do I stop my precious windows from changing colour please?

Setting the color of the windows to white.png and making it transparent should work

How do I 'make it transparent'? White.png is a solid colour.

Go to paint.net, get the magic wand then press delete

Go to paint.net, get the magic wand then press delete
That will make it 100% transparent

You can either double click a layer on the layers window and set the opacity from there, or change the opacity of the primary color on the colors window and use the fill can on a clear canvas

You don't make the texture transparent, you edit the material in blender/milkshape.

Here is what you do in milkshape
:

1. Slide the slider a little bit to the left which should make the material transparent.



2. When you export, you also need to make sure the exporter knows you want the material to be transparent, select the material you want to change, then edit.



3.
In the edit menu that opens, make sure these settings are checked.



4. Make sure you apply your changes when you are done. When you export it into the game as a .dts it should be transparent.



Blender tutorial:

Blender is pretty simple, once you select a material and texture, go to the material tab and check the transparency tab to be on, then change the alpha to the value you want. The higher the value the more transparent the object will be.



Heres what it should look like in game
:

The blue cube is what  I exported from blender, and the white cube is what I exported from milkshape.

Here is one more thing, if you use a light colored material, the transparent parts of the model will appear like it's glowing and it will be hard to see in first person (like the picture above for example, notice the white block and how the front of it is hard to see through, that's how it will look like in first person)  try using a dark gray colored material called glass.png to avoid that
« Last Edit: January 21, 2016, 11:00:48 PM by Filipe »

Here is one more thing, if you use a light colored material, the transparent parts of the model will appear like it's glowing and it will be hard to see in first person (like the picture above for example)  try using a dark gray colored material called glass.png
Yeah, I used white.png for the exmaple, I would recommend using gray50.

Also make sure the transparent parts are a sperate mesh/object/node/whatever so it has a proper shadow

Perfect, thank you all very much!