Hi. I have an ILightSceneNode node generated by addLightSceneNode() method is located to the left of that swinging ball:
However, the ball has strange shadows (note, the stencil buffer is disabled to me) and with so low resolution. How to increase me that resolution?
How to increase shadow resolution?
Re: How to increase shadow resolution?
Without stencilbuffer you don't get shadows. Irrlicht creates shadowvolumes using the stencilbuffer. But if you have enabled lighting for the polygons then the polygons away from the light are dark (not because of shadows but because direct light doesn't hit them). The only light they receive is the ambient light. Resolution depends on the amount of polygons (light hits the polygon vertices and is interpolated over the polygon area from those).
For improved light you have to create shaders. XEffects can maybe help you with that (it's basically a set of nice shaders): http://irrlicht.sourceforge.net/forum// ... hp?t=30631
For improved light you have to create shaders. XEffects can maybe help you with that (it's basically a set of nice shaders): http://irrlicht.sourceforge.net/forum// ... hp?t=30631
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: How to increase shadow resolution?
Thanks for reply. I`ve tried to increase the polygon count to 128 in 'addSphereSceneNode()' call, in the second parameter. However, my application has stopped to run (just blank window appears). Before I set that parameter to 32.
Re: How to increase shadow resolution?
Hm, strange 128 should still be ok (documentation says up to 256). Also can't see a problem here when testing it with that many. Maybe another problem in your app.
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: How to increase shadow resolution?
ive been waiting to hire a freelancer to improve xeffects to do timed updating to make it faster rather than rendering every frame. currently he is working on the opengl gles port of the shaders(emscripten).
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%