Shadows

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
Acki

Shadows

Post by Acki »

Well, another question:

I exported a mesh from 3dsmax to the *.3ds format.
(great it works with multiple textures :D )
There is an light source (omni target) with shadows on.
Exporting works fine and the mesh works with Irrlicht.
But there are no shadows !?!?! (stencil buffer is true)

I found this in the Irrlicht docu:
irr::scene::IShadowVolumeSceneNode::IShadowVolumeSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id)[inline]

virtual void irr::scene::IShadowVolumeSceneNode::setMeshToRenderFrom(IMesh* mesh)[pure virtual]

I'm shure I have to use this for shadows, but how ???????
someone can post an example, please?

CU, Acki
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

DirctX8 or OpenGL? OpenGL doesn't have shadows right now.. (but if you'll look at the screenie on the main page, the new post with fog. ... Shadows is the hint Niko was giving)

The shadows should work in DirctX8.

http://irrlicht.sourceforge.net/images/shots/066.jpg
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
Acki

Post by Acki »

Hmmm,
but this is a mesh that casts a shadow on the room mesh...
I have a room mesh created with 3ds max. There are allready shadows (in 3ds max) but when I load this mesh with Irrlicht, there are no shadows...

In the screen shot, there is the shadow of the ferry, but no shadows from the room itself !!!
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

http://irrlicht.sourceforge.net/docu/cl ... de.html#a5

Check out that... addShadowVolumeSceneNode(); Read the description. Maybe you forgot to use that function...

SPECIAL EFFECTS EXAMPLE FOR FAIRY: anode->addShadowVolumeSceneNode();
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
Acki

Post by Acki »

Well, that's not what I whant...
I whant to use the lights, includet in the 3ds file !!!
Irrlicht doesn't seem to support this feature... :(

with addAnimatedMeshSceneNode there's another problem (another thread)

CU
[dx/x]=HUNT3R
Posts: 271
Joined: Sat Aug 23, 2003 5:52 pm
Location: Hurricane Central, Florida

Post by [dx/x]=HUNT3R »

yeah irrlicht cannot load the lights in from the .3ds file, you will have to create and place the lights with irrlicht in your code.
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Post by disanti »

I made a program just for this too. It loads up a 3ds file and allows you to get the positions of where you want everything. You have to place the stuff in the editor though, it doesn't directly load any objects. But with this, it is ALOT easier to place stuff. Before, I was just guessing positions and it got confusing VERY fast. So if you want to try it out, I can email it too you. It also can compile a simple file that can be read with some c++ file functions, using a for loop to place all the objects written in the file.

Hope this helps! ~ John DiSanti
________
Marijuana Sativa
Post Reply