Page 1 of 1

Shadow with ISceneNode

Posted: Sun Dec 05, 2010 10:23 am
by RaverGames
Hello

How i can show the shadow of an ISceneNode.

Why dows IAnimatedMeshSceneNode have a addShadowVolumeSceneNode function and an IScenNode not?

and how to Cretoe something like ISceneNode::SetTarget(vector3df)

RaverGames

Posted: Sun Dec 05, 2010 6:02 pm
by Lonesome Ducky
ISceneNode does not have a shadow method, because ISceneNode does not necessarily have a mesh, and you can't cast shadows without something to cast them :lol:

Posted: Sun Dec 05, 2010 6:20 pm
by macron12388
Correct me if I am wrong, but isn't IAnimatedMeshSceneNode derived from ISceneNode?

EDIT: For example you don't really need a mesh for a skybox or skydome, so you can make an instance of ISceneNode, and not IAnimatedMeshSceneNode since you don't need those extra resources such as shadowing really for a simple skybox which is essentially just a sphere or cube set AAALLL the way back in the z-buffer, nehind everything else.

Posted: Sun Dec 05, 2010 6:37 pm
by RaverGames
hmm and how i can cast shadow from a cube made with the SceneManager?

Posted: Sun Dec 05, 2010 9:27 pm
by hybrid
Either convert it into an animated mesh scene node, or wait for the next Irrlicht release, which should have an updated shaodw system.

Posted: Sun Dec 05, 2010 9:43 pm
by RaverGames
Ahhh ok.

I will try it :)

Posted: Thu Dec 09, 2010 7:35 pm
by xirtamatrix
RaverGames wrote:Ahhh ok.

I will try it :)

you can convert any ISceneNode to IAnimatedMeshSceneNode and then addShadowSceneNode to it, but be advised, when you use the animated meshscenenode you cannot apply normal/parallax maps to your node anymore :)

actually, there's a work-around for that too... just search the forums ;)

Posted: Thu Dec 09, 2010 7:38 pm
by xirtamatrix
hybrid wrote: ..... or wait for the next Irrlicht release, which should have an updated shaodw system.
humn... could you give any hints whats been worked upon? some clean and efficient soft-shadow system by any chance? These stencil shadows kinda suck :S

Posted: Fri Dec 10, 2010 3:58 pm
by hybrid
No, just a better version of the stencil shadow, which really works.

Then it is impossible to cast shodows of primitive shapes

Posted: Tue May 03, 2011 5:50 pm
by thanvilk
xirtamatrix wrote:
RaverGames wrote:Ahhh ok.

I will try it :)
Then it is impossible in irrlicht engine to cast shadows those does not contain any mesh ????
you can convert any ISceneNode to IAnimatedMeshSceneNode and then addShadowSceneNode to it, but be advised, when you use the animated meshscenenode you cannot apply normal/parallax maps to your node anymore :)

actually, there's a work-around for that too... just search the forums ;)