Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Polpolion on January 03, 2008, 10:45:23 pm
-
Okay. So. I made an image of two planets, a gas giant and a moon, in GIMP. I saved it as a 256x256 PCX in GIMP, put it in my mods effects folder, and replaced an entry in stars.tbl with it. It shows up in FRED in the background box, but when I add it, it doesn't appear. And I have confirmed that "display backgrounds" is on. I'll attach the image to see if anyone can help.
Thanks! :)
EDIT: If it helps, I'm running 3.6.9 and FRED is not using the MVPs. I'll actually double check now.
EDIT2: It has the -fredhtl tag on it, but the mod folder it is directed to does not have a mod.ini that links it to the media vps.
[attachment deleted by ninja]
-
Have you made sure that the image is indexed instead of rgb before saving? That's tripped me up a few times...
-
Why use a 256x256 pcx in this day and age out of curiosity? At least a 512 x 512 tga or jpeg would be better. And, err, sounds like you forgot to reduce it to 256 colours.
-
In editing/testing stage TGA is probably the best option.
-
Okay, I'll try a 512x512 TGA with 256 colours.
EDIT: Okay it still doesn't appear in FRED but it appears ingame now, which is good enough. Unfortunatly the green that is supposed to be invisible is still there, but I'll try something now.
EDIT: So the "green" actually had a value of 12 red, 255 green, 0 blue, so thats why I thought it still showed up, but when I changed it to 0,255,0 the green still showed up on the edge.
[attachment deleted by ninja]
-
0,255,0 = transparent works only with 8-bit PCX images.
For other types (you can use more colors too), JPG, TGA, DDS you need to use either alpha transparency or additive transparency... For planets - which should use alpha - the best solution is probably to set proper transparency values (planet to fully non-transparent and the surrounding space fully transparent and possible atmospheric layer somewhere between the two extremes).
For fred you could try -jpgtga command line option...
-
Yay! it works! Thanks, everybody :)
-
TGAs can be 16 million colours, for the record
-
Sizzler, would you de me a favor? I got a HQ 2048x2048 earth pic I've been wanting to get done right for years.
This is what it looks like done improperly:
(http://img484.imageshack.us/img484/2880/earth7cd.jpg)
The Green showed up and I blacked it all out (but you can see the ring around it still pixilated).
If I upload the original pic could you convert it? (everyone who uses an "Earth" as a pic instead of a model could benefit.)
-
Sure. Unless something crazy pops up I'll be able to do it tomorrow. :)
-
http://earthobservatory.nasa.gov/Newsroom/BlueMarble/Images/globe_west_2048.jpg
other side
http://earthobservatory.nasa.gov/Newsroom/BlueMarble/Images/globe_east_2048.jpg
Darn image attachment limit, even in .rar was too big so I had to find the original DL source I found them on.
enjoy! :D