Page 1 of 1

Dynamic light and custom scenenode.

Posted: Tue Aug 08, 2006 11:38 am
by jon167
Could anyone help me how to create a dynamic light/shadows for a custom scene nodes?

Posted: Tue Aug 08, 2006 5:06 pm
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?

addShadowVolumeSceneNode

Posted: Tue Aug 08, 2006 6:08 pm
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 :)

Posted: Tue Aug 08, 2006 7:18 pm
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).

Posted: Tue Aug 08, 2006 7:19 pm
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).