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.

AppGameKit Classic Chat / AGK lighting system questions

Author
Message
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 6th Dec 2013 01:20 Edited at: 6th Dec 2013 01:20
does anyone know if the lighting system commands are going to include repositioning of the lights in v2?

v1 it seriously looks like I need to delete and remake every frame... (if I need them moving)

I feel goofy saying this but I just only now figured out how to use them slightly. (My hockey game has shaded characters now...OMG!) I'll update that in a week or so for the stores and once I learn a tad more about them.

my second question is.... how does the create directional light command work for those first 3 inputs.

is that the position of the light or the intensity?

and I assume the other command associated with it is the location to point the light?

im confused!

anyone got any good example codes showing usage?

lilpissywilly
AGK Developer
14
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 6th Dec 2013 18:30
First of all, "setlightPointPosition" works for me to move a point light.

Second, they are vectors. The directional light doesn't have a position, it lights everything depending on the vectors that has that shader turned on.

My hovercraft is full of eels
29 games
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 6th Dec 2013 23:38 Edited at: 6th Dec 2013 23:39
Quote: "anyone got any good example codes showing usage?"


Here (directional light only):

http://forum.thegamecreators.com/?m=forum_view&t=208085&b=41

and here (repositioning of point light and altering directional light direction vector):

http://forum.thegamecreators.com/?m=forum_view&t=207680&b=41

Hope these help.

one of these days I'll come up with a better signature
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 7th Dec 2013 08:03
thanks...i'll take a look now

Login to post a reply

Server time is: 2024-11-24 23:17:42
Your offset time is: 2024-11-24 23:17:42