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
Shadow with ISceneNode
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
-
- Posts: 126
- Joined: Wed Sep 29, 2010 8:23 pm
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.
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.
-
- Posts: 17
- Joined: Sat Sep 25, 2010 8:54 am
-
- Posts: 219
- Joined: Fri Feb 19, 2010 4:03 pm
- Location: Estonia
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!
-
- Posts: 219
- Joined: Fri Feb 19, 2010 4:03 pm
- Location: Estonia
Then it is impossible to cast shodows of primitive shapes
xirtamatrix wrote:Then it is impossible in irrlicht engine to cast shadows those does not contain any mesh ????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
Laxmikant Thanvi