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.

Newcomers DBPro Corner / Colored lighting?

Author
Message
Cringe
21
Years of Service
User Offline
Joined: 30th Jan 2003
Location: United States
Posted: 31st Jan 2003 17:36
Does DarkBASIC (version 1) do any form of colored lighting? I want to eventually be able to alter the mood/atmosphere of a game with the game lights and music. Forgive me if this is a dumb question but I'm really new to this. I'm just planning ahead for a game project I will be working on after I learn what I'm doing well enough. Ooh yeah, how difficult would it be to use .x files as buildings on a textured matrix?
-({C})-
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 31st Jan 2003 18:38
you can color each light from 0 to 7


altering the default light here

white light
color light 0,RGB(255,255,255)

yellow light
color light 0,RGB(255,255,0)

blue light
color light 0,RGB(0,0,255)


when u want to use the other lights from 1 to 7
u need to make them first as the defualt light is already created.

after u have made them u need to adjust some things like if u want a cone of light or which position its pointing to etc..


type in the commands above to your code and have a play, also remember that if u press f1 while the mouse is blinking over a command word it will show u the instructions and have links to the other light commands for easy reference.

Cringe
21
Years of Service
User Offline
Joined: 30th Jan 2003
Location: United States
Posted: 1st Feb 2003 06:58
Sweet! Thanks, that's all I needed to know for now.

My Specs: p4 2.2gig, 786mb ddr ram, 120 gig hd, Geforce4 128mb ti4200, WindowsXP.
Admiraltrent
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: United States
Posted: 1st Feb 2003 15:38
By the way it's pretty easy to use .x format 3d models on a matrix. You just need to load, texture and position the 3d object. Things like camera collision with buildings and such can be hard but for the most part you can just cut and paste example code. Things that move such as windmill I've never tried to get working but I doubt it would be hard.

- T.I. STUDIOS -
Check us out at http://cconthenet.tripod.com.
Cringe
21
Years of Service
User Offline
Joined: 30th Jan 2003
Location: United States
Posted: 2nd Feb 2003 19:01
Cool, thanks. Yeah, I'm hoping to eventually have some animated things such as windmills and what not in my game but for now I'll just work on the matrix and model placement and see where I can go from there. I gotta say, DarkBASIC rocks. Before I heard about it I was making an attempt to learn DirectX for Visual Basic not wanting to switch to the devel language (C++).

My Specs: p4 2.2gig, 786mb ddr ram, 120 gig hd, Geforce4 128mb ti4200, WindowsXP.
Cringe
21
Years of Service
User Offline
Joined: 30th Jan 2003
Location: United States
Posted: 2nd Feb 2003 19:02
Doh! *devil* language...

My Specs: p4 2.2gig, 786mb ddr ram, 120 gig hd, Geforce4 128mb ti4200, WindowsXP.
Arrow
21
Years of Service
User Offline
Joined: 1st Jan 2003
Location: United States
Posted: 5th Feb 2003 11:23
Most professional games and programs are written in C++. It's not so bad, it just a while to understand it.

Am I a butterfly dreaming I'm a man?
Or a bowling ball dreaming I'm a plate of samishi?
Never assume that what you see or feel is real.
Cringe
21
Years of Service
User Offline
Joined: 30th Jan 2003
Location: United States
Posted: 5th Feb 2003 15:51
I know, I would actually like to learn more C++ (I took some in high school). It's just hard switching from Visual Basic to it. Hopefully I'll find the time to get into it more but in the mean time I'll settle for Dark basic.

My Specs: p4 2.2gig, 786mb ddr ram, 120 gig hd, Geforce4 128mb ti4200, WindowsXP.

Login to post a reply

Server time is: 2024-11-23 23:25:04
Your offset time is: 2024-11-23 23:25:04