Tweak Lightmaps?


(BackSnip3) #1

I got a problem with my lightmaps, I can’t achieve an effect I’m looking for :frowning:
What I want to do is to use the animmap shader command to fake moving tree shadows for example or caustics in a cave.
I though the game was searching for “mymap/lm_0000” for example,so I named a shader like this,but still,the game looks for an image and not a shader,once I remove the image,the game uses another lightmap image instead of looking for a shader :S
How can I solve this?Is it even possible to use shaders for lightmaps?:confused:
I just remember that I saw something like a moving lightmap faking cloud shadows in rtcw SP in forest level…:rolleyes:

My shader looks like this:

maps/testlights/lm_0000
{
	{
		animmap 1 maps/testlights/lm_00001.tga maps/testlights/lm_00002.tga
	}
}

In my testlights directory I have lm_00001.tga and lm_00002.tga,that’s all.


(nUllSkillZ) #2

Not sure if lightmaps are loaded once at the begining of the map.
But you could try remapshader.


(Detoeni) #3

It was a blended overlay, terrain in rtcw sp and mp was vertex lit, not lightmapped.


(Avoc) #4

I got fake caustics in the caves of my version of Marrakech Streets 2, called Marrakech by Night. Just a simple shader. I believe something similar can be achived with shaders to make a fake tree shadow effect. I was thicking of it myself, but I haven’t had the time.