You are bound to get artifacts with builtin shadows or even with opengl realtime stencil shadows. I found that the XEffects Reloaded shader pack has some nice shaders that produce smooth shadows. You can find it here on forums.
So is your node a sphere?
I think youre talking about some old school fake shadows. I think you should just draw textures on the ground under the player. Maybe semi transparent image
someguy99 wrote:So is your node a sphere?
I think youre talking about some old school fake shadows. I think you should just draw textures on the ground under the player. Maybe semi transparent image
Yes, that exactly what I need. But how to do this in Irrlicht?
If your objects are already spheres, you can use matrix4::buildShadowMatrix() to help you squish the geometry onto a plane. You can then render the geometry again as a shadow, as shown here. You'll have to tweak materials, but you'll get the idea.
If you just want to draw a circle under each a node, you could also just create a textured quad, use alpha to fade the edges of the circle of the texture, and render that quad just above the plane at the appropriate positions.
vitek wrote:
If you just want to draw a circle under each a node, you could also just create a textured quad, use alpha to fade the edges of the circle of the texture, and render that quad just above the plane at the appropriate positions.
That would work on a totally flat ground but on a terrain with bumps and things it would start cutting in. It needs to be rendered after the terrain and before the player node.
Eigen wrote:That would work on a totally flat ground but on a terrain with bumps and things it would start cutting in. It needs to be rendered after the terrain and before the player node.
Yes it would, and that is exactly what the OP has requested...
tyomalu wrote:I need to create such kind of node that drops circle shadows on plane floor