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 Problem

Author
Message
Ordos0
21
Years of Service
User Offline
Joined: 14th Jan 2003
Location:
Posted: 15th Jan 2003 03:20
I have a sphere which moves on a matrix. That much works, but when i apply the ambient light to be darker (to get a night scene effect), it doesn't affect the matrix, it only affects the sphere. Also, i need the sphere to be a center of light, so light emits from its center onto the matrix below it.
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 15th Jan 2003 03:58
hmm, i think i understand what u mean! ok, you need to do the following:

- remove the default light (optional)

set ambient light 30
color light 0,rgb(0,0,0) 'or any other dark colour

- make your sphere light

make light 1
color light 1,rgb(255,255,255)
set light range 1,80
set point light 1,x,y,z ' at sphere position

- make your sphere shine bright

set object x,1,1,0,1,0,1,1

i think that might work, not so sure! if you move to the scene the object should be bright and the light should affect the matrix!

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
Tywald
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sweden
Posted: 15th Jan 2003 10:10
If you place a "SET MATRIX 1,1,1,1,3,1,1,1" command after you have loaded the matrix the ambient light should work on the matrix.

-Tywald
Ordos0
21
Years of Service
User Offline
Joined: 14th Jan 2003
Location:
Posted: 16th Jan 2003 01:46
thanks

Ordos0
21
Years of Service
User Offline
Joined: 14th Jan 2003
Location:
Posted: 16th Jan 2003 21:19
ok,. i tried bot of those solutions, and they worked, but here's the problem now: my matrix is randomized, so the hills tend to get in the way of the light now, is there a way to make it so the light i made is always directly above the object?

Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 16th Jan 2003 21:28
yeah, without any problem
in each loop, position the light above your object ^^

position lugne[number],object position x(?),object position y(?)+200,object position z(?)

I'm following John, but I'm not john.
Lol, it is funnier in french

Login to post a reply

Server time is: 2024-11-23 21:45:11
Your offset time is: 2024-11-23 21:45:11