Light in a B3D file doesn't 'show up'

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
Valmond
Posts: 308
Joined: Thu Apr 12, 2007 3:26 pm

Light in a B3D file doesn't 'show up'

Post by Valmond »

Hi all of you!

Just a quick question, I use 3DSMax to export items to my game and that works fine (with the 'pipeline exporter'), I just load 'em up and it works.

Is there a way to add lights to those items (say I want a torch for example) by adding it in 3sdMax and exporting it ?
I have tried but, well, nothing happens (ie. everything works OK except that the light isn't loaded into the scene graph).
The previewer of .b3d files I got shows the light though.

Any ideas?

Thanks!

ps. I use Irrlicht 1.7.1
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Light in a B3D file doesn't 'show up'

Post by mongoose7 »

It just loads the mesh. You have to do the lights yourself.
Valmond
Posts: 308
Joined: Thu Apr 12, 2007 3:26 pm

Re: Light in a B3D file doesn't 'show up'

Post by Valmond »

Is there a way to load lights from a b3d, I mean like "manually scan" the file and take appropriate actions?

Are there another format that lets you have lights loaded automatically?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Light in a B3D file doesn't 'show up'

Post by hybrid »

Only scene files would support this. For now, .irr files and collada. But other formats might follow, now that we have the scene loader API. The idea is to merge the current mesh loaders into the scene loader API and support the full scene content of such files then. But there's no work done yet for this.
Valmond
Posts: 308
Joined: Thu Apr 12, 2007 3:26 pm

Re: Light in a B3D file doesn't 'show up'

Post by Valmond »

Ok, I'll might try to add that to the b3d loader then.

Is there big differences between 1.7.1 scene loader and the latest scene loader?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Light in a B3D file doesn't 'show up'

Post by hybrid »

There's no generic scene loader interface in 1.7 at all. Check the SVN/trunk version, where you can find an ISceneLoader API and the implementation for .irr files.
Valmond
Posts: 308
Joined: Thu Apr 12, 2007 3:26 pm

Re: Light in a B3D file doesn't 'show up'

Post by Valmond »

Thanks, I guess that will be for the moment when I (finally) switches to 1.8 then :-)
Post Reply