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 / Problems with lightmapper IDE - please help

Author
Message
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 22nd Jan 2013 19:34
Hello,

When I try to do the light mapping the IDE crashed every time on Windows 7 64 bit!

When I tried to compile the light mapper IDE source code , it results in the following error -

"Could not determine parameter type of 'OPEN FILE DIALOG( root$+"\MyScenes\", "*.dbo;*.x", "Load a model to lightmap" )' at line 401."

Thanks,
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 22nd Jan 2013 21:54
do a little search, this has been discused numerous times before

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 22nd Jan 2013 22:38
So I have to get your BBB GUI plugin installed to get the source code compiled ?
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 22nd Jan 2013 22:47
And where is the download for Landscape & Map Creator ?
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 22nd Jan 2013 23:21
I have installed BBB GUI plugin v1.4.0.2 but the compilation is still giving the same error -

"Could not determine parameter type of 'OPEN FILE DIALOG( root$+"\MyScenes\", "*.dbo;*.x", "Load a model to lightmap" )' at line 401."

What plugin do I need to install ?
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 22nd Jan 2013 23:28
The BBB GUI plugin examples are also giving compilation errors -

Quote: "
Duplicate BBB WINDOW_SETMAXIMIZED in BBB GUI.dll and BBB GUI no_uskin.dll!
Command in 'BBB GUI.dll' command-table unrecognised (BBB WINDOW_SETMAXIMIZED%L%?BBB_Window_SetMaximized@@YAXPAUHWND__@@@Z%Window)

"
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 00:14
Quote: "So I have to get your BBB GUI plugin installed to get the source code compiled ?"

BBB GUI is one of the options. The command name isn't the same.
Have a look at the examples to find out the exact command name and then replace that line where you get an error in lighmapper ide

Quote: "And where is the download for Landscape & Map Creator ? "

there is no download, the program isn't finished

Quote: "I have installed BBB GUI plugin v1.4.0.2 but the compilation is still giving the same error - "

the program wasn't made with bbb gui, you have to replace that unrecognised command with the command from bbb gui plugin

Quote: "The BBB GUI plugin examples are also giving compilation errors -"

in compiler folder you downloaded there are 2 bbb gui plugins. You have to copy only one of them to your complier folder, not both.
I suggest you to copy the bbb gui no_uskin.dll. The other one needs to be used when you want to apply custom themes to your windows

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 00:39
Thank you for all the clarification. But if Light Mapper IDE was not created with BBB GUI plugin then what plugin was used originally ?

Where can I download that plugin which was originally used to code Light Mapper IDE ?
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 00:44
find my post in this thread and download the attached program.
You can use that program to open the lightmapper ide exe and see what plugins are there. You can also extract any plugin out of it and then use it to compile it.

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 18:55
I lost the original exe file while I was compiling the code. The dependency checker needs to have the original application exe.
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 19:07
My guess is that the enhancement plugin is needed for compiling the source. It has common dialogue as stated here -

http://www.thegamecreators.com/?m=view_product&id=2083

This is not fair
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 19:13
Quote: "I lost the original exe file while I was compiling the code. "

then reinstall dark lights

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 19:18
Yes I did and Enhancements.dll did show up in the required list!
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 19:22
Quote: "Yes I did and Enhancements.dll did show up in the required list!"

well, then extract it. Thats why i told you to check it with that program in the first place. Place that extracted plugin in your plugins-user folder and then compile it

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 19:31
I have extracted the dll and placed it in the plugins-user folder and then tried to compile but resulted in the error -

Could not determine parameter type of 'OPEN FILE DIALOG( root$+"\MyScenes\", "*.dbo;*.x", "Load a model to lightmap" )' at line 401.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 19:46
do you have any other enhancements plugin in your folders (plugins-user or plugins licensed). If yes, remove them temporarily.

Do you have any matrix1 utils plugins? if yes remove them all temporarily. It's possible then one of your other plugins contains that command so dbpro's compiler doesn't know which one to use

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 19:46
What do I do now
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 19:51
I do not have Enhancements.dll anywhere else. I have checked the following folders -

plugins and plugins-licensed.

I only have Enhacements.dll in plugins-user folder , since I placed the dll there manually following your instructions.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 19:51
Quote: "What do I do now"

see my post above

Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 19:52
Quote: "I do not have Enhancements.dll anywhere else"

what about matrix utils?

Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 19:53
also try placing this plugin in the same folder as the lightmapper ide and then try to run it

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 20:01
In the plugins-user folder I just noticed an .ini file which has just one line within it -

[VERIFICATION REPORT]
Enhancements.dll=NOT VALID

I think something is wrong here.

I also tried placing the dll in the same folder as the lightmapper but it did not work. Same error shown.

I do not have Matrix Utils installed in plugins-user folder or anywhere else.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 20:06
Quote: "Enhancements.dll=NOT VALID"

it doesn't matter

try placing the above plugin in the same folder as lightmapper ide and then try to run it

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 21:31
I did put the mfc71.dll in the same folder where the light mapper ide source code resides but the error still persists.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 21:36
Quote: " the error still persists. "

which error? Specify the exact error message you get

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 21:43
Could not determine parameter type of 'OPEN FILE DIALOG( root$+"\MyScenes\", "*.dbo;*.x", "Load a model to lightmap" )' at line 401.

while trying to compile the source.

