Simple metal effect

Short idea for creating a simple reflecting metal effect, by changing only one number in one of the Irrlicht examples:

This looks nice, especially in movement. Just like very reflective golden metal on the walls. To reproduce, just open the per pixel lighing example and change the MaterialTypeParam to something above 1 (should work with D3D at least, didn't try it out with OpenGL).
How does this work? Simple: In the parallax mapping shader, I'm calculating something like
mad r2.xyz, r3, r4_bx2, r0 ; newTexCoord = height * eye + oldTexCoord
where r3 has been scaled with this MaterialTypeParam value before. It influences the bumpiness of the material, but with bigger values, it makes the shader 'go mad'. Unfortunately, the fake reflections on the wall only change when moving the position of the camera. But this could be fixed up easily. Maybe a good start to play around and try out to create a new shader? Simply open CD3D9ParallaxMapRenderer.cpp and copy or edit the pixel shader programs and create your own. :)

four comments, already:

bwahaha thats awesome
[The Anaconda] - 29 03 06 - 06:29

i would like to see that in motion
biotech - 29 03 06 - 14:55

sure, just download irrlicht and do it as described above.
niko - 29 03 06 - 18:34

So interesting site, thanks!
William () (link) - 22 04 06 - 22:38


Name:  
Remember personal info?
yes
no
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.