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.

Author
Message
AmbulanceGames
16
Years of Service
User Offline
Joined: 15th May 2010
Location: Salt Lake City, UT
Posted: 17th Aug 2010 00:37
Hey, so I got my DarkSTUDIO bonanza extravaganza thing in the mail and started working on a game only I'm not too sure how to go about using DarkLIGHTS. I'm sure I'm missing something simple here but I just can't light a scene to save my life. Was wondering if anyone could take a look at what I've coded so far and maybe give me some pointers. Thanks!

AmbulanceGames
16
Years of Service
User Offline
Joined: 15th May 2010
Location: Salt Lake City, UT
Posted: 17th Aug 2010 01:40
I've also tried just basic light commands to no avail. Is there anyway I can use the lights I create in 3D World Studio? Or is there a user made level editor around somewhere? I'd build my own but I'd get to the lighting part and it probably wouldn't work sadly.
Clonkex
Forum Vice President
16
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 17th Aug 2010 09:19
You have made a couple of mistakes with DarkLIGHTS. I have placed a code snippet below with the fix. Don't worry, though, I had MAJOR trouble with it when I tried using it.....don't place 'lm start' before 'set display mode'! Also, I can never quite get the standard DBPro light commands to work, so DarkLIGHTS is pretty good. Anyway, the first mistake you made was this: after calling 'm build collision data' you then need to do 'lm add light map object' for each object and then do 'lm build light maps' or 'lm build light maps thread'. I prefer the thread version because it doesn't completely halt the program while it waits to finish lightmapping and allows you to make a loading bar.

I hope this has helped, I can't find any more problems with the code but tell me if it doesn't work.

Clonkex

Making games is easy.....finishing them is a different matter.

Intel Core 2 Duo 2.8Ghz, Nvidia GeForce 9400 GT 512mb, 1gb ram.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 17th Aug 2010 17:01
Quote: "I have placed a code snippet below with the fix."


No you haven't.
Clonkex
Forum Vice President
16
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 18th Aug 2010 00:28
Oh, sorry, I was a bit sleepy. Here it is, anyway.



There you go....sorry about that.

Clonkex

Making games is easy.....finishing them is a different matter.

Intel Core 2 Duo 2.8Ghz, Nvidia GeForce 9400 GT 512mb, 1gb ram.

Login to post a reply

Server time is: 2026-07-25 12:05:23
Your offset time is: 2026-07-25 12:05:23