Dark Bit Factory & Gravity

PROGRAMMING => Coding tutorials => Topic started by: Xetick on June 09, 2012

Title: The bump mapping shader thats not too complex and just looks amazing
Post by: Xetick on June 09, 2012
I have been looking for that shader that 'everyone' seems to be using that just make objects look so good. Finally I do think I have found it.

Example of a torus knot without any bump map applied
(http://www.plane9.com/ext/20120609-1.jpg)

The same with a noise bump map
(http://www.plane9.com/ext/20120609-2.jpg)

So whats so special with this algorithm. For one it looks very good. It's also not too complicated but more specifically it doesn't need any tangents to work. The noise applied in my example is just a real time noise height field generated in the shader. This can of course be any texture or function something that is incredibly useful.

The shader and example program with source can be found on mikkelsen's blog (http://mmikkelsen3d.blogspot.se/)
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: Blacksheep8Bit on June 09, 2012
Thanks for finding this tutorial, even i understood the process behind such beautiful effect :D
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: egons on June 10, 2012
wow, I am working on bump mapping too. 10x :clap:
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: Shockwave on June 10, 2012
Nice find there Xetick - Thanks for sharing it with us :)

The bump mapping looks really excellent.
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: benny! on June 10, 2012
Good one. Thx for sharing!
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: jace_stknights on June 11, 2012
Well done :P
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: Raizor on June 11, 2012
Looks very nice Xetick. I shall have to try and implement this :)
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: Xetick on June 12, 2012
I played around with it a bit more and got the image below. The whole scene is as usual all generated procedurally. The name of the lighting algorithm is Torrance Sparrow with the addition of the normal adjustment linked to at the start of this thread.

(http://www.plane9.com/ext/20120611-TorranceSparrow.jpg)

Physically based lightning can obviously make all the difference!
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: Kirl on June 12, 2012
Nice!  :clap:
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: Raizor on June 12, 2012
I played around with it a bit more and got the image below. The whole scene is as usual all generated procedurally. The name of the lighting algorithm is Torrance Sparrow with the addition of the normal adjustment linked to at the start of this thread.

(http://www.plane9.com/ext/20120611-TorranceSparrow.jpg)

Physically based lightning can obviously make all the difference!

Xetick, that looks lovely! Like chiseled stone.
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: Shockwave on June 12, 2012
I was going to say that it looks like a stone sculpture too but Raizor beat me to it.

It looks awesome.  :clap:
Title: Re: The bump mapping shader thats not too complex and just looks amazing
Post by: jace_stknights on June 15, 2012
Really nice!!!