Author Topic: Flickering/flashing lights... _style isn't working for me.  (Read 3099 times)

vputz

  • Posts: 11
  • Turrets: +0/-0
Flickering/flashing lights... _style isn't working for me.
« on: February 26, 2007, 07:23:36 pm »
I'm trying to make a light flicker.  I know this may be possible with a custom shader (I've seen another thread about it), but I'm trying to make it happen in gtkRadiant with a light object and the _style keyword (I'm given to believe that setting _style from 1-10 or so causes different effects).

Only... well, it doesn't matter what _style I choose, the result is... the light has style "off", ie as if it wasn't there.  I found a thread on another forum that implied there should be a key in worldspawn (like _style1rgbgen or some such) but I can't find other information about it.

Any hints?  It's not THAT important (and it's not actually for a real tremulous map--I'm using tremulous to display a cave we have RL scans for), but just a little motion like a flickering light helps make things look much more "alive".

vputz

  • Posts: 11
  • Turrets: +0/-0
Flickering/flashing lights... _style isn't working for me.
« Reply #1 on: February 26, 2007, 07:28:07 pm »
Addendum: adding the _style keyword does generate a q3map2_mapname shader file, but the light is "off" (and the shader is important, because if I don't copy it over, some surfaces look untextured and tron-like).  Omitting the _style keyword removes the shader and does show the light.

vputz

  • Posts: 11
  • Turrets: +0/-0
Flickering/flashing lights... _style isn't working for me.
« Reply #2 on: February 26, 2007, 10:01:17 pm »
Addendum to my addendum:

"_style 1" is trying to do what it's supposed to do (and generates shaders appropriately).  The affected light is only being cast on things which are textured with a plain texture.  My wall shader (albeit very simplistic) is not being affected.  Looks kinda cool with only the objects flickering, but not quiiiite what I had in mind.

Working it...

vputz

  • Posts: 11
  • Turrets: +0/-0
Flickering/flashing lights... _style isn't working for me.
« Reply #3 on: February 26, 2007, 11:00:43 pm »
Looks like I'm having the same problem as this guy.  No answer, though.  For the moment I just changed the walls to use a texture instead of a shader, which looks about right (my wall shader is simplistic), but since I need a shader for my floor, now the walls reflect the light and the floor doesn't.  Hm.