lightmaps

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
almighty
Posts: 8
Joined: Mon Sep 05, 2005 11:34 am
Location: roma (italy)

lightmaps

Post by almighty »

hi i have a question...........how could i pass a lightmapped scene from 3dsmax 8 to Irrlicth engine? Should i use the render to texture function in 3dsmax?

i'm computing the lighting solution in max using mentalray or the default scanline renderer, but how could i use the precomputed lighting solution? the Irrlicht egine can read these information and how? some times ago i wrote something about the 3dsmax interfacing.......someone can help me?

thanks a lot
boboS
Posts: 188
Joined: Tue Oct 18, 2005 6:36 pm
Location: Romania

Post by boboS »

As your ship is going down
ll stand by and watch you drown
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

There are a couple of ways you can do it.
The easiest way would be to use the *.my3d format, but I don't think that it works for Max8 yet.

You can still do it all by hand though, and export to *.3ds format.

Set up your materials and lighting, unwrapuvw modifier,
edit-> flatten the mapping, then save the coords.
Then do render to texture, set it up how you want it, then load the coords you just saved into the AutomaticFlattenUVs that r-t-t creates.
Then hit render on the r-t-t.
Save the image that is created, then go back to your scene, in the material editor, replace the texture of on your object with your new lightmap.
Export as 3ds.
Join us in the Irrlicht chatroom:
[url]irc://irc.freenode.net/irrlicht[/url]

I love deadlines. I like the whooshing sound they make as they fly by. -D.Adams
Post Reply