Shadow with ISceneNode

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
RaverGames
Posts: 17
Joined: Sat Sep 25, 2010 8:54 am

Shadow with ISceneNode

Post 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
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post 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:
macron12388
Posts: 126
Joined: Wed Sep 29, 2010 8:23 pm

Post 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.
RaverGames
Posts: 17
Joined: Sat Sep 25, 2010 8:54 am

Post by RaverGames »

hmm and how i can cast shadow from a cube made with the SceneManager?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
RaverGames
Posts: 17
Joined: Sat Sep 25, 2010 8:54 am

Post by RaverGames »

Ahhh ok.

I will try it :)
xirtamatrix
Posts: 219
Joined: Fri Feb 19, 2010 4:03 pm
Location: Estonia

Post 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 ;)
to live, is natural; to die, is not!
xirtamatrix
Posts: 219
Joined: Fri Feb 19, 2010 4:03 pm
Location: Estonia

Post 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
to live, is natural; to die, is not!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, just a better version of the stencil shadow, which really works.
thanvilk
Posts: 23
Joined: Tue Mar 15, 2011 6:39 pm
Location: india

Then it is impossible to cast shodows of primitive shapes

Post 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 ;)
Laxmikant Thanvi
Post Reply