Go to footer

Problem with transparency

Get help and share your knowledge on these topics

Problem with transparency

Postby N00BYZOR » 13.03.2012, 21:20

Hi everyone :)

I'm making a mod for my new track, and I recently tried to make a texture with transparency.
So, to do it I added black areas and saved the texture in DXT1 1bit alpha. (I made the specular and normal map too).
But in game there is no transparency. The black areas, that are supposed to be transparent, are still blacks...
I tried many ways to make it work (saving in several others formats, making alpha by removing the black areas...) always the same result : no transparency in game :dash:

I searched everywhere on the forum and even on the whole internet, every single tutorial say the same thing : to make transparency you just need to add black and save in DXT 1bit alpha... ;(

What I'm doing wrong ?

I use adobe photoshop elements 7.0

Hope someone could help
Last edited by N00BYZOR on 13.03.2012, 21:42, edited 1 time in total.
;)
User avatar
N00BYZOR
 
Posts: 126
Joined: 04.07.2011, 14:06


Postby popgun » 13.03.2012, 21:58

Hi, try this for simple grids and such.

1. Make your texture, then create a new alpha channel. In the alpha channel make an image which is black and white, the white parts will show the texture, the black parts will be transparent. Save the image as dxt5 interpolated alpha.


2. Delete the alpha channel and create the normal and diffuse maps as you usually would, save both as dxt5 also.

Works for me.

:)
Loads of mods, loads of tracks. Look em up. :)
User avatar
popgun
 
Posts: 148
Joined: 15.06.2010, 11:16


Postby N00BYZOR » 13.03.2012, 22:59

That works ! :thumbsup:
I didn't do exactly what you said with the black and white image, I just replaced the black by alpha channel and saved as DXT5 interpolated alpha (a combinaison i have not tried yet^^) and I have transparency in game ! :)

THX for help ! :)

PS: The black and white image is a knid of opacity mask ?
;)
User avatar
N00BYZOR
 
Posts: 126
Joined: 04.07.2011, 14:06


Postby popgun » 14.03.2012, 00:26

The dxt5 format will allow graduations in transparency (opacity), which you would get even on black/white images if you had selections usng anti-alaising.
If you do a graduation from black to white across the greyscale you will see this effect. It opens up allsorts of possibilities.
Just unzip other peoples mods to see how its been done on theirs.

:)
Loads of mods, loads of tracks. Look em up. :)
User avatar
popgun
 
Posts: 148
Joined: 15.06.2010, 11:16


Return to Board index

Return to Modding / Graphics / 3D models / Sounds

Who is online

Users browsing this forum: No registered users and 12 guests