GLBasic forum

Main forum => GLBasic - en => Topic started by: Pink Panther on 2008-Jun-30

Title: Lightmaping...how?
Post by: Pink Panther on 2008-Jun-30
..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..
Title: Re: Lightmaping...how?
Post by: Kitty Hello on 2008-Jun-30
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.
Title: Re: Lightmaping...how?
Post by: Pink Panther on 2008-Jun-30
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 ...
Title: Re: Lightmaping...how?
Post by: Kitty Hello on 2008-Jun-30
It doesn't work, yet. Which programs can create lightmaps, and what file format are they using? I don't know.
Title: Re: Lightmaping...how?
Post by: Pink Panther on 2008-Jun-30
..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??
Title: Re: Lightmaping...how?
Post by: x-tra on 2008-Jun-30
gile(s) are good for that, but i doesn´t work with such maps at the moment.

Title: Re: Lightmaping...how?
Post by: Kitty Hello on 2008-Jun-30
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.
Title: Re: Lightmaping...how?
Post by: x-tra on 2008-Jun-30
look at the bottom third: http://wiki.delphigl.com/index.php/Tutorial_Lektion_7

perhaps it helps.
Title: Re: Lightmaping...how?
Post by: Kitty Hello on 2008-Jun-30
I know "how" to do it, just not what program to use.
Title: Re: Lightmaping...how?
Post by: x-tra on 2008-Jun-30
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.
Title: Re: Lightmaping...how?
Post by: Pink Panther on 2008-Jul-01
..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...
Title: Re: Lightmaping...how?
Post by: Kitty Hello on 2008-Jul-01
OK, let's see if we cam make a .b3d import filter.
Title: Re: Lightmaping...how?
Post by: Kitty Hello on 2008-Jul-01
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."
Title: Re: Lightmaping...how?
Post by: Pink Panther on 2008-Jul-01
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..
Title: Re: Lightmaping...how?
Post by: Pink Panther on 2008-Jul-31
..any news here regarding format supported??