Tuesday 9 December 2008

Some more shader work

Last time I showed the spot light that was working this time round Normal mapping and Parallax mapping are also working.
First up normal mapping:

And parallax mapping:

The only thing the images show off is though that the specular component isn't calculated correctly and that is the next fix. The thing after that is creating a cube map in the application so we can do reflection mapping.

The application I am creating is actually a countdown timer till new year and I want to add a reflection map to the 3d text that is now hidden by this cube.

Wednesday 3 December 2008

spot light shader

And finally I got my spot light shader to work. The problem I actually had was that I didn't realize that the cos function in HLSL needed a radian instead of degrees, grrrr. It now looks as it should, finnaly got this damn light equations out of the way.

Tuesday 2 December 2008

Side project

I finally got a spot light shader working. This bugged my last year at this time when I was doing my space sim and is one of the reasons why I didn't include shaders in that project.

In the new year I will probably redo that project based upon a completely shader based render system this time around. This means I can much easier include effects in to this project like parallax mapping. But for this to be able to be put in my light shaders first have to work.

Here is a screen shot of the spot light so far, i still need to add the fall off in between the inner and other cone.