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 / Lighting...

Author
Message
cecil seaside
22
Years of Service
User Offline
Joined: 18th Sep 2002
Location:
Posted: 11th Aug 2003 05:51
I can't for the life of me figure out how to do lighting. I made two objects (floor and walls and a wooden table) for a level, and I can't get them lit. I can get spheres lit with the light, but not the 3D objects I made. They are either totally dark or bright white. Do you know what the deal is? I don't know if I should post any code or not, but I was just wondering if you knew the problem. I haven't been able to figure it out all day.
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 11th Aug 2003 06:50
rem Reset default light to spot light
set spot light 0,45,90
color light 0,rgb(255,255,0)
point light 0,0,0,0

rem Create second light
make light 1
set point light 1,10,10,-30
color light 1,rgb(255,0,0)

rem Starting position of light
x#=-6 : y#=10 : z#=-17.0


this code should work its off a darkbasic example i think you can figger it all out on your own =)

http://www.freewebs.com/ingamers
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 11th Aug 2003 07:56
Try setting normalization on.

Current Project: Eternal Destiny
Porting all files to my new computer
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 11th Aug 2003 16:22
har har har rpgamer thinks he's the shit with his 4 word answers

http://www.freewebs.com/ingamers
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 11th Aug 2003 16:32
And he is.

"Computers are useless they can only give you answers."
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 11th Aug 2003 20:14
i know but its all good maybe he can help me too hehehe

http://www.freewebs.com/ingamers

Login to post a reply

Server time is: 2024-09-20 19:45:39
Your offset time is: 2024-09-20 19:45:39