How to enable shadows in irrlicht

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
huntersh2014
Posts: 12
Joined: Mon Mar 26, 2012 6:37 am

How to enable shadows in irrlicht

Post by huntersh2014 »

Hi


it seems 08.SpecialFX_vc9 is the only sample show how shadow works in irrlicht, but I noticed that that shadow is only for antimated nodes (because addShadowVolumeSceneNode() is a memeber function of CAnimatedMeshSceneNode class), my question is how to enable add shadow for other types of nodes, such as IMeshSceneNode?


Thanks!
Mel
Competition winner
Posts: 2293
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: How to enable shadows in irrlicht

Post by Mel »

You can use static meshes to make animated scene nodes. There is no overhead because the mesh has no animation, so you can create a IAnimatedMeshSceneNode from a IMesh and have the ability to project shadows the same.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Post Reply