Posted: 24th May 2023 6:13
Hello everyone, I'm trying to make a dark environment to illuminate it with pointlight, however, when I add this line >
+ Code Snippet
SetFogRange(1,100) 
makes the environment dark ... however, the point light emits very weakly >
+ Code Snippet
 CreatePointLight(3 ,- 20.0, 10.0, 10.0, 200.0, 255, 210, 28)
, 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
Posted: 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.
Posted: 24th May 2023 19:07
+ Code Snippet
	SetFogMode(1)
	SetFogColor(0,0,0)
	SetFogRange(1,500)

	SetAmbientColor(0,0,0)

	CreatePointLight(3 ,-20.0, 10.0, 10.0, 200.0, 255, 210, 28)


fog is black color, and light is fire color
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.
Posted: 24th May 2023 20:13
[size=small]seems to have fixed it, thank you very much![/size]
but I have another problem in relation to these pointlights ... the shadow does not go to the right side ...

screenshot : https://prnt.sc/GpvWGUUcYZgW
Posted: 24th May 2023 22:16
Must be the sun dir, shadows follow the suns light and direction.
Posted: 25th May 2023 21:15
Try;
SetSunColor()
SetAmbientColor()