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 / [PROBLEM] SetPointLightRadius

Author
Message
Preben
AGK Studio Developer
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 3rd Dec 2016 18:04
Cant really figure out how the lights are assigned to object ?

Check screen shots.

1. Small radius , the 3 lights are working.

2. Larger radius. no lights are working.

3. Even larger , 2 lights are working.

4. Large radius , all 3 lights works.

The debug light radius objects are just a bit smaller then the actually LightRadius , to see the effect.

Does the radius NEED to hit the center of the object before light is assigned to the object ? , that dont explain why i can have 3 small radius and all light works ?

Confusing ?
best regards Preben Eriksen,

Attachments

Login to view attachments
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 5th Dec 2016 15:30
For a light to affect an object the light radius has to intersect with the object (actually mesh) radius, but that should be the case in all of these examples so something has gone wrong. I can't see any obvious mistakes in the intersection check, can you send me an example of it failing?

Login to post a reply

Server time is: 2024-11-24 22:45:42
Your offset time is: 2024-11-24 22:45:42