Tremulous Forum
Media => Mapping Center => Topic started by: vputz 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".
-
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.
-
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...
-
Looks like I'm having the same problem as this guy (http://www.map-center.com/forums/viewtopic.php?p=5085&sid=d0a904dc7c6a8cb128159ce384e9ad43). 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.