XEffects - (Indoor Soft-Shadows + Post-Processing)
XEffects - (Indoor Soft-Shadows + Post-Processing)
EDIT: This wrapper is now obselete and has been replaced by XEffects - Reloaded which follows a whole different philosophy. You can still use XEffects but if you want multiple light sources and material independance I recommend using the newer one.
Hey the X-Platform shader pack has changed its name to XEffects, and is now using the "Irrlicht Engine License". There has been a major internal overhaul, and almost everything but the easy to use interface has changed. The interior code has been fully revamped and cleaned out, and the shaders have been redone so that you only require a small amount of shader code to achieve the same thing. The shaders are more powerful and accurate now also, supporting more accurate methods of calculating the shadows so that complex interior scenes are possible, and a bigger filtering kernal (Up to 16 samples, yes performance is still ok even on my 6200).
Update: New version with revamped interface and post-processing support. It can layer post processing effects for you using double-buffering, all you do is add the material. MAJOR API CHANGES! So please read the Docs before using it in your projects. Shadows are now added using different shadow modes, allowing for easy configuration of what is casting/recieving etc. Enjoy.
Enough with the "jibber jabber", lets "get some nuts" :
Nuff' said, help yourselves:
http://irrlichtirc.g0dsoft.com/BlindSide/XEffects.zip
Cheers
Hey the X-Platform shader pack has changed its name to XEffects, and is now using the "Irrlicht Engine License". There has been a major internal overhaul, and almost everything but the easy to use interface has changed. The interior code has been fully revamped and cleaned out, and the shaders have been redone so that you only require a small amount of shader code to achieve the same thing. The shaders are more powerful and accurate now also, supporting more accurate methods of calculating the shadows so that complex interior scenes are possible, and a bigger filtering kernal (Up to 16 samples, yes performance is still ok even on my 6200).
Update: New version with revamped interface and post-processing support. It can layer post processing effects for you using double-buffering, all you do is add the material. MAJOR API CHANGES! So please read the Docs before using it in your projects. Shadows are now added using different shadow modes, allowing for easy configuration of what is casting/recieving etc. Enjoy.
Enough with the "jibber jabber", lets "get some nuts" :
Nuff' said, help yourselves:
http://irrlichtirc.g0dsoft.com/BlindSide/XEffects.zip
Cheers
Last edited by BlindSide on Tue Oct 14, 2008 11:49 am, edited 6 times in total.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Very strange indeed. Yeah in this demo the shadow is only on the terrain, you can enable it on the animated meshes too but the effect is not as good as I hoped.krama757 wrote: Blind, this is what I get when I run the demo...Whats going on?
And just to make sure...these shadows are on the terrain right?
It would be nice if you could post your computers specs etc, I can see in the console there are several shader errors, and I'm willing to bet your card is an ATI and uses a different, more restrictive shader compiler than mine. So if you could post up the errors in detail I can fix them and get it to work good on ATI cards too.
@hybrid, others
About the license, I'll change it to zlib when I get the chance, I'm not really sure why I chose LGPL in the first place anymore..
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
*thumbs up* nice one, blindside! This is what I need.
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
Update, fixed ATI bug and changed to non-restrictive zlibe-style license. Have fun
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
that's amazing! I'd like to better understand how it works, so these are my questions:
- irr::scene::ICameraSceneNode* lightCam;
is a "virtual" camera used to generate the shadows, so it has to be attached to the light source, am I right?
- how about having more light sources and every light source generating a shadow? how can I achieve this?
- irr::scene::ICameraSceneNode* lightCam;
is a "virtual" camera used to generate the shadows, so it has to be attached to the light source, am I right?
- how about having more light sources and every light source generating a shadow? how can I achieve this?
Sorry that is difficult without editing the actual shader code, and also it is limited by hardware. For Shader model 3 it will be easy to have lots of lights though. Shader model 2 you can have a few lights but not over 4PCF quality.
Anyway this will require some small modifications to the shader.
Anyway this will require some small modifications to the shader.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net