LightMap... please help!

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
alelink
Posts: 52
Joined: Tue Jan 20, 2004 8:32 pm
Location: Italy
Contact:

LightMap... please help!

Post by alelink »

Hi,
anyone know how get lightmap on a .x model?
Nessie
Posts: 14
Joined: Thu Apr 08, 2004 4:27 pm
Location: Madison, WI, USA

Post by Nessie »

Well...

Do you want dynamic self-shadowing on a moving/animating object?
Do you want simple 'baked-in' lights for this object dependant on the lights around this object in the world (and the lights don't change...)?
Do you want to just bake some shadows in using a 3D package...and then place this object in the world knowing full well that the lightmap isn't going to be really accurate?
Do you want to draw your own lightmap?
Do you just want to know how to set up the multi-texturing in IrrLicht?

So, to be honest, your question is a bit vauge. Some details to put your question into perspective might be useful.
"Build a man a fire and he'll be warm for the evening. Set a man on fire and he'll be warm for the rest of his life." -unknown
alelink
Posts: 52
Joined: Tue Jan 20, 2004 8:32 pm
Location: Italy
Contact:

Post by alelink »

Hi,
I wish to view a Lightmap on a .x model, as on a BSP level.

I've tried with material properties in Irrlicht,
but I can't see the lightmap.

You have some experience with this?

thanks
guest_ver

Post by guest_ver »

second uv channel , with the tga baked lighting and shadows assigned to it. Export with panda exporter, it allows it.(even old dx8 files, at least two channels) If you use Max.(in Max, u need to know how to set it up in material editor.And need to make a render to baked texture. if with radiosity, better)

Without it, more proble, Ultimate Unwrap supports it, but it does not generate the lightmaps, the actual tgas.

For that... Maybe free Fsrad. But I could not make it work.
alelink
Posts: 52
Joined: Tue Jan 20, 2004 8:32 pm
Location: Italy
Contact:

Post by alelink »

thanks for answer :)

are you using this method?
Irrlicht loads correctly the 2 uv set?
Irrlicht loads and display automatically both color and lightmap textures
from the .x file?

I'm using maya, but I'm not sure that exports two uv sets.
I'll try 3dsMax too.

thanks
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Post by schick »

Hehe, how much money do you have guys. Maya and Max at home :-).
Please send me an e-mail instead of a private message.
guest_ver

Post by guest_ver »

I am not a coder...


But panda exporter for 3ds Max 6 does support 2 and more uv channels (more if used dx9 type of export, not sure...)

yep, they mention in the site, at least the plugin for Max 6.


I used Max at work...and discreet have a nice full max6 trial with cs 4.2 included...

I am learning slowly Blender(2.32 now)...and hoping it gets a pair of features (x export full is getting there...) In the meantime, Character fx more or less does the job.

;)
alelink
Posts: 52
Joined: Tue Jan 20, 2004 8:32 pm
Location: Italy
Contact:

Post by alelink »

I can access a Maya license from a school where I worked last year...

I'm lucky :)

for 3dsMax....
guest_ver

Post by guest_ver »

Anyway...laughs allowed, but I'm an oil painter too...if I get too much problems at the moment I wanna do lightmaps, and got no way to generate that silly tga, I'll use my 3d painter to produce a litghting baked stuff, load in the lightmap slot in Ultimate Unwrap, assign it too the available uv channel 2 , and bang, will have even shadows as I would paint em in one of my pictures... hehe.

after all, is just that. The mistery in all this is the light generation. I can "generate" it by hand, and could be a very curious test...so much comercial tools for that out there and I hadn't thought in a silly trick like this...maybe curious..very curious...

The techy thing is only that: 2 uv channels, a tga with each(one of them in greyscales...). That's all. And of course, that the engine can eat that.

The same as in certain project used vertex colors for extra lighting detail...this could be done...and I think the radiosity renderer takes even more time than me painting.. :twisted:

Dunno, I'm crazy... :roll:

btw, if i do it, I'll give a shout here for if anyone wanna test it....
heck, that'd remove my need of using one of those so limited editors for geometry ... It'd be really nice...an x file... ultimate unwrap...and my wacom...hehe.

Too much coffe today...
bappy
Posts: 63
Joined: Fri Dec 12, 2003 10:49 am
Location: france
Contact:

Post by bappy »

sorry to break your dream but irrlicht does nt support second uv channel for mesh...
so the only thing you can have is a texture and multitextureit with a second texture (shadow) but the second texture MUST use the first uv set.
i hope niko will change that....
-----------------------------
Sans danger, pas de gloire...
http;//bappy.free.fr
-----------------------------
alelink
Posts: 52
Joined: Tue Jan 20, 2004 8:32 pm
Location: Italy
Contact:

Post by alelink »

ok, thanks,
but I'm trying, without succes, to load a second texture on a .x model.
I want use this texture as a lightmap, but nothing happen.

Anyone know how do this?
Post Reply