Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / how to export .x file with lightmap?

Author
Message
hayzx
23
Years of Service
User Offline
Joined: 26th Feb 2003
Location:
Posted: 5th Sep 2003 10:14
with 3dsmax,I can export lightmap. but how I can export
lightmap with basetexture together? because there are two
different UV set. one UV for lightmap,the other for basetexture.
so I can't blend them together.
I am wondering how can do this in DBP and 3dsmax(with DirectX export)?
I know the cshop can do it,but I don't know how to do this in 3dsmax.
hayzx
23
Years of Service
User Offline
Joined: 26th Feb 2003
Location:
Posted: 5th Sep 2003 11:52
I know the reason
quote

"
most people are using cartography shop to make levels for their games and it exports 2 files (model.x and model_lm.x) The second file is the same geometry as the first. The difference is that it has uvmapping to a lightmap file. The problem is, if you have a 10,000 poly level and you load it into DB, then you have to load the light mapped version too to get the shadows. Well, that makes the level 20k instead of 10k and, of course, will slow the fps down. There are sometime some zbuffer issues with this as well.

the command built into DBPro is SET LIGHT MAPPING ON Object Number, Image Number. If you apply the light map to the regular model, it doesn't work correctly. This is because that model.x file has no uvmapping for that image. What if you did it this way though?
load object "model.x", 1
load image "model.bmp",1
SET LIGHT MAPPING ON 1, 1, "model_lm.x"
This would read the uv coordinates from the model_lm.x model and apply model.bmp to the model.x file as a light map. This would make it VERY easy to go from CS and would make levels very fast. It would also get rid of some zbuffer problems people sometimes have.

"

I think .x file can't support multiUV.
Arius Myst
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 5th Sep 2003 13:33
Can't you just bake the textures together in MAX???

¥öü ®å§Ë tHË ß|å�Ë, ¥öü måkË tHË ÇHåñgË, ¥öü ®Ëå®åñgË mË tî|| î'm §åñË

Login to post a reply

Server time is: 2026-07-23 09:14:35
Your offset time is: 2026-07-23 09:14:35