I was looking for a really, really cheap and easy way to make some decent water. The simplest thing I found is just sliding a texture. In panda this would look like this:
wPlane=loader.loadModel('w_plane2.egg') wPlane.reparentTo(render) wPlane.setTexRotate(wPlane.findTextureStage('Tex2'), 15) LerpTexOffsetInterval(wPlane, 6, (1,1),(0,0), textureStage=wPlane.findTextureStage('Tex1')).loop() LerpTexOffsetInterval(wPlane, 6, (-1,-1),(0,0), textureStage=wPlane.findTextureStage('Tex2')).loop()
Tex1 and Tex2 use the same texture and they are both set to ‘modulate’.
The result looks nice, but it’s flat
I would like to use the same, but for a normal map. As far as I understand Pandas autoshader allows for only one normal (or gloss, or glow) map, so at this point it’s not doable (without a custom shader -which I’m allergic to).
Would a patch that allows to use two normal maps for one object be very difficult to make?
From editing normal maps in GIMP I know that if you just multiply two normal maps it gets a bit too blue and to saturated, but it can be fixed just by reducing the brightness a bit.
For a test I used a normal map ( still as ‘modulate’) for the code posted above and what I got would pretty much make for a good animated normal texture
So can it be done, or is it something very, very difficult to do?