BumpShadow

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

BumpShadow

Post by netpipe »

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.

Image
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: BumpShadow

Post by netpipe »

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%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: BumpShadow

Post by netpipe »

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%
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: BumpShadow

Post by CuteAlien »

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
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: BumpShadow

Post by netpipe »

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%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: BumpShadow

Post by netpipe »

Image
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: BumpShadow

Post by CuteAlien »

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
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: BumpShadow

Post by netpipe »

Image 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%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: BumpShadow

Post by netpipe »

Image 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%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: BumpShadow

Post by netpipe »

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%
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: BumpShadow

Post by CuteAlien »

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.
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
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: BumpShadow

Post by CuteAlien »

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
Post Reply