Print at Dec 19, 2025, 2:34:05 AM

Posted by enkonyito at Mar 24, 2023, 10:24:47 PM
Re: Sunlight simulation and variable light source
Taking into account the new values of sunDirection at each frame, the light panel turns on automatically after sunset.

Now there are two problems.

Problem 1: With a new update method
By removing the previously created light panel from the renderer, the updated light panel loses its appearance while keeping its lighting.
If it is not removed from the renderer, the updated light panels are added to the previous one which weighs down and modifies the rendering.

Problem 2: With updatedItems != null
When removing the previously created light panel from the renderer, there are the following messages:
GEOM error: Geometry "object09c1d2eb-25b8-4875-8459-a2f1a1c61250-0" was not declared yet - instance is invalid
API error: Unable to update "object09c1d2eb-25b8-4875-8459-a2f1a1c61250-0.instance" - removing
API error: Unable to declare camera "camera", name is already in use

Then
java.util.MissingFormatArgumentException: Format specifier '%s'

----------------------------------------
EnkoNyito