Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Stunaep on October 17, 2002, 02:39:40 pm
-
Another table I find information lacking on. What does the pixels.tbl do. I see it has several RGB values, so what do they do?
-
Those appear to be the values for "non darkening" colors. Exactly what that means I don't know.
void palman_load_pixels()
{
// open pixels.tbl
read_file_text("pixels.tbl");
reset_parse();
// parse pixels
while(!optional_string("#END")){
// nondarkening pixel
if(required_string("+ND")){
stuff_byte(&Palman_non_darkening_default[Palman_num_nondarkening_default][0]);
stuff_byte(&Palman_non_darkening_default[Palman_num_nondarkening_default][1]);
stuff_byte(&Palman_non_darkening_default[Palman_num_nondarkening_default++][2]);
}
}
// set this to be the active table
palman_set_nondarkening(Palman_non_darkening_default, Palman_num_nondarkening_default);
}
-
"Non-darkening?" Oooh! Oooh! That's the self-illumination code!!
The pixels that are non-darkening are not affected by shadows or ambient light, they remain bright, like lit windows. It was included in FS1 on the Fenris and Aten lights, but I seem to recall it wasn't in FS2. Maybe we can get it working!
-
That table is used and does do something, but I'm not entirely sure what. I tried adding some pixel colors in a texture I know a model of mine uses to the table and went into a mission with that ship. Spots along the texture that I presume were of the colors used were a lot lighter, but didn't seem to cast any light like a sun would.
-
There are still remnants of this in the FS2 tables; notice all those $ND things on some of the ships. ;) (I think that's what they are, anyway)
-
I think that table is obsolete, or else it globally affects all ships. Either way, a specific ship can be defined to be non-darkening by settings $ND values. Maybe we can use that table to set all pixels to non-darkening and blind our opponents!!
-
This could be useful for giving existing ships psuedo glow points, at least until my brain gets around glow data.:D
-
Originally posted by vadar_1
I think that table is obsolete, or else it globally affects all ships. Either way, a specific ship can be defined to be non-darkening by settings $ND values. Maybe we can use that table to set all pixels to non-darkening and blind our opponents!!
I don't think it's obsolete, otherwise they'd have gotten rid of it. It is a global one as opposed to local ones that are ship specific.
-
i wonder what it's for...