Page 1 of 1

BumpShadow

Posted: Sun Jun 05, 2022 5:22 pm
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

Re: BumpShadow

Posted: Sun Jun 05, 2022 7:31 pm
by netpipe
https://www.youtube.com/watch?v=z9njr9jSkaY would like to get the flashlight working like in this demo.

Re: BumpShadow

Posted: Sun Jun 05, 2022 7:35 pm
by netpipe
is it possible to have the dwarf make a the shadow twice so its darker and with less artifacts ?

Re: BumpShadow

Posted: Mon Jun 06, 2022 2:54 pm
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).

Re: BumpShadow

Posted: Tue Jun 07, 2022 1:05 am
by netpipe
wow the new shadows look fantastic and the cube mapping demo is neat too. i guess that concludes the need for xeffects ?

Re: BumpShadow

Posted: Tue Jun 07, 2022 1:45 am
by netpipe
Image

Re: BumpShadow

Posted: Tue Jun 07, 2022 1:14 pm
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.

Re: BumpShadow

Posted: Tue Jun 07, 2022 3:21 pm
by netpipe
Image strange when i apply cubemap to a model is there a way to stretch it over the model more ?

Re: BumpShadow

Posted: Tue Jun 07, 2022 3:30 pm
by netpipe
Image i wonder if i could use cubemap with model textures and combine them

Re: BumpShadow

Posted: Tue Jun 07, 2022 4:24 pm
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

Re: BumpShadow

Posted: Tue Jun 07, 2022 4:25 pm
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.

Re: BumpShadow

Posted: Tue Jun 07, 2022 4:37 pm
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).