Page 1 of 1

Weird dynamic lights with My3d format

Posted: Mon May 09, 2005 8:43 am
by nicesun
Hello,

I find strange the way dynamic lighting works on My3d formats..
Lightmap are ok, but not dynamic light.

In my code, when I load the same mesh but in 3ds format, the lighting is correct, but not with My3d...

I don't have here a screenshot, but I'll post one soon.

The problem is that lighting is somewhat weird, misplaced or buggy.

Anyone has got this sort of problem ?

re: Weird dynamic lights with My3d format

Posted: Mon May 09, 2005 4:48 pm
by Ishtm
I am not sure but i think .my3d format doesn't support exports lights from max, i tell you that because i looking .my3d format specs and don't see anything about lights, i think you can add a not render object from max then export .my3d and with irrlicht engine identify that node like light and at this point you make light with code.

Here is a discussion about making game levels with 3dsmax:
http://irrlicht.sourceforge.net/phpBB2/ ... my3d#38659

I hope that become usefull to you

Posted: Mon May 09, 2005 5:05 pm
by nicesun
Thanks for replying, but I guess I hadn't explained my problem clearly

I meant dynamic light of the irrlicht engine, those which are added directly in the code (like moving lights of tutorial 11)

Here 's pictures of the problem :

Correct with 3DS (well faced, no misplacing of light)
http://airtel.free.fr/GAMEDEV/Dynamic3DS.jpg

Problem with My3D (not very clear, but visible when light is moving)
http://airtel.free.fr/GAMEDEV/DynamicMy3D.jpg

With My3D, some light appears where it should not. On Vertex where the light isn't, for example...

I hope to be able to use My3D because of the possiblity of lightmap, thus mixing them with Dynamic lightning...

Posted: Mon May 09, 2005 5:54 pm
by Ishtm
ok, now i see your problem... anyway i'am not advanced irrlicht programmer i just take this a week ago... :)

...two ideas come to my head, if you say the light is proyected in .my3d mesh but not in the right place i think is a unit proble so you can merge in a 3dmodeler .my3d with 3ds exported mesh and compare scale diferences, but i don't know how you handling your project so is hard to me help you... another way is look why material seems not being recibe light.
ok i stop speaking now and speak the people wich know about this!! :)

Posted: Sat May 14, 2005 12:31 am
by ZDimitor
Did you try My3D Example? There are 3 dynamic lights in it. And they works well. Check it.

Posted: Sat May 14, 2005 8:21 am
by nicesun
I look but i found all links to be dead ones...

http://zdimitor.nm.ru/MY3DExample.zip
http://www.danielpatton.com/afecelis/Zd ... xample.zip

:(

Anything else ?

Thanks

Posted: Sat May 14, 2005 12:41 pm
by afecelis
all Zdimitor's latest stuff is there. Those are dead acuse they're old versions. latest is 3.14

full verison includes the example:

http://www.danielpatton.com/afecelis/Zd ... binary.zip
http://www.danielpatton.com/afecelis/Zd ... 4.full.zip
http://www.danielpatton.com/afecelis/Zd ... .light.zip

Posted: Tue Jun 28, 2005 5:44 pm
by trotta
I'm more a 3d artist than a programmer, but what your problem looks like, is that all the polygons are part of the same smoothing group. seeing as Irrlicht doesnt seem to have smoothing groups, I'd say all needs doing is disableing the gouraud shading material flag for that model.