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 / SetFogRange(1,100) disable pointlight ?

Author
Message
SkinK4ir3
8
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 24th May 2023 06:13
Hello everyone, I'm trying to make a dark environment to illuminate it with pointlight, however, when I add this line >
makes the environment dark ... however, the point light emits very weakly >
, almost imperceptible ... what can I do to solve this?

with SetFogRange(1,100) commented : https://prnt.sc/aR_OnvqoY3gi

with SetFogRange(1,100) uncommented and enabled in code: https://prnt.sc/LjFr_mL9sQZj
Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 24th May 2023 14:15 Edited at: 24th May 2023 14:15
What color are your lights and what color is the fog?

If they are the same color the fog will win.
SkinK4ir3
8
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 24th May 2023 19:07


fog is black color, and light is fire color
Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 24th May 2023 19:57
Ok try setting your lights to 300 or more, I learned this but for some reason 200 is not enough .

This could be the problem.
SkinK4ir3
8
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 24th May 2023 20:13 Edited at: 24th May 2023 20:15
seems to have fixed it, thank you very much!
but I have another problem in relation to these pointlights ... the shadow does not go to the right side ...

screenshot : https://prnt.sc/GpvWGUUcYZgW
Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 24th May 2023 22:16
Must be the sun dir, shadows follow the suns light and direction.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 25th May 2023 21:15
Try;
SetSunColor()
SetAmbientColor()

Login to post a reply

Server time is: 2024-02-24 01:45:29
Your offset time is: 2024-02-24 01:45:29