Transparent brushes

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Transparent brushes

Post by Cbielak »

Hey i started making a new map with a mountain theme and i added a new texture of a mountain peak. What i want to see is only the mountain part but when i use my texture i see the mountain and then a white background. I tired changing the background to black but it apears black in the game. How do i make a transparent brush?

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
Condor
Colour Sergeant
Posts: 82
Joined: Mon Apr 09, 2007 3:19 pm
Location: Bavaria (Germany)

Post by Condor »

You have to save your mountain image in the Targaformat (.tga) and you need to cut or set all pixels, which should be transparent, to transparent.

Which Image Editor are you using?

Edit: Try some of those programs if you dont have yet:
http://de.wikipedia.org/wiki/Targa_Imag ... GA-Dateien
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Post by Cbielak »

I use adobe photoshop 7.0, when i saved my image i saved it as a Tga and i put the background as transparent. Its still shows up as a white background.

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

if i remember rightly..... you have to make an alpha channel and paint anything you want 'see through' in black.... tho i have never tried myself.
Image[ Formerly Known As Snakeâ„¢ ]
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Post by Cbielak »

I did the alpha channel thing but it doesnt work. Im thinking maybe I should changing the shader file?

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

Download a map or file for moh that has a half transparent image in it and look at its shader and tga file.

(or look at files already in mohaa.... player icons above their head maybe?)
Image[ Formerly Known As Snakeâ„¢ ]
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Post by Cbielak »

I tried switching the scripts but it still doesnt work!!! :evil: This is really starting to tcik me off!

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

the alpha channel must be WHITE where you want it to show an image, and BLACK where you want it not to show... works like a mask. Shader doesn not need to be fiddled with i don't think.
Image[ Formerly Known As Snakeâ„¢ ]
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Post by Cbielak »

It works! finally! ty guys im all calmed down now/. :)

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
Post Reply