It’s not real heat vision, you have to add a lamp to illuminate the scene when you turn it on if the scene is dark, but it simulates the heat map style coloration of thermographic vision. You can combine it with other filters such as noise or blur to get a more interesting effect. I tried using depthTexture to get a true “seeing in the dark” type filter but the depth texture doesn’t pick up textures, transparent objects etc… so it wasn’t a good effect.
Hi all, I used it just yesterday in 2.75 and it worked fine. It must be a graphics card issue…
I’m not sure how I fixed that last time but you could try putting an f in front of all the floats, so for example f0.3 instead of 0.3
This one also requires a light, actually most will. The one adriansnetlis posted can amplify small amounts of light though, so if you add a lamp with a very low energy setting like 0.05 it will work with the filter but the scene will look dark. You can increase the effect by setting the strength to 5.0 or even 15.0 if you have a very dark scene.
I’ve got another one I may post tonight but again it could have trouble with AMD cards…
Well, I’m saying that there’s no effect with this. Like, not even the vignette.
The one adriansnetlis posted can amplify small amounts of light though, so if you add a lamp with a very low energy setting like 0.05 it will work with the filter but the scene will look dark. You can increase the effect by setting the strength to 5.0 or even 15.0 if you have a very dark scene.
I did not know it did that. Thank you.
I’m just wondering why I don’t get any effect with this. It must be my graphics card.
Fragment shader failed to compile with the following errors:
ERROR: 0:21: error(#202) No matching overloaded function found: pow
ERROR: error(#273) 1 compilation errors. No code generated
EDIT:
Try;
pow(vec2 deltatexcoord, vec2(2.0))
That controls the size of the non red area so in your version it’s nearly 100% red.
Pow should compare two items of the same type. This part is lifted from one of martinsh’s old shader examples so I’m not sure about the fix.
I actually got quit a fun heat xray style shader by switching character meshes with a rigged skeleton, the skeleton model had the z buffer offset to 70 or something like that so it always rendered over other background objects.
It looks like a feature used in a lot of games that usually is called extra vision or eagle vision or focus etc. Usually it affects object shaders, however, I don’t know if blender can remove GLSL shaders.
for obj in bge.logic.getCurrentScene().objects:
if "enemy" in obj:
redEmitShaderThingy(obj) #execute function that's first line looks like def redEmitShaderThingy(obj)
#and there is full shader code in it later that I can't tell you now
else:
blueEmitShaderThingy(obj)