Depth of Field ...
Depth of Field ...
Hi
I love irrlicht and now (finally) I love shaders...
I have posted a depth of field implementation based on Omer's work and some RenderMonkey examples.
here:
http://posttool.com/drop/02depth.zip
I also have an update to Omer's HDR effects... I had to modify them significantly to get them working for my ATI card, but now they should be more generic. Also, I have updated his code for Irrlicht 1.2. Write me if you want this...
I love irrlicht and now (finally) I love shaders...
I have posted a depth of field implementation based on Omer's work and some RenderMonkey examples.
here:
http://posttool.com/drop/02depth.zip
I also have an update to Omer's HDR effects... I had to modify them significantly to get them working for my ATI card, but now they should be more generic. Also, I have updated his code for Irrlicht 1.2. Write me if you want this...
...
use the function keys to modify the range, focus, blur & distance values..
when trying to use your class in my project the consols says something liek
HLSL shader compilation failed...
unexpected token 'vec 2'
also your demo crashes when closed
but it looks great btw
HLSL shader compilation failed...
unexpected token 'vec 2'
also your demo crashes when closed
but it looks great btw
My Blog: http://www.freakybytes.org
"vec" is a GLSL datatype (is there really a space between "vec" and "2"?). HLSL equivalent for "vec2" is "float2".Halan wrote:when trying to use your class in my project the consols says something liek
HLSL shader compilation failed...
unexpected token 'vec 2'
also your demo crashes when closed
but it looks great btw
I guess you've tried loading GLSL into the Direct3D driver - no go.
I've been for converting this demo to D3D9 for a while, but I've been busy on other demos. I'll take another look when I get chance.
vec2... thought it was a HSGL shader because that was wirtten in the console
ill try open gl
ill try open gl
My Blog: http://www.freakybytes.org
02depth crashed for me too on exit.
I compiled a debug version of the irrlicht dll and found that the callback was being shared without callback->grab() and when it's dropped multiple times the pointer becomes invalid.
I fixed shadermaterial.cpp, ShaderMaterial::init():
Doesn't crash on exit now.
I compiled a debug version of the irrlicht dll and found that the callback was being shared without callback->grab() and when it's dropped multiple times the pointer becomes invalid.
I fixed shadermaterial.cpp, ShaderMaterial::init():
Code: Select all
if (!callback) {
callback = new ShaderCallBack();
} else {
callback->grab();
}
thanks
please contact me if youve converted this to hsgl
greets,
halan
btw: this shader looks similiar to the rainbox 6 : vegas shader
please contact me if youve converted this to hsgl
greets,
halan
btw: this shader looks similiar to the rainbox 6 : vegas shader
My Blog: http://www.freakybytes.org
OK, I've now converted this demo so that you can now choose between OpenGL and Direct3D9 at startup. I've also fixed the crash-on-exit bug.
I'll clean out my debugging junk and post the code+demo on my website tomorrow. It's currently PS2.0, but I'll have a look at whether PS3.0 adds any performance (if host card supports it). I'll also see if it will fit into 1.x.
I'm not happy with performance, but it's a good starting point. [GL and D3D are same speed, before you ask ]
A big thanks to posttool and omar - I'll make sure credits are given in the readme.
I'll clean out my debugging junk and post the code+demo on my website tomorrow. It's currently PS2.0, but I'll have a look at whether PS3.0 adds any performance (if host card supports it). I'll also see if it will fit into 1.x.
I'm not happy with performance, but it's a good starting point. [GL and D3D are same speed, before you ask ]
A big thanks to posttool and omar - I'll make sure credits are given in the readme.
Beta version available here:
http://sio2.g0dsoft.com/DepthOfField.zip
If a few of you could test it out for me I would be grateful. If all is OK I can then upload the Release version and post it on my main page.
You can now choose between OpenGL and Direct3D9 at startup.
http://sio2.g0dsoft.com/DepthOfField.zip
If a few of you could test it out for me I would be grateful. If all is OK I can then upload the Release version and post it on my main page.
You can now choose between OpenGL and Direct3D9 at startup.