Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: diamondgeezer on January 15, 2005, 05:28:10 pm

Title: Background images and true green-related annoyances
Post by: diamondgeezer on January 15, 2005, 05:28:10 pm
Yo. Blimey, bin a while since I came in here. Anyway, I got me a nice JPG of Nepture but for some reason the pure green background won't work. When I save it as a JPG the 0,255,0 green becomes 0,255,1 which obviously doesn't work. I've tried saving it with both PSP and IrfanView, to no avail. Advise me, if you please

__________________
Diamond Geezer uses MSPaint by preference
Title: Background images and true green-related annoyances
Post by: Bobboau on January 15, 2005, 06:00:09 pm
save it as a TGA.
Title: Background images and true green-related annoyances
Post by: Swamp_Thing on January 15, 2005, 08:19:04 pm
Speaking of true green, that´s  what is used for transparent cockpits, right? But what about when we want to give the glass a coloured tint to it? Like dark green, or a smoked glass appearence? How is that done?
Title: Background images and true green-related annoyances
Post by: StratComm on January 15, 2005, 09:15:29 pm
That can only be done with a 32-bit TGA or DDS, which support an alpha channel.  You'd make the section the color you wanted the tint to be and then lower the opacity of that area to ~10% or so.
Title: Background images and true green-related annoyances
Post by: Black Wolf on January 16, 2005, 03:55:57 am
If you're using 256 colour pcxs, there's a workaround for this.

Open the pallette file up in notepad.
Find any instances of 0 255 1 and change them to 0 255 0.
Reapply the pallette in PSP - that shoud sort you out.
Title: Re: Background images and true green-related annoyances
Post by: WMCoolmon on January 16, 2005, 12:51:57 pm
Quote
Originally posted by diamondgeezer
IrfanView


Image|Pallete|Edit Pallete

Works unless you use more than 256 colors.

Edit: Or save it as a TGA. JPGs suck. You can try and convert it to a DDS too without getting crappy artifacts from saving in JPG. (although DDS can be a bit messy too)

Why support for it was added to fs2_open instead of PNG, I'll never know...
Title: Now I am getting pissed
Post by: Getter Robo G on January 16, 2005, 06:33:37 pm
I asked for help with this over a month ago

I changed the .pcx to a .tga and used that irfran view pallete edit thing to 0, 255, 0 still green border...
Title: Background images and true green-related annoyances
Post by: Bobboau on January 16, 2005, 08:12:23 pm
with TGA you have to use the alpha chanel
Title: Background images and true green-related annoyances
Post by: Bobboau on January 16, 2005, 08:13:29 pm
Quote
Originally posted by Swamp_Thing
Speaking of true green, that´s  what is used for transparent cockpits, right?  


wrong
Title: a little impatient
Post by: Getter Robo G on January 17, 2005, 06:35:59 am
I need a day before I can learn about alpha channels from that tut disk at work. How about Jpegs then, do they need an alpha channel? Quiery why did the alpha channel on the original get lost when all I did was paste the uber earth over the old working background pic (pcx)?
Title: Background images and true green-related annoyances
Post by: Bobboau on January 17, 2005, 11:06:17 am
you cannot do anything transparent at all with jpegs, and what do you need to 'learn' about alpha chanels, they are a grey scale mask that denotes opacy, there, that's the whole of it, make a mask, editit it to your preference, save to alpha chanle, done.
Title: Re: Re: Background images and true green-related annoyances
Post by: Grimloq on January 17, 2005, 06:22:21 pm
Quote
Originally posted by WMCoolmon
... JPGs suck. ...


blasphemer!!!
Title: Re: Re: Re: Background images and true green-related annoyances
Post by: Drew on January 17, 2005, 09:52:30 pm
Quote
Originally posted by Grimloq


blasphemer!!!


dumbass