BumpShadow
BumpShadow
https://github.com/netpipe/IrrlichtDemo ... BumpShadow
was trying to play around with some of irrlicht's bumpmapping support and came up with this project, help is welcome.
was trying to play around with some of irrlicht's bumpmapping support and came up with this project, help is welcome.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: BumpShadow
https://www.youtube.com/watch?v=z9njr9jSkaY would like to get the flashlight working like in this demo.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: BumpShadow
is it possible to have the dwarf make a the shadow twice so its darker and with less artifacts ?
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: BumpShadow
I don't think that helps. But if you run it with Irrlicht trunk the artifacts seem to be gone (there's been a few improvements for shadows). And it would otherwise also have a new option to calculate shadows per polygon (IShadowVolumeSceneNode::setOptimization set to ESV_NONE). Only problem I noticed there is that it stops calculating the shadow when the camera is in front of the model (maybe because of clipping, could try disabling that).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: BumpShadow
wow the new shadows look fantastic and the cube mapping demo is neat too. i guess that concludes the need for xeffects ?
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: BumpShadow
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: BumpShadow
XEffects still useful. Irrlicht still only has shadow volumes, while XEffects uses ShadowMaps. Depends a bit on the use-case, but using ShadowMaps is the more common solution these days.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: BumpShadow
strange when i apply cubemap to a model is there a way to stretch it over the model more ?
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: BumpShadow
i wonder if i could use cubemap with model textures and combine them
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: BumpShadow
a bit offtopic too but https://github.com/netpipe/IrrlichtDemo ... cht_Octree for some reason using an octtree within the irrlicht scenemanager speeds things up alot. is there something wrong with irrlicht's camera it would not be able to have that performance for itself setting things to visible and not automatically ? bool useOctree = true; is what to check with
Last edited by netpipe on Tue Jun 07, 2022 4:27 pm, edited 1 time in total.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: BumpShadow
First case looks to me like model maybe has different meshbuffers? Not quite sure how to apply them in some kind of seamless way over the model. I suspect the way to do that would be to work with a different set of UV coordinates (which could be calculated on the fly). So UV's maybe would have to project on some sphere or box around the model.
Second case - can be done with shaders. Without probably not.
Second case - can be done with shaders. Without probably not.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: BumpShadow
About octree - not something I can tell about quickly. I mean octree can do a bit faster culling as they don't have to check all nodes. But then again that should not be the slow part usually as the normal culling check is pretty cheap. So something to profile to see what's making one so much faster than the other ("Very sleepy" is an easy to user profiler on Windows).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm