|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Several rendering engines in the same plugin » » » » Post: Re: Several rendering engines in the same plugin |
Print at Dec 17, 2025, 1:29:30 AM |
| Posted by Puybaret at Feb 8, 2020, 4:25:07 PM |
|
Re: Several rendering engines in the same plugin In render method, you could create a camera with a different name for each rendered frame using a name equal to UUID.randomUUID().toString(). For the background and the sun, I don't see any way in YafaRay to replace a light by another one, remove a light from the rendered scene or disable a light. You could ensure that they are created only once but this would forbid to simulate sun moves during the day. You could also compare sunDirection to its value during the previous call to render, and if it changed, delete the scene and environment with a call to finalize() and create again the environment and the scene like in YafarayRenderer constructor (this will slow down video creation process compared to SunFlow renderer, but changing time during a video is probably not a common use of the video creation tool). Good luck! ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 17, 2025, 1:29:30 AM |