Lightmaping...how?

Previous topic - Next topic

Pink Panther

..hey guys..I saw lightmaping listed on features page....how to do that guys? Im using 3DSMAX as a modeling tool, but if not related to Max, how to do lightmaping in GLBasic?? Thank you in advance guys..

Kitty Hello

You would need a lightmap as a 2nd texture and simply set it with X_SETTEXTURE image_id, lightmap_id
However, the texture coordinates of both are the same. I should change this, maybe.

Pink Panther

Thank you very much mr. Gernot..may I know please, wich file format for geometry i have to use, in order to properly apply 2nd mapping channel? Thank you in advance ...

Kitty Hello

It doesn't work, yet. Which programs can create lightmaps, and what file format are they using? I don't know.

Pink Panther

..oh..im asking because none of listed supported 3d file formats cant support 2UV map sets...thats why im a bit confused, how to do lightmapping then, if base mesh geometry cant support 2 UV map channels...I can create lightmaps with 3dsmax and export main file as a .X  for example..but X file cant support 2 UV map sets, so..how??

x-tra

#5
gile(s) are good for that, but i doesn´t work with such maps at the moment.


Kitty Hello

I have no idea. Please see if you find some example in C/C++ and see what file format they use. I'll build an importer then.

x-tra


Kitty Hello

I know "how" to do it, just not what program to use.

x-tra

mmmm gile(s) makes lightmaps too.
i know it calculates the lightmap(texture)  with virtual lights.

but it´s not my coding/design area at this time.

Pink Panther

..Lightmaps creation arent problem..Giles, 3dsmax, Maya..whatever, you can make it with it..what is a problem is file format you can use it with (regarding use of 2nd UVmap channel)..only geometry so far I know that support 2UVmap channels is .B3D (supported by the Giles, 3dsmax, Maya, Lightwave..you name it)..other than that format, I have no idea wich one can support 2 UVmap sets...any chance to get support for this character/level geometry file format?..it will be great to have ability to blend GI maps/similar way as lightmaps/ over geometry and use of real time shadows at same time in GLBasic..very cool and handy...

Kitty Hello

OK, let's see if we cam make a .b3d import filter.

Kitty Hello

QuoteIt is not related to the Blitz3D engine's .b3d files - the 'B' here doesn't stand for anything, other than "Ben's 3D Format."

Pink Panther

B3D, I was pointing is Blitz3D format...only one I know that can support 2 UVmap sets, and have quality exporters for pretty much every 3D modeling package..it will be great to be able to use it in GLBasic, if some other format with supported 2 UV map sets doesnt exist..practically if supported GLbasic will be straight connected to 3dsmax 7,8,9, Lightwave, Maya, Giles...etc..

Pink Panther

..any news here regarding format supported??