what exactly does additive do

what exactly does additive do

Re: what exactly does additive do Posted by warlord on Thu Sep 11th 2003 at 2:58am
warlord
166 posts
Posted 2003-09-11 2:58am
warlord
member
166 posts 247 snarkmarks Registered: Sep 11th 2003 Occupation: ill show ye Location: americas
as it appeard or seemed to appear in kungfusquirel's electric beam tut does additive make any texture (with black in it) fade the black part out and the bright parts glow?????

does it do any other neat tricks
Re: what exactly does additive do Posted by Gorbachev on Thu Sep 11th 2003 at 3:27am
Gorbachev
1569 posts
Posted 2003-09-11 3:27am
1569 posts 264 snarkmarks Registered: Dec 1st 2002 Location: Vancouver, BC, Canada
Not really. But it can be used on sprites as well.
Re: what exactly does additive do Posted by Tracer Bullet on Thu Sep 11th 2003 at 5:22am
Tracer Bullet
2271 posts
Posted 2003-09-11 5:22am
2271 posts 445 snarkmarks Registered: May 22nd 2003 Occupation: Graduate Student (Ph.D) Location: Seattle WA, USA
I believe "additive" causes the engine to add the color of each pixel of the object being rendered to whatever is behind it, which would naturaly make black dissapear...
Re: what exactly does additive do Posted by Orpheus on Thu Sep 11th 2003 at 8:41am
Orpheus
13860 posts
Posted 2003-09-11 8:41am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
this is just a shot in the "dark"

but in my limited experience with additive, it makes a texture sort of glow, or seem brighter that any other render mode ..

if you were to use a lava liquid texture, and set it to any other mode, it would be a dim sort of fluid, but additive makes it appear hotter, more glowy..

well as i said, its just a thought.. :smile:
Re: what exactly does additive do Posted by Monqui on Thu Sep 11th 2003 at 12:17pm
Monqui
743 posts
Posted 2003-09-11 12:17pm
Monqui
member
743 posts 94 snarkmarks Registered: Sep 20th 2002 Occupation: Poor College Student Location: Iowa, USA
Nah, I think Tracer is right (for the most part- not sure thats how it works or not) but additive mostly makes black on a texture/sprite become transparent.
Re: what exactly does additive do Posted by Gollum on Thu Sep 11th 2003 at 12:52pm
Gollum
1268 posts
Posted 2003-09-11 12:52pm
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
They're both right.

Additive literally adds the RGB values of a sprite to whatever is visible behind it.  In the case of black, this value is "0 0 0", effectively causing the black parts of a sprite to disappear and the dark parts to fade out.

But this effect is not adjusted by lighting, meaning that in a dark area the bright parts of an addivtive sprite will appear to glow (even in a totally black area, "0 0 0" + "255 255 255" = "255 255 255", i.e. pure white).
Re: what exactly does additive do Posted by Kapten Ljusdal on Sun Sep 14th 2003 at 1:05pm
Kapten Ljusdal
312 posts
Posted 2003-09-14 1:05pm
312 posts 31 snarkmarks Registered: May 3rd 2003
I have never seen 3 correct answers before :popcorn:
Re: what exactly does additive do Posted by LAzerMANiac on Thu Oct 2nd 2003 at 1:47am
LAzerMANiac
204 posts
Posted 2003-10-02 1:47am
204 posts 100 snarkmarks Registered: Sep 30th 2003 Occupation: A student/mapper for Xen Rebels Location: Fremont, CA
:razz: i had this incindent where i put an env_sprite and a light  in the same very spot. the light was 255 255 255 and the sprite was exit1.spr. the walls in the final map glowed with green-orange, aka the color of the sprite. i guess the color addition works with lights, too...
Re: what exactly does additive do Posted by Gollum on Thu Oct 2nd 2003 at 9:46am
Gollum
1268 posts
Posted 2003-10-02 9:46am
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
That would surprise me a great deal :wtf:
Re: what exactly does additive do Posted by half-dude on Tue Oct 7th 2003 at 5:07pm
half-dude
580 posts
Posted 2003-10-07 5:07pm
580 posts 76 snarkmarks Registered: Aug 30th 2003 Occupation: male Location: WH
It is a setting that makes a sprite with a black background not have the black background, but you have to tell it how invisible to make the black.