|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: Simulate sun position and lights/shadows » » » » Post: Re: Simulate sun position and lights/shadows |
Print at Dec 20, 2025, 10:01:59 PM |
| Posted by Puybaret at Mar 15, 2010, 6:55:51 PM |
|
Re: Simulate sun position and lights/shadows is it possible to simulate the sun position, according to the date and time, and have the lights/shadows visible in the house? No yet Is it possible to implement such feature through the plugins mecanism? You could create a plugin based on the existing PhotoPanel and PhotoRenderer classes, then change the sundir direction depending on your wish. If you want to see where will go the sun through window panes, you should also modify PhotoRenderer class in such a way it doesn't create any SunFlow object for panes because SunFlow isn't able to compute light going through panes yet. This can be achieved easily. At line 313, replace: if (appearance != null) {by : if (appearance != null) {and add the following method: /**Another way could be to design the house in SweetHome3D, export it, re-import it in Blender, and write a script for Blender (as I'm a python developer, this last step would be easier for me, but I don't know if the export/import step is easy or not). Importing to Blender a home exported with 3D view > Export to 3D view menu item works well too. Have a look to user's guide for an example. ![]() ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 20, 2025, 10:01:59 PM |