Dynamic light and custom scenenode.

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
jon167
Posts: 2
Joined: Tue Aug 08, 2006 11:32 am

Dynamic light and custom scenenode.

Post by jon167 »

Could anyone help me how to create a dynamic light/shadows for a custom scene nodes?
scarecrow
Posts: 13
Joined: Mon Jun 19, 2006 5:57 pm

Post by scarecrow »

hi

I might be terribly wrong with this but your custom sceneNode inherits from the ISceneNode class so it does have the "addShadowVolumeSceneNode" function. Can't you just call it for shadows?
jon167
Posts: 2
Joined: Tue Aug 08, 2006 11:32 am

addShadowVolumeSceneNode

Post by jon167 »

As far as I know that function (addShadowVolumeSceneNode) is located in IAnimatedMeshSceneNode -class, not in ISceneNode.

But maybe I can try to inherit my scenenode from IAnimatedMeshSceneNode-class instead using ISceneNode...?

Sorry my bad english :)
scarecrow
Posts: 13
Joined: Mon Jun 19, 2006 5:57 pm

Post by scarecrow »

i looked it up and yeah you're right. But when iheriting from i'm not sure if your custom object is stored as a Mesh so you can add Shadows with addVolumeSceneNode (but i really dont have much knowledge of this so im not sure).
scarecrow
Posts: 13
Joined: Mon Jun 19, 2006 5:57 pm

Post by scarecrow »

i looked it up and yeah you're right. But when iheriting from IAnimatedMeshSceneNode i'm not sure if your custom object is stored as a Mesh so you can add Shadows with addVolumeSceneNode (but i really dont have much knowledge of this so im not sure).
Post Reply