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 / createLightPoint issue

Author
Message
rujo
13
Years of Service
User Offline
Joined: 10th Sep 2011
Location:
Posted: 8th Nov 2013 18:56
Hi
I'm pretty new to Agk and Agk's 3D.. I know it's still in beta but..

I've created a point light and a directional light set to 0,0,0 (as i've read somewhere here) and it works fine.

the problem is when i create another point light (with a different Id) and put it somewhere else it doesnt seem to work.

the only point light that's working is the first one with Id=1

...
createLightDirectional(1,0,0,0,255,255,255)
createLightPoint(1,0,10,0,1000,255,255,255)
'this one works

createLightPoint(2,0,10,50,1000,255,255,255)
'this one doesnt work
...
29 games
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 9th Nov 2013 13:46
I believe this is because AGK's internal shaders only support a one directional light and one point light.

From what I understand, it's possible to write a shader that will allow the use of multiple lights but I have no idea how to do this so I can't be of any more help.

one of these days I'll come up with a better signature

Login to post a reply

Server time is: 2024-11-24 21:20:00
Your offset time is: 2024-11-24 21:20:00