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 Discussion / DBC 1.20 matrix lighting problem

Author
Message
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 29th Dec 2007 19:05
As I come across code I've written in the past (DBC 1.12 or 1.13 2002 version), I keep running into problems when launching them in DBC 1.2 . No matter what I try, I can't get this matrix clock to display correctly in 1.2 . It looked pretty good in 1.13 but looks terrible in 1.2 . This was an entry from a DBC challenge. Anybody got any ideas how to keep the matrix from blanching out? I've included a snapshot of how it looked in 1.13 and now in 1.2:



Enjoy your day.

Attachments

Login to view attachments
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 30th Dec 2007 00:49
i remember that entry!!!!!! it was cool


Maryville Game Developers
Visit our website at http://www.freewebs.com/maryville-game-developers/index.htm
Muddleglum
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: New Zealand
Posted: 30th Dec 2007 03:37
It seems the case ( box) to hold the clock has to be set >>
set object ambient 1,0

plus .. for some reason I can't begin to imagine, the overall ambient light has to be set to zero near the start ( after the mouse hide.)

it still doesn't look as dark as your original to me though ..
strange.
Setting the gamma lower helped a bit but that lowered contrast as well.. maybe then the lights could be adjusted someway.

hope someone sorts it out. david L.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 30th Dec 2007 04:41
@Pixelator
Quote: "i remember that entry!!!!!! it was cool"
Thank you!

@Muddleglum
Thanks Muddleglum!

It was driving me crazy. It seemed like it didn't matter how I set the global or the object lighting.

I thought I understood how to use lighting in 1.2 but there are a few nuances I wasn't aware of! Based on what you said and a few tests, it looks like the order of the light controls is very important - and maybe it's best to always set the global ambient to 0 and control it's intensity with COLOR AMBIENT LIGHT - what do you think?

The lighting controls worked better when they were called in order and before I made any additioanl lights. I tried putting the set ambient up at the top like you suggested(which worked great), then I just put it as the first call in the lighting: subroutine (which also worked). I was even able to get away with not setting the OBJECT AMBIENT of the box unless I really want it dark. The defaults seemed ok. Here's the rewritten lighting routine:



Enjoy your day.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 31st Dec 2007 18:02 Edited at: 31st Dec 2007 18:03
I would like to help, but I still have DarkBasic 1.13...

Sorry

@Latch
Isn`t this the code that came second in the DBC challenge thread? This is cool!

Oooooops!!! I accidentally formated drive c.
Muddleglum
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: New Zealand
Posted: 31st Dec 2007 22:36
That was well sorted out latch , congrats!

possibly ron (erikson) will note this and explain the steps which lead to the final setting of the value we see ?? It is quite odd that the order is important.

Hmm .. but then , classic has always had its little ways.

apart from all that.. it's still just great to see classic being extended a bit.

Login to post a reply

Server time is: 2025-06-02 09:40:16
Your offset time is: 2025-06-02 09:40:16