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 Light Mapping Issue - Possible Bug

Author
Message
Hockeykid
DBPro Tool Maker
18
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 18th Apr 2011 07:39
Hello,
Well today was my first time trying Dark Lights out. I had looked at several code examples and mine was almost identical. Though when the light maps built the object turned completely white.

I thought maybe I was doing something wrong, so I ran the .exes from the Dark Lights examples and they seemed to work fine, but when I compiled their sources they all had the "object turning white" issue.

I soon discovered that there is a solution, but a very odd solution, after building the light maps if you save your "light mapped" objects and reload them then the light maps are properly applied. I've also found that when doing this the camera position changes (either that or the objects are scaled down).

Also if you try to build light maps more than once the application will crash.

Below is some code show all of these issues. If you set SaveObjectsAndReload=0 this will show the objects turning white issue. Setting SaveObjectsAndReload=1 will show the camera moving/object scaling issue (this method uses the odd save and reload object method).
Press enter to build the light maps, if you try to build the light maps a second time you will see the application crash.



Hopefully someone whose used Dark Lights before can help.

Andrew_Neale
16
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: The Normandy SR-2
Posted: 18th Apr 2011 08:16
Hi hockeykid,

By some rather awesome coincidence, I actually experienced this same problem for the first time last night and, through trial and error, found the same solution you found; saving and reloading the light mapped object. This has never happened before now. The only 2 things that are different now are that I have Windows 7 SP1 installed (rather than just Windows 7) and that I am now using an ATI (Radeon 5770) rather than an NVIDIA (9600GT) graphics card. I don't know if it could be either of those causing the issue?

If there is an alternate solution I would also be very interested in hearing it, and will let you know if I stumble across one.

Thanks.

Hockeykid
DBPro Tool Maker
18
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 18th Apr 2011 08:54
Quote: "The only 2 things that are different now are that I have Windows 7 SP1 installed (rather than just Windows 7) and that I am now using an ATI (Radeon 5770) rather than an NVIDIA (9600GT) graphics card. I don't know if it could be either of those causing the issue?"


I'm running Windows 7 without SP1 (unless windows automatically installed it) and an Nvidia GTX 460.

Quote: "If there is an alternate solution I would also be very interested in hearing it"

I have a feeling that Lee might have changed some things in Dark Lights a while back for use in FPSC. Maybe he unintentionally broke something?

LeeBamber
TGC Lead Developer
26
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 20th Apr 2011 19:12
Hi Guys,

It is likely that changes to DL for FPSC inteferred with the main product, but those changes where only made available by the DarkLIGHTS DLL that comes with the Extras zip. Does this problem happen when you install the original installer for DarkLIGHTS and use U77 RC7?

I drink tea, and in my spare time I write software.
GreenDixy
17
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 20th Apr 2011 20:34
hey hockeykid bro i tested out your code didint crash for me i also dont have the dll`s from the extra`s (havint download to new pc) i attached a screen shot of what it shows for me

======================================

GreenDixy Productions http://GreenDixy.Com
Hockeykid
DBPro Tool Maker
18
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 21st Apr 2011 07:47 Edited at: 21st Apr 2011 07:55
Quote: "Hi Guys,

It is likely that changes to DL for FPSC inteferred with the main product, but those changes where only made available by the DarkLIGHTS DLL that comes with the Extras zip. Does this problem happen when you install the original installer for DarkLIGHTS and use U77 RC7?"


Hi Lee,
Yes, I have tried reinstalling the Dll from my product list and I am using the latest DBPro beta, but I'm still having the same issues.

Quote: "hey hockeykid bro i tested out your code didint crash for me i also dont have the dll`s from the extra`s (havint download to new pc) i attached a screen shot of what it shows for me
"


Change the "SaveObjectsAndReload=1" at the top to "SaveObjectsAndReload=0"

GreenDixy
17
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 24th Apr 2011 06:50
Quote: "Change the "SaveObjectsAndReload=1" at the top to "SaveObjectsAndReload=0""


Still the same i press enter and it built the light map

======================================

GreenDixy Productions http://GreenDixy.Com
Hockeykid
DBPro Tool Maker
18
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 24th Apr 2011 07:02
Quote: "Still the same i press enter and it built the light map"


Hmm, Are you possibly using an older version of the DarkLights Dll?

GreenDixy
17
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 24th Apr 2011 09:58
i am using witch ever one is in my history "(File Updated: 19th Jan 2010)"

======================================

GreenDixy Productions http://GreenDixy.Com
Hockeykid
DBPro Tool Maker
18
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 24th Apr 2011 11:11
Quote: "i am using witch ever one is in my history "(File Updated: 19th Jan 2010)""


Thats odd, what operating system are you running?

GreenDixy
17
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 24th Apr 2011 22:00
Acer ,win 7 64bit, 3 gigs of ram(soon to be 8), AMD Dualcore E-350, Ati Radeon HD 6310

======================================

GreenDixy Productions http://GreenDixy.Com

Login to post a reply

Server time is: 2026-07-18 06:41:27
Your offset time is: 2026-07-18 06:41:27