LightMapping

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
trevorparscal
Posts: 2
Joined: Wed Apr 27, 2005 11:54 am

LightMapping

Post by trevorparscal »

I am new to Irrlicht, so this is probably a really noobie post, but I have been trying to get this to work for a week now.

LightMapping. I have used Gile[s], and love the way it renders my scene's lightmaps, but have not been able to export into a format that Irrlicht can import correctly.

The only two I can even get to import geometry that get's drawn by Irrlicht are...

.3ds - looses textures, everything is black
.my3d - looses textures, everything is black

I have tried OpenGL, Software, and both DirectX 8 and 9. Nothing works.

I am still working on my models and program, which are working fine so long as I export to .3ds from 3D Studio Max and import into Irrlict, but this doesn't do any lighting, so my scene is very dull.

If there is a process that I should follow, a program I should get, or a line or two of code I should write to get this working, I would love to know what it is. Pre-Processed lighting is the only lighting I even need for the whole project, so lightmapping is a high priority.

Thanks,
Trevor Parscal
www.trevorparscal.com
Xception
Posts: 22
Joined: Tue Feb 24, 2004 10:05 am

Post by Xception »

I had the same problems with my3D and Giles.
I'm not exactly sure what the problem was but I think it was because my lightmap was not named "objnameLightingMap.tga" (objname is the name of the mesh)
Besides that I had to put all textures and lightmap in the zip archive that I used in my program but not the my3d level mesh, this had to be outside.
And I had to use "./" before the filename when I loaded the mesh.
pax_tempo

Post by pax_tempo »

you have to copy your lightmap in the lightmap directory, plus name the lightmap image + _lm

ie:

casa1.tga (color map image)
casa1_lm.tga (light map image)

the code i use for loading is:

IAnimatedMesh* mesh = smgr ->getMesh("media/casa1.my3d");
trevorparscal
Posts: 2
Joined: Wed Apr 27, 2005 11:54 am

THANKS!

Post by trevorparscal »

Thank you so much for your help. I got it working.

Irrlicht = great!
Myth
Posts: 81
Joined: Wed Apr 13, 2005 5:48 pm

Post by Myth »

How to create the lightmap tga file?
I export to my3d in 3dsmax and then make lightmaps as standalone files,
there comes a directory Lightmaps, but that directory is empty then.
In 3dsmax I've made a scene, omni light. direct spot etc.

Anyone knows how this is supposed to work?

THanks in advance,
- Myth
Post Reply