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.

Dark GDK / add light

Author
Message
krolik
16
Years of Service
User Offline
Joined: 20th Mar 2008
Location: Poland
Posted: 21st Jul 2008 19:28
Hi

Im trying add new light to my game. This light must be on player position.



in loop



I tried :
dbSetObjectSpecular ( 888,0 );
dbSetNormalizationOn ( );
dbSetObjectSpecularPower ( 888, 70 ) ;
dbSetObjectLight ( 888, 0 ) ;

nr 888 is level number and nr 2 is player number.
I dont know haw to add this light i tried, tried and nothing :/

Please if you can make small sample how to do it
Sorry for my english
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 24th Jul 2008 12:10
I think you need to add dbPositionLight() after dbMakeLight()


POSITION LIGHT Light Number, X, Y, Z

This command will position an existing light within the scene. Only spot lights and point lights can make use of this
command. The light number must be specified using an integer value. The coordinates must be specified using real values.

Login to post a reply

Server time is: 2024-11-20 17:27:23
Your offset time is: 2024-11-20 17:27:23