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 / DARK lights plugin, how to export to dbp with LightmapperIDE.exe (textures)

Author
Message
Orion_Uk
15
Years of Service
User Offline
Joined: 14th Jul 2010
Location: Isle Of Wight
Posted: 24th Jul 2011 15:27
Hi, the following was posted in these forums:

Posted: 23rd Mar 2008 23:26
Yes. You can also get them to load automatically with your object if you save your object as a DBO after loading the image and then applying it as a texture layer.

What I would lke to know is how to do this please?

"after loading the image and then applying it as a texture layer" ?

Could a kind person please do a code sample of how I would achieve this? I cant seem to get my lightmaps to load, just the mesh when exporting to DBO format. I know I am missing something simple but am new to this, please help, thank you.
Orion_Uk
15
Years of Service
User Offline
Joined: 14th Jul 2010
Location: Isle Of Wight
Posted: 24th Jul 2011 15:30
Sorry, double post as I forgot to check box email for notification!
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 24th Jul 2011 17:11
Quote: "Could a kind person please do a code sample of how I would achieve this?"


It´s not a Cuestion of code but the program you use for what you want. Are you using Darklights ? Have you a piece of code where we can help ? We can help you but you have to give us more details.

Cheers.

I'm not a grumpy grandpa
Orion_Uk
15
Years of Service
User Offline
Joined: 14th Jul 2010
Location: Isle Of Wight
Posted: 24th Jul 2011 17:35 Edited at: 24th Jul 2011 19:01
Hi chafari, thanks for your reply..

It is a question of code im afraid. Basically, heres the scenario again just to be clear..

I am writting a program in dark basic pro. Editing sample code as practice for learning. I have made a model in Blender 2.58 and import it in to the program that comes with Dark Lights plugin (LightmapperIDE.exe) to calculate lightmapping. It calculates the lightmap and I then saves the scene as a DBO file which also creates a lightmap folder with files for use in my DBP program. I then (using DBP) need to enter some code in to the script telling DBP where to locate the newly lightmapped scene (DBO file & textures folder)..

Sample:



Basically, I am trying to learn how to program a 1st person enviroment. I am lost between Rem load lightmap scene test and do main loop, as in what code do I put in there to get DBP to display my DBO file with textures & lightmapping!

Hope that clears up my intentions!
Orion_Uk
15
Years of Service
User Offline
Joined: 14th Jul 2010
Location: Isle Of Wight
Posted: 24th Jul 2011 18:52 Edited at: 24th Jul 2011 19:05
Its ok, I worked it out thanks

Seems now i need to learn how to scale my objects/scenes for import/export in Blender!

In Blender its size is MASSIVE but in LightmapperIDE.exe the scene is too small (with no scaling options!)
also appears too small in dpb.

I need to: scale object 4, 5000,5000,5000 to get it back to right size in DBP.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 24th Jul 2011 22:09
When we have a dbo object, we don´t need to load the texture again,as Darkbasic will load it automatically. I prefer to have the texture into the same folder where I have the project. That is true that Dark lights create a new folder and place into it all lightmaps texture ...so you just have to add this folder into your folder project. For your levels, you could try to use an easier program like mapscape or Deled or even sketchup, that are all free.

Have a look to this example with first person collision.

Cheers.

I'm not a grumpy grandpa
Orion_Uk
15
Years of Service
User Offline
Joined: 14th Jul 2010
Location: Isle Of Wight
Posted: 25th Jul 2011 02:56
Hi chafari,

Many thanks for another helpful rely

Its 1am here so I am gonna hit the sack and take a look at the code u added 2mo. Thanks for taking the time to do this for me, I will get back to you tomorrow.

Much respects

Login to post a reply

Server time is: 2026-06-10 04:13:48
Your offset time is: 2026-06-10 04:13:48