Page 1 of 2

BlindSide's HLSL Shader Pack

Posted: Mon Jul 16, 2007 5:07 am
by BlindSide
Hey guys, here is my HLSL shader pack.

It allows you to:

Use shadow maps, with 3 types of filtering.
Apply Gooch material.
Apply Phong per-pixel material.
Apply Mr Wiggle material.
Apply Anisotropic highlight material.
Apply BRDF material.

Here is a screenshot:
Image

I have released it under the LGPL currently because it is still at an early stage and contains many bugs and inefficiencies. If people can contribute and make it better and more usable than I will re-release it under the ZLib/MIT license.

Download it from here:
http://irrlichtirc.g0dsoft.com/BlindSid ... haderP.zip
It has been updated now the constructor takes the scenemanager incase you are using multiple ones, so now it must be (device,scenemanager,shadowmapsize,useaccurate), so the doxygen is a bit out of date.

Please read the documentation in the "Doc" folder thoroughly before using!

Cheers :D

Posted: Mon Jul 16, 2007 9:14 am
by beshrkayali
plain and clear, amazing.
thank you :lol:

Posted: Mon Jul 16, 2007 9:40 am
by olivehehe_03
Looks nice, shame I have such a crappy video card :P

Posted: Mon Jul 16, 2007 1:38 pm
by white tiger
don't work well for me, this is the result of the binary file. There are strange artifacts on the terrain:

Image

AMD 2600+ 3dnow, nvidia 6200 last drivers, dx 9.0c installed, winxp SP2

hope you can fix that :D

Posted: Mon Jul 16, 2007 10:22 pm
by BlindSide
The binary file... hmmm this is strange because I have a 6200 also. They seem to be Z-buffer precision artifacts. Can you press "R" to show the shadow map and then take a screenshot of this?

PS: Updated to new wrapper improved by elvman, thx alot.

Posted: Tue Jul 17, 2007 7:37 am
by krama757
Sweeeeeet! Blind any plan to make terrain self shadowing a similar way? That would definately be a hit with the Irrlicht community.

Posted: Tue Jul 17, 2007 7:46 am
by BlindSide
Actually it already self-shadows in a way, but it does not look that good using normal shadow maps.

Maybe ambient occlusion or some method from this gamedev article would be appropriate.

Posted: Tue Jul 17, 2007 2:24 pm
by white tiger
here you are. i have re-downloaded your file to the updated version, the bug still appear

Image

Posted: Tue Jul 17, 2007 4:13 pm
by omaremad
maybe you are forcing 16 bit colour (in ur gfx card options).

Posted: Tue Jul 17, 2007 10:11 pm
by BlindSide
Yes that shadow map texture lacks colour info. You see how the ground has bands on it in the picture just like in the shadow? Can you try to adjust your driver settings to maybe higher quality, in the meantime I will find a fix for this (eg forcing texture creation to 32 bit or something).

Posted: Wed Jul 18, 2007 12:17 am
by omaremad
I thought 16 bit textures/framebuffer bc of the red and green bands (they have more bits than blue)

Posted: Wed Jul 18, 2007 1:16 am
by varholl
Hi BlindSide! i looked to your shader pack.. pretty nice :D

I have a doubt.. i didn't tested it yet.. but i want to know (sorry for my low shader known level) if this pack only allows me to have that incredible shadows..

Maybe it has another effects and i dont see them..

thanks in advance!

Posted: Wed Jul 18, 2007 10:35 am
by Nadro
Good work BlindSide:) Shaders are very good:)

Posted: Wed Jul 18, 2007 10:56 am
by white tiger
i have change the setting from 16 bit to 32 bit in my graphic settings and it works great. thanks :D but it should work also in 16 bit. you should find a fix for it

bye

Posted: Wed Jul 18, 2007 11:33 am
by BlindSide
white tiger wrote:i have change the setting from 16 bit to 32 bit in my graphic settings and it works great. thanks :D but it should work also in 16 bit. you should find a fix for it

bye
Yes that is fully correct, I will not see something that requires the end user manually changing graphics settings to work correctly as something that is complete and ready for release. That is why this pack is still in semi-developement mode with a restricting license.

I think it wont be hard to fix, I will try using the Irrlicht texture creation parameter to force 32-bit textures or something similar.
varholl wrote:Hi BlindSide! i looked to your shader pack.. pretty nice :D

I have a doubt.. i didn't tested it yet.. but i want to know (sorry for my low shader known level) if this pack only allows me to have that incredible shadows..

Maybe it has another effects and i dont see them..

thanks in advance!
List of features is listed at the start of the first post.