Masked textures not working. Edit the pallete to fix it.

Tutorials and discussions about Mapping - Introduce your own ones!
User avatar
Zero_khan
Average
Posts: 31
Joined: Tue Nov 24, 2020 6:54 pm

Masked textures not working. Edit the pallete to fix it.

Post by Zero_khan » Tue Nov 24, 2020 10:19 pm

It appears that photoshop reverses the order of the colors in the pallete. The background color, the color that is going to be transparent, is always the last in the pallete, but unreal looks for the first.

Open PCX in irfanview
Export the pallete as PAL
Edit PAL in notepad

It should be a list of numbers in RGB 0 - 255 form. Now in notepad you can change the first color to the color that you want.

Import pallete back and save PCX.
Good Bye. I'm leaving UT99 behind. I won't be around for UT's 30th.

User avatar
papercoffee
Godlike
Posts: 9773
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.

Re: Masked textures not working. Edit the pallete to fix it.

Post by papercoffee » Tue Nov 24, 2020 10:27 pm

Did you convert it into an 8-bit image?

User avatar
Zero_khan
Average
Posts: 31
Joined: Tue Nov 24, 2020 6:54 pm

Re: Masked textures not working. Edit the pallete to fix it.

Post by Zero_khan » Wed Nov 25, 2020 1:44 am

Yes.

The other solution is to use GIMP.

While I was converting 32bits PNG to 8bits I noticed that photoshop never places the background color as the first in the pallete. It's always in some other place.
Good Bye. I'm leaving UT99 behind. I won't be around for UT's 30th.

User avatar
papercoffee
Godlike
Posts: 9773
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.

Re: Masked textures not working. Edit the pallete to fix it.

Post by papercoffee » Wed Nov 25, 2020 2:17 am

If you have Photoshop I suggest this method viewtopic.php?p=72981#p72981

User avatar
Dr.Flay
Godlike
Posts: 3298
Joined: Thu Aug 04, 2011 9:26 pm
Personal rank: Chaos Evangelist
Location: Kernow, UK

Re: Masked textures not working. Edit the pallete to fix it.

Post by Dr.Flay » Wed Nov 25, 2020 9:54 pm

PCX transparency being moved around is a known problem, which is why using BMP for 8bit images is more reliable.