Weird dynamic lights with My3d format

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
nicesun
Posts: 9
Joined: Mon Dec 27, 2004 1:32 pm

Weird dynamic lights with My3d format

Post 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 ?
Ishtm

re: Weird dynamic lights with My3d format

Post 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
nicesun
Posts: 9
Joined: Mon Dec 27, 2004 1:32 pm

Post 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...
Ishtm

Post 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!! :)
ZDimitor
Posts: 202
Joined: Fri Jul 16, 2004 3:27 am
Location: Russia

Post by ZDimitor »

Did you try My3D Example? There are 3 dynamic lights in it. And they works well. Check it.
nicesun
Posts: 9
Joined: Mon Dec 27, 2004 1:32 pm

Post 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
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post 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
trotta

Post 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.
Post Reply