Otherwise if I try to run the original LightmapperIDE.exe with the Mfc71.dll residing by its size the application opens but crashes when I try to apply light mapping by pressing ENTER.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 21:45
then replace this
Quote: "'OPEN FILE DIALOG( root$+"\MyScenes\", "*.dbo;*.x", "Load a model to lightmap" )' at line 401."


with the apropriate command from bbb gui plugin

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 22:02
return = BBB OPENFILEDIALOG ( title, filter, default extension )

title = "Load a model to lightmap"

filter = "*.dbo;*.x"

default extension = ?

and what do I do with the path - root$+"\MyScenes\" used in the original function ?
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 22:07
Quote: "and what do I do with the path - root$+"\MyScenes\" used in the original function ? "

nothing, you don't need that

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 22:17
LM Set shadow power has been removed to fix a blurring bug !

That is the error message I get now when I try to apply light mapping.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 22:18
Quote: "That is the error message I get now when I try to apply light mapping. "

comment the line where error happens

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 22:32
Well I have "//" the LM SET SHADOW POWER command and it is working now . But I cannot set the shadow power any more and that it is taking forever to do the calculation - 3/47 steps after ~10 minutes.

How do I set the initial path for the open and save dialogue of BBB GUI plugin ?
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 22:38
Quote: "Well I have "//" the LM SET SHADOW POWER command and it is working now . But I cannot set the shadow power any more and that it is taking forever to do the calculation - 3/47 steps after ~10 minutes."

have you ever used this plugin before, lightmap calculation is slow.
It it good to have dual core processor for this plugin to run faster.

Calculation speed also depends on lightmap settings (resolution, quality) and object polygon count
Quote: "

How do I set the initial path for the open and save dialogue of BBB GUI plugin ? "

you can't

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 22:41
Is there any way I can run this in window mode rather than full screen mode ?

Secondly is there any better tool available to do the same thing and also have the option to set the shadow power ?
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 22:45
Quote: "Is there any way I can run this in window mode rather than full screen mode ?"

chose windowed mode in ide setting on put set window on command somewhere at the beggining in the source code

Quote: "Secondly is there any better tool available to do the same thing and also have the option to set the shadow power ? "

mapscape.

You don't really need shadow power. That command is pretty much useless. Play a little with set ambient light color/strength and you will be able to get similar result as with set shadow power command

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 22:50
Ok thank you Brendy Boy for being my guide in this rough journey of using Light Mapper IDE. You gave me 1:1 outstanding support - just unbelievable.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 22:53
Quote: "thank you Brendy Boy"

no problem, i'm always glad to help

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 22:59
Here is the result !

When I set the ambient occlusion and other settings to highest it takes longer. Wonder how long will it take for a 2048 X 2048 terrain ?

By the way how do I apply light map to Blitz terrain using this Light Mapper IDE ?
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 23:00
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 23:19
I am facing problem with saving the .dbo file.

I am using the following modified command -

savemodel$=lower$(BBB SAVEFILEDIALOG( "Save the current model as a .DBO file", "*.dbo;", "*.dbo" ))

But whenever I click on the save button I get - " File name is not valid!" dialogue.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 23:37 Edited at: 23rd Jan 2013 23:38
Quote: "When I set the ambient occlusion and other settings to highest it takes longer."

don't use ambient occlusion, it's very slow and needs very big number of rays to get nice results

Quote: "Wonder how long will it take for a 2048 X 2048 terrain ?"

i don't think it will even work for that many polygons, it will probably crash.

also, it is worth to mention, in a few occasions when i lightmapped my terrains (which were very small 64x64) a got very bad results.
Dark lights doesn't handle terrains very well

Quote: "But whenever I click on the save button I get - " File name is not valid!" dialogue. "

please post the whole source of the lightmapper ide (the modified version). I can't find open file dialog anywhere in the code. I think i have the modified version

Here it is, try it yourself:


Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 23:49
Here is my version of code -


So what is the proper way of light mapping large Blitzwerks Terrains ? What do I use to get the best lighting effect ?

I thought ambient occlusion gives better eye-candy effects so I was using it.
Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 23rd Jan 2013 23:51
How come your code snippets are having syntax highlighting whereas mines are just black !
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Jan 2013 23:54
Quote: "Here is my version of code - "

ok, i'll have a look

Quote: "So what is the proper way of light mapping large Blitzwerks Terrains ? What do I use to get the best lighting effect ?"

i don't know, commercial games either use small terrains or dynamic shadows. Dark lights isn't good for terrains, that's a fact so unfortunately there's nothing you can do about it.

Quote: "How come your code snippets are having syntax highlighting whereas mines are just black ! "

when you post codes post them like this
[ code lang=dbp ]
[ /code ]

without the spaces

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 24th Jan 2013 00:04
ok Brendy Boy .... thanks for the info .... please take a look at my code when you have time ... I am logging off for now ... thanks again.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 24th Jan 2013 00:06
Quote: ""But whenever I click on the save button I get - " File name is not valid!" dialogue. ""


I can't compile your code, nor mine, i get plenty of error about entity element doesn't exist

try saving a value of savemodel$ to a file to see which file name you are trying to save

Juggernaut
14
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 24th Jan 2013 00:20
ok ... I will have a look at it tomorrow.

Login to post a reply

Server time is: 2026-07-07 02:39:31
Your offset time is: 2026-07-07 02:39:31