Just add specular light! I knew about bumpmapping by adding specular light to the pixel colors to make bump-mapped surfaces look more 'wet', however it didn't look as good as I wanted it to. Then I read online the idea that you do specular bumpmapping, but use a separate height-map for the specular component as light generally tends to reflect off of smoother surfaces. So I took a regular height map for the diffuse light, and a smoothed and contrasted version of it for the specular light and it looked great!
I didn't include sauce because its one of those thrown together jobs where im calculating pixel colors by individually pulling them apart and manipulating them in FB code (bleh! asm version soon) So just an .exe today.
here's it is: http://www.mediafire.com/?1eigjmf2mfbc9pa
this is for the same project the HDR and huge perlin noise thing was for. gotta make it all go fast fast fast!!!
Post your FreeBASIC tips and tricks here. Please don’t post your code without including an explanation.
3 posts • Page 1 of 1
Who is online
Users browsing this forum: jj2007 and 3 guests