Author Topic: Tables question  (Read 1665 times)

0 Members and 1 Guest are viewing this topic.

Offline Stunaep

  • Thread Necrotech.... we bring the dead to life!
  • 210
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?
"Post-counts are like digital penises. That's why I don't like Shrike playing with mine." - an0n
Bah. You're an admin, you've had practice at this spanking business. - Odyssey

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
Those appear to be the values for "non darkening" colors. Exactly what that means I don't know.

Code: [Select]

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);
}
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
"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!
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
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.
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
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)

 

Offline vadar_1

  • Mr. Crispy
  • 29
  • .
    • http://dynamic4.gamespy.com/~freespace/hosted/fullcircle/
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!!
"Shockingly, checking Draw Lines Between Marked Icons draws lines between the marked icons. " -Volition quality help files

Projects;
The Full Circle Project (site down - server side problem)
Paradox (site down - server side problem)

 

Offline vyper

  • 210
  • The Sexy Scotsman
This could be useful for giving existing ships psuedo glow points, at least until my brain gets around glow data.:D
"But you live, you learn.  Unless you die.  Then you're ****ed." - aldo14

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
Quote
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.
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

  

Offline Stealth

  • Braiiins...
  • 211
i wonder what it's for...