Author Topic: Transparency doesn't work properly on vehicles  (Read 7238 times)

The color of the windows changes depending on the color of the car. I checked all transparent textures to be translucent and additive (in ms3d) and the trans.png texture is just transparent white, yet it changes with every color as you can see.


The .png file must be 100% opaque. If it is transparent, the colour of the car will influence it. That's why blank.png is 100% transparent.

If you want the window to darken the interior, set it so be subtractive and make the png file 100% opaque. It takes the whiteness of the png to be the opacity of the material, so a white png would mean a black window and a black png would mean a clear window.

Or, if you don't want the colour to be effected by your spray can, then just move it to a different layer. Layer 0 is the layer that gets colour tinted over it by the game, it wont touch the other layers.

First of all, do the above. Do not make a texture transparent unless you want it to be painted.


I don't know how to do this in ms3d, but in Blender:

Select your windows
Separate them so that they are a separate object/node/mesh from the rest of the car
Create an empty object
Parent the windows to that object

Also, separate all of your non-paintable materials from your paintable ones, but don't parent them to anything unless they're translucent too.

Why:

If your shaders are off, even if everything is textured properly, if any material is in the same mesh as a paintable material (transparent texture), they will be colored when the color changes

If translucent materials are in the same... area as opaque materials (i.e. NOT parented to something), the opaque materials will have a tendency to act like this: