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 / Visible lights

Author
Message
Jam
21
Years of Service
User Offline
Joined: 20th Nov 2002
Location:
Posted: 21st Nov 2002 20:38
Hi. I am writing a ship simulator (real ship, not spaceship), and would like to have navigation lights. These would be small lights you could see at a distance, but not light up the place. If you wonder what I'm getting at, look out of the window at night. You'll be able to see lights in the distance, without having much effect on the overall light levels. How can I simulate this?
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 22nd Nov 2002 00:25
It would probably be best to use a sprite or 3d model for the light, make it not sensitive to fog or ambient lighting and make it as bright as possible, thus simulating a light. You can't actually see light sources in DB, so you'll need something like this anyway. Then you can add lens flares, reflections in the water or whatever.
hexGEAR
21
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 22nd Nov 2002 17:33
yeah after all that, check out the set object command, there's a characteristic called light, if you set it to either 1 (i think) and theres a light in the scene then it glows (when coloured white or yellow). thats what i used for the lights in my game.

your birth was a blessing, sent to live and die on earth as a lesson, we each have a star all you have to do is find it, once you do, everyone who sees it will be blinded - DMX
Delta
21
Years of Service
User Offline
Joined: 15th Nov 2002
Location:
Posted: 23rd Nov 2002 13:56
I was acctualy wondering this a few days ago, but I couldnt figure it out :S

Any chance of seeing you game Hexgear?

Login to post a reply

Server time is: 2024-02-24 23:46:14
Your offset time is: 2024-02-24 23:46:14