View previous topic :: View next topic |
Author |
Message |
QQQQQ Member
Joined: 24 Jul 2006 Posts: 5
|
Posted: Mon Jul 24, 2006 9:31 pm Post subject: Export Lightmap |
|
|
I just downloaded DeleD Lite. Is there a way that I can export the lightmaps as a seperate .X file? |
|
Back to top |
|
|
JPulham Member
Joined: 28 May 2006 Posts: 39
|
Posted: Tue Jul 25, 2006 11:08 am Post subject: |
|
|
The lightmaps are stored in the textures/lightmaps directory in the DeleD program files. Just copy them and put them in the texture path of your model, or in the same directory. If your level was 'map01.dmf' then you would open :
'C:\Program Files\DeleD\Textures\LightMaps\Map01\Map01_Lightmap01.bmp'
'C:\Program Files\DeleD\Textures\LightMaps\Map01\Map01_Lightmap02.bmp'
'C:\Program Files\DeleD\Textures\LightMaps\Map01\Map01_Lightmap etc .bmp' _________________ There are 10 types of people in this world, those who can read binary and those who cant...
|
|
Back to top |
|
|
QQQQQ Member
Joined: 24 Jul 2006 Posts: 5
|
Posted: Tue Jul 25, 2006 4:14 pm Post subject: |
|
|
It didn't work. The lightmap texture is there, but how do I get the object to use it? Here are some example pictures to show what I mean:
This is the first object:
This is what I need to export from DeleD, an object with just the lightmap:
Then they are combined:
|
|
Back to top |
|
|
Nocturn DeleD PRO user
Joined: 08 Aug 2004 Posts: 635
|
Posted: Tue Jul 25, 2006 4:36 pm Post subject: |
|
|
What for a programming language do you use ? Stuff like this mus be defined in your Engine. The object doesn't know that there's a lightmap.
(Use Irrlicht or Blitz 3D...)
If you use Blitz 3D, THIS may help |
|
Back to top |
|
|
QQQQQ Member
Joined: 24 Jul 2006 Posts: 5
|
Posted: Tue Jul 25, 2006 6:20 pm Post subject: |
|
|
I am using DarkBasic Pro.
Actually, in the pictures I showed on my second post, the second object is textured with the lightmap only. This appears in the object's file:
Material lightmap_1
{
1.0;1.0;1.0;1.0;;
11.3137;
0.0;0.0;0.0;;
0.012549;0.0360784;0.0109804;;
TextureFilename
{
"lm_1.bmp";
}
}
That and the other object are mixed in the game engine. The second picture shows the lightmap object as is. |
|
Back to top |
|
|
David* Member
Joined: 21 Apr 2006 Posts: 17
|
Posted: Tue Jul 25, 2006 7:43 pm Post subject: |
|
|
hey qqqqq,im having the same problem your having.did u get a lightmap on your object in dbp??
if so,please tell me what u did.. |
|
Back to top |
|
|
QQQQQ Member
Joined: 24 Jul 2006 Posts: 5
|
Posted: Tue Jul 25, 2006 9:12 pm Post subject: |
|
|
Quote: |
hey qqqqq,im having the same problem your having.did u get a lightmap on your object in dbp??
if so,please tell me what u did.. |
Not from DeleD, but you were trying to use .DBO format which includes the lightmap. I'm trying to use two objects in .X format and ghost the lightmap one. I need to do this for the flashlight shader to work properly. Also, I didn't see a way to export .DBO format from DeleD Lite.
So, is it possible to export an .X file that's textured with the lightmap only from DeleD? If not what do I need to do? |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Jul 26, 2006 5:53 am Post subject: |
|
|
I'm sorry to inform you it's not possible to export a lightmap-only .X from DeleD currently. Ghosting two .X files on top of eachother is a proprietary DB trick, and in general not a very efficient way to implement lightmapping (i.e. scene blending is less efficient than multitexturing). I don't know how the 'flashlight shader' works, but if you have control over the shader source, I'd bet reading from two different texture units is even easier than reading from two different geometry sources.
Our official support for DB is through Il Buzzo's DBO exporter, available from our plugin section. To our best knowledge, this plugin works fine with both Lite and PRO.
However, it seems like there might be some issues with this exporter and the lastest version of DBP (as reported by David*). If so, please contact Il Buzzo about them through these forums, I'm sure he'll sort things out in no time, like he did in the past.
If, for some reason, the "double-.X exporter" is truely necessary for you to accomplish your goal, you can request that one is made. Have some other people request the same thing would certainly help boost it's priority.
Hope that helps! |
|
Back to top |
|
|
QQQQQ Member
Joined: 24 Jul 2006 Posts: 5
|
Posted: Wed Jul 26, 2006 5:29 pm Post subject: |
|
|
I downloaded the plugin, and just like David* said in his topic, the lightmap did not load. But I did find a way to use the shader properly with a .dbo that has a lightmap, so as soon as the .dbo exporter is updated, I'll be able to do what I wanted to. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Thu Jul 27, 2006 4:52 pm Post subject: |
|
|
Thanks to a very swift response by Il Buzzo, the DBO exporter has just been updated. Let us know how it turns out! |
|
Back to top |
|
|
|