Slothette64@Posted: Thu Sep 21, 2006 5:00 am    Post subject: flares on moveables: hey guys im sure you can help me out
i want to make some flares on a model so it will moveable
i got it working easy by just giving some quads the flare shader easy
works great but the problems that its full white
so you normaly change the brightness/color from the light but this doesnt have a light but everything i do to the MTR wont change the brightness
like normaly this works fine for brushes but on a model it doesnt listen to rgb

Code:

models/env/pixfluff_flare
{
   sort far
   noshadows
   translucent
   nonsolid
   deform   flare 17
   {
      blend    add
      map   _quadratic
      rgb   0.2
      colored
      vertexcolor
   }
}


so no matter what i set rgb to it stays pure white and there is no _quadratic texture anywhere and i tried a bunch of stuff already but no luck
im happy with how it works but when its so white you cant see through it and its ugly
anyone can figure this out you will be awesome
_________________
_____________________________________
whats that thing on your face? oh its your face! Razz



rich_is_bored@Posted: Thu Sep 21, 2006 6:05 am    Post subject: : The rgb keyword sets the value of all three color channels at once.

The problem is for example...

Code:
rgb 0.5


... would set red, green, and blue to 0.5. And since each color channel is set to the same value, you end up with a neutral color.

In order to set the color channels indepentantly, and therefore set them to separate values, you need to use the red, green, and blue keywords.

For instance...

Code:
red 0
green 0
blue 1


... would be blue.
_________________
Staff
Learn something today? Why not write an article about it on modwiki.net?



Slothette64@Posted: Thu Sep 21, 2006 4:52 pm    Post subject: : thanks
that i understand it and tried it
no matter what combination of stuff i try its still full bright white
i tried rgb 0.2 there cuz i want dark gray ao you can see thru it easy and should look really cool
when you add it to a brush in edit it works
when you add it to a model here its always white
Sad
_________________
_____________________________________
whats that thing on your face? oh its your face! Razz



BloodRayne@Posted: Thu Sep 21, 2006 7:30 pm    Post subject: : The brush needs to be a flat square in order for it to work. Set all the sides of the brush to nodraw and then apply your material to one face of the brush, that should work. Never seen the _quadratic map before though. What does it do?
_________________
Hexen Edge Of Chaos
Ultimate Mod

Personal websites:
http://www.fabianband.com
http://pixels.ontheweb.nl



Slothette64@Posted: Thu Sep 21, 2006 8:29 pm    Post subject: : but im trying to get the flare on a physic object its in a ASE file so i cant use it on a brush its on 2 polys
i dont get any error the flare works excellent itself
the problem is the brigthness\color its so dam white
if i change that line from _quadratic to another texture i can get a color thats nice and transparant but then it turns into squares it doesnt blend it goes bogus and sharp
_________________
_____________________________________
whats that thing on your face? oh its your face! Razz



obihb@Posted: Fri Sep 22, 2006 9:50 am    Post subject: : The only way i know to change flare colors is if the mesh of the flare, the quad, is a func_static or is part of a light group. Then you can change it's colors and intesityinside the Radiant by pushing K for color edit.

I'm guessing maybe the material will also affect it then?.. not aure about that.

But you could try make it func_static then bind it to your other object.

Not sure if other methods will work or not, this is just what I know.
_________________
Obi-Wan



Slothette64@Posted: Thu Sep 21, 2006 5:00 am    Post subject: flares on moveables: hey guys im sure you can help me out
i want to make some flares on a model so it will moveable
i got it working easy by just giving some quads the flare shader easy
works great but the problems that its full white
so you normaly change the brightness/color from the light but this doesnt have a light but everything i do to the MTR wont change the brightness
like normaly this works fine for brushes but on a model it doesnt listen to rgb

Code:

models/env/pixfluff_flare
{
   sort far
   noshadows
   translucent
   nonsolid
   deform   flare 17
   {
      blend    add
      map   _quadratic
      rgb   0.2
      colored
      vertexcolor
   }
}


so no matter what i set rgb to it stays pure white and there is no _quadratic texture anywhere and i tried a bunch of stuff already but no luck
im happy with how it works but when its so white you cant see through it and its ugly
anyone can figure this out you will be awesome
_________________
_____________________________________
whats that thing on your face? oh its your face! Razz



rich_is_bored@Posted: Thu Sep 21, 2006 6:05 am    Post subject: : The rgb keyword sets the value of all three color channels at once.

The problem is for example...

Code:
rgb 0.5


... would set red, green, and blue to 0.5. And since each color channel is set to the same value, you end up with a neutral color.

In order to set the color channels indepentantly, and therefore set them to separate values, you need to use the red, green, and blue keywords.

For instance...

Code:
red 0
green 0
blue 1


... would be blue.
_________________
Staff
Learn something today? Why not write an article about it on modwiki.net?



Slothette64@Posted: Thu Sep 21, 2006 4:52 pm    Post subject: : thanks
that i understand it and tried it
no matter what combination of stuff i try its still full bright white
i tried rgb 0.2 there cuz i want dark gray ao you can see thru it easy and should look really cool
when you add it to a brush in edit it works
when you add it to a model here its always white
Sad
_________________
_____________________________________
whats that thing on your face? oh its your face! Razz



BloodRayne@Posted: Thu Sep 21, 2006 7:30 pm    Post subject: : The brush needs to be a flat square in order for it to work. Set all the sides of the brush to nodraw and then apply your material to one face of the brush, that should work. Never seen the _quadratic map before though. What does it do?
_________________
Hexen Edge Of Chaos
Ultimate Mod

Personal websites:
http://www.fabianband.com
http://pixels.ontheweb.nl



Slothette64@Posted: Thu Sep 21, 2006 8:29 pm    Post subject: : but im trying to get the flare on a physic object its in a ASE file so i cant use it on a brush its on 2 polys
i dont get any error the flare works excellent itself
the problem is the brigthness\color its so dam white
if i change that line from _quadratic to another texture i can get a color thats nice and transparant but then it turns into squares it doesnt blend it goes bogus and sharp
_________________
_____________________________________
whats that thing on your face? oh its your face! Razz



obihb@Posted: Fri Sep 22, 2006 9:50 am    Post subject: : The only way i know to change flare colors is if the mesh of the flare, the quad, is a func_static or is part of a light group. Then you can change it's colors and intesityinside the Radiant by pushing K for color edit.

I'm guessing maybe the material will also affect it then?.. not aure about that.

But you could try make it func_static then bind it to your other object.

Not sure if other methods will work or not, this is just what I know.
_________________
Obi-Wan