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 dark lights

Author
Message
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Feb 2010 00:39 Edited at: 12th Feb 2010 00:41
Could someone see what I've done wrong here.

This is supposed to be a simple demo of Dark Lights in action but doesn't work as expected (see image and comments later in this popst):





There are three main problems:

1. No shadows - or the shadows are all in the centre of the plain.
2. The shading on the spheres doesn't seem to match the light's position - e.g. spheres A and B.
3. Noticeable artefacts on the spheres (you have to run the demo to see these and put the camera in the light's position).

I've compared the above code with the occlusion demo code that comes with Dark Lights and while there are differences I can't see the crucial ones which make the occlusion demo work and mine fail. Here's the demo that comes with Dark Lights:

Benjames8
16
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 12th Feb 2010 05:41
Im not sure what it is, but I did notice when you move something the shadows stay in the same place.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Feb 2010 11:11
They should - Darks Lights is designed to calculate a fixed light map for stationary objects and lights such as rooms, street lighting, etc. That leaves the programmer free to add a few extra dynamic lights which move around the scene - and is far more efficient than trying to recalculate every light in the scene.
griffirr
22
Years of Service
User Offline
Joined: 27th Apr 2004
Location:
Posted: 12th Feb 2010 13:37
GG you need to position the objects before setting
lm add collision object

Change this


To this
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Feb 2010 14:02
Thank you. That works perfectly.

I knew it would be something simple - but just didn't know where to look.

Looks like it's safer to create the "world" first then use the lightmapping commands as in the demo code.

It is a very nice piece of software and gives excellent results (when you use it correctly ).
griffirr
22
Years of Service
User Offline
Joined: 27th Apr 2004
Location:
Posted: 12th Feb 2010 14:06
Quote: "It is a very nice piece of software and gives excellent results (when you use it correctly ). "


Agreed!
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Feb 2010 00:21 Edited at: 14th Feb 2010 00:44
Hi friends...I bought time ago dark lights (three or four years ago), and I have used it from its own editor...I have loaded my model, added some light around, compiling lights and so on...every thing correct, ...even I have save my own dbo, and it works fine....but my cuestion is....all the examples demos, that come with the program, I can´t compile any one of them....I copy the lightmapper.dll into plug in user and in all folders and the keywords.dll into keyword folder, and all the rest in its place, and every time I try to compile, I get this error:

Could no understand command at line xxxxx.

I have given up trying...but I have seen now that you use the program....how can I use the program commans from darkbasicpro code ?



learning every day
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 14th Feb 2010 00:29
@chafari: Have you perhaps forgotten to activate the plugin?

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Feb 2010 00:32 Edited at: 14th Feb 2010 00:33
I`m not sure..., it works ok from its editor....isn´t that all ???

edited--- I remember, I had to itroduce the CD

learning every day
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Feb 2010 01:00
I had exactly the same problem on my laptop last week. Then I remembered that I had accidentally installed a second copy of DBPro in the wrong place so whenever I activate new TGC software the certificate goes in the wrong place. I merely moved the certificate into the right folder and everything then worked fine.

I was puzzled because the Dark Lights install procedure asks for you to give the folder you want - but unfortunately the activation procedure seems to ignore that.

Do the LM commands highlight correctly for you? They did for me which meant that I had the important stuff in the right place. I just couldn't use them till I moved the certificate file.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Feb 2010 01:17 Edited at: 14th Feb 2010 11:11
I`v got the certificates folder into compiler folder and into it there are to files, the "local.ini" and a big number:....



I got rid of trying because it was so frustrating to me not to find a solution four years ago, and that time I use 3DMax and Gile(s).

I just would like to try with dark lights commands

learning every day
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 14th Feb 2010 02:31
Sweet, now we can activate Dark Lights using your code!

My signature is NOT a moderator plaything! Stop changing it!
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Feb 2010 03:01
Quote: "Sweet, now we can activate Dark Lights using your code!"



Just tell me if it works to you !!..

learning every day
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Feb 2010 12:38 Edited at: 14th Feb 2010 12:39
Are you sure that's the Dark Light's certificate? I could only tell which was which by looking at the date the certificate was created.

Edit: Chafari, does the syntax highlighting work with the LM commands?
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Feb 2010 12:54
Yes...the syntax highlight with LM commands, but it give me that error when I try to compile.

I bought it time ago...I don´t know if there is a new version or if I`m doing something wrong with copy/paste all dll in correct place.

I`m goona try to re-install the program again.

cheers.

learning every day
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Feb 2010 13:12
Quote: "I`m goona try to re-install the program again"


I doubt that will help - but worth a try. The lightmapping DLL should be in the Compiler/Plugins-licensed Folder.

Your best bet might be to contact TGC using the Order and Billing Support button just above the Forum Search heading. They might be able to help you get the right activation key if you have lost it.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Feb 2010 14:03 Edited at: 14th Feb 2010 14:08
My problem is not the activation key...

I have unistall and reinstall darklights and.....surprise !! thank goodness I had made a copy of the folder before...in the installation folder there was just three subfolder:
Demos
Documentation and
Tools.../lightmapperIDE-FULL

And inside came the darklight program with the exe program and the Dba code.

In the copied folder ...there was four subfolder:
Compiler
Editor
Help
Projects.../darklighs ....and inside

Demos
Documentation
Tools....and so on but the compiler , Editor and Help folder where Not in this last inatallation.

The program darklight start with no problem at all, and save to dbo, and don´t ask for any activation key...so the problem is just when i try to execute any of the demos.

Tired, I introduce the darkbasic Pro CD and try to certificate the copy, and every thing was correct.

I remember , time ago when I installed the darklights, I had to copy the dll and paste it in plug in user I think....eeeer well I paste not only in plugin user but in all folder of my PC...and the same with the editor keywords, ....

My Question is ...Do I have to do that manually....or the installation will do it automatically...???

Just a simple thing is driving me crazy .

cheers.

learning every day
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Feb 2010 15:12
Should be automatic when you install.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Feb 2010 19:46
Thanks for all you help and your time...I got in contact with TGC...just waiting for any answer.

cheers.

learning every day
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Feb 2010 21:05
You're welcome. Let us know how you get on.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Feb 2010 21:06
OK I will.


cheers.

learning every day
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 23rd Mar 2010 14:18
Any news on this as I just bought Dark Lights and it won't compile saying "licenced plugin is not recognised by the compiler"!

Might save me waiting (and waiting) to hear back from TGC...?

Login to post a reply

Server time is: 2026-07-26 21:12:23
Your offset time is: 2026-07-26 21:12:23