CustomSceneNode with lighting/shadows.

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
sarge
Posts: 3
Joined: Thu Aug 06, 2009 3:19 pm

CustomSceneNode with lighting/shadows.

Post by sarge »

I just finished my md5 model loader for Irrlicht, currently its based on ISceneNode class.... can anyone give me a hint how to get shadows system to work with ISceneNode? Is this 'easly' possible with ISceneNode, or I have to dig into engine to achieve this?
PS; everything what I'm doing its outside engine dll... what do you think, is possible to get lighting/shadows working with my md5 meshes without recompiling engine?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

If you wrote an md5 model loader, it should just provide an IAnimatedMesh. If it did, you could just use the IAnimatedMeshSceneNode and the IShadowVolumeSceneNode types that are built into Irrlicht. Unfortunately the shadow volume node has some issues, but it might work for your needs.

If you just want generic shadow support, it might be worth considering the use of shadow maps. BlindSide wrote a bunch of code for this. You can find it and some discussion about it here.

Travis
Post Reply