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 / Can anyone tell me what the DB Pro lighting commands are?

Author
Message
Robert The Robot
17
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 23rd Apr 2007 14:18
I'm currently working on a little application in DB classic (I know this is DB Pro's forum, but please bear with me) that will enable users to quickly and easily position lights within a 3D level and then export a .DBA code snippet that generates those lights.

What I would also like to do is enable the application to export a piece of code suitable for DB Pro. I understand that DB Pro is probably far in advance of DBC's lighting abilities, and that my plan may well be unworkable, but could someone tell me about DB Pro's lighting command set?

On our way 'ome, on our way 'ome...
Trowbee
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: United Kingdom
Posted: 23rd Apr 2007 20:33
Taken straight from the Pro help files, the light commands are:

MAKE LIGHT : MAKE LIGHT Light Number
DELETE LIGHT : DELETE LIGHT Light Number
SHOW LIGHT : SHOW LIGHT Light Number
HIDE LIGHT : HIDE LIGHT Light Number
COLOR LIGHT : COLOR LIGHT Light Number, Color Value
POSITION LIGHT : POSITION LIGHT Light Number, X, Y, Z
ROTATE LIGHT : ROTATE LIGHT Light Number, XAngle, YAngle, ZAngle
POINT LIGHT : POINT LIGHT Light Number, X, Y, Z
SET DIRECTIONAL LIGHT : SET DIRECTIONAL LIGHT Light Number, NX, NY, NZ
SET POINT LIGHT : SET POINT LIGHT Light Number, X, Y, Z
SET SPOT LIGHT : SET SPOT LIGHT Light Number, Inner Angle, Outer Angle
SET LIGHT RANGE : SET LIGHT RANGE Light Number, Distance
SET LIGHT TO OBJECT POSITION : SET LIGHT TO OBJECT POSITION Light Number, Object Number
SET LIGHT TO OBJECT ORIENTATION : SET LIGHT TO OBJECT ORIENTATION Light Number, Object Number
SET VECTOR3 TO LIGHT POSITION : SET VECTOR3 TO LIGHT POSITION Vector, Light Number
SET VECTOR3 TO LIGHT ROTATION : SET VECTOR3 TO LIGHT ROTATION Vector, Light Number
SET NORMALIZATION ON : SET NORMALIZATION ON
SET NORMALIZATION OFF : SET NORMALIZATION OFF
FOG ON : FOG ON
FOG OFF : FOG OFF
FOG COLOR : FOG COLOR Color Value
FOG DISTANCE : FOG DISTANCE Distance
SET AMBIENT LIGHT : SET AMBIENT LIGHT Percentage
COLOR AMBIENT LIGHT : COLOR AMBIENT LIGHT Color Value
LIGHT EXIST : Return Integer=LIGHT EXIST(Light Number)
LIGHT TYPE : Return Integer=LIGHT TYPE(Light Number)
LIGHT VISIBLE : Return Integer=LIGHT VISIBLE(Light Number)
LIGHT RANGE : Return Float=LIGHT RANGE(Light Number)
LIGHT POSITION X : Return Float=LIGHT POSITION X(Light Number)
LIGHT POSITION Y : Return Float=LIGHT POSITION Y(Light Number)
LIGHT POSITION Z : Return Float=LIGHT POSITION Z(Light Number)
LIGHT DIRECTION X : Return Float=LIGHT DIRECTION X(Light Number)
LIGHT DIRECTION Y : Return Float=LIGHT DIRECTION Y(Light Number)
LIGHT DIRECTION Z : Return Float=LIGHT DIRECTION Z(Light Number)

As far as I recall, these are the same for both pro and classic, but don't hold me to that
Robert The Robot
17
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 24th Apr 2007 13:16
Thanks Trowbee! Virtually all of them are actually in the DBC light command set!

On our way 'ome, on our way 'ome...

Login to post a reply

Server time is: 2024-09-25 21:15:53
Your offset time is: 2024-09-25 21:15:53