Features

Download

Online

Gallery

Blog

Sweet Home 3D Blog

This blog presents news and tips about Sweet Home 3D.

Advanced rendering plug-in

I recently released a new photo creation plug-in with additional options that will let you manage sun position and other lights.
This plug-in offers also the ability to create equirectangular images to publish amazing panoramas.

Advanced photo creation

The new AdvancedRendering plug-in is available at http://www.sweethome3d.com/plugins/AdvancedRendering-1.1.sh3p (note that this plug-in isn't compatible with Sweet Home 3D from version 3.4 and the features described in this article are directly included in Sweet Home 3D).
To test its features, install Sweet Home 3D with its installer, download the plug-in (see also updates) and install it as explained in User's guide.
Once installed, run it by choosing Tools > Create advanced photo... out of the menu (Outils > Créer une photo avancée... in French version). This new menu item will display a dialog box that looks like Create photo one:

This dialog renders images only with SunFlow rendering engine, that's why you'll find only two rendering qualities.
Thanks to the great contribution of fma, it lets you choose the date, the time, a location on the Earth and North direction to compute an image depending on Sun position.
Beside Sun position, you can also manage lights to improve rendering:

 

  • The Turn on ceiling lights check box lets you choose whether rendering engine should compute lights in the middle of each ceiling.
  • The Turn on lamp lights check box lets you choose whether lights defined in furniture library files should be turned on or off. As many of them miserably don't have a good light effect, you'll probably want to use also the 3 lights I defined in the small basicLights.sh3f file you may download here. These lights should give you more freedom to light your home since they have no 3D representation.
  • When selected, the Add sun light check box will generate an additional Sun light during the rendering; this option is helpful when you choose to display texture in the sky.

Keep in mind that all the lights generated during the rendering are still unable to go through transparent panes because of limitations in SunFlow. Nevertheless, Sun light and exterior lights are able to light the interior of a house through window panes with this plug-in, because it doesn't render them. Window panes are simply not taken into account during the rendering process and no reflection won't appear on them too.

Creating equirectangular images

The advanced rendering plug-in offers also the option to create equirectangular images when the Spherical camera check box is selected.

These images with a strange look have always a height equal to the half of their width (2/1 proportions), like the following one generated from SweetHome3DExample3.sh3d file:

 

An equirectangular image is useful to generate a panorama with Quicktime VR, Flash or Java applets.
Thanks to Open Source tools PanoSalado or PTViewer, you can create for free some beautiful panoramas like the following one:

Newer version of FlashPlayer is required. Download it by clicking icon below:

Get Adobe Flash player

Preparing panoramas with PanoSalado

PanoSalado is a tool developed in Flash/Flex. If you want to publish your own panoramas with PanoSalado like the one shown above, here are the basic steps you should follow:

  1. create an equirectangular image with the Advanced rendering plug-in and save it in a file named panorama.png,
  2. using any image tool, transform panorama.png file in a JPEG file named panorama.jpg (PanoSalado is able to manage PNG images but this small tutorial works with a JPEG image),
  3. download the simple.zip file provided by PanoSalado and unzip simple.zip in a folder named simple,
  4. display Flash Global Security Settings panel and add the full path of the simple folder in the text field of this panel,
  5. double-click on the index.html file found in simple folder to check PanoSalado runs correctly on your computer,
  6. if it worked correctly, replace the panorama.jpg image file found in images subfolder by yours, and run again PanoSalado with index.html file,
  7. if vertical lines in your image don't look straight, edit the included PanoSalado.xml file and increase the value of the attribute named segments. PanoSalado.xml contains many other parameters described here.
  8. Finally, if you want to display your panorama on the Internet, upload simple folder on your web server; of course, you may rename it and copy the HTML code contained in the index.html file in your own HTML file if required.

Preparing panoramas with PTViewer

PTViewer is a Java applet. If you want to publish your own panoramas with PTViewer like the one shown below, here are the basic steps you should follow:

  1. create an equirectangular image with the Advanced rendering plug-in and save it in a file named panorama.png,
  2. using any image tool, transform panorama.png file in a JPEG file named panorama.jpg,
  3. download the applet.zip file and unzip applet.zip in a folder named applet,
  4. download ptviewer.jar file and place it in applet folder,
  5. move your panorama.jpg file to applet folder,
  6. double-click on the index.html file found in applet folder to check PTViewer runs correctly on your computer. Once it works, you may change applet parameters mentioned in PTViewer documentation.
  7. Finally, if you want to display your panorama on the Internet, upload applet folder on your web server; of course, you may rename it and copy the HTML code contained in the index.html file in your own HTML file if required.

This applet requires Java to run: install Java on your system and activate Java in your browser.

For your information, PanoSalado is distributed under MIT license. PTViewer and Advanced rendering plug-in are distributed under GNU GPL (source code is included in the plug-in).

Have fun!

[Updates]

April 29, 2010: The version 1.1 of the plug-in was released to fix a bug in Sun position computing.
May 9, 2010: The version 1.2 was released with new options described in the forum.
May 26, 2010: The version 1.3 was released to support models at DAE/Collada format.
June 9, 2010: The version 1.4 was released to fix a memory leak and rendering problems with double-sided 3D models.
August 26, 2010: The version 1.6 was released with bug fixes, enhancements and new features.
November 30, 2010: Sweet Home 3D version 3.0 was released and includes the features of this plug-in.
Values set in the plug-in won't be copied back.
December 20, 2011: The advanced rendering plug-in is not compatible with the new features of Sweet Home 3D version 3.4. Instead, you should use included features in Sweet Home 3D itself.


Re: Advanced rendering plug-in

This is amazing! Thank you so much.

Re: Advanced rendering plug-in

This advanced (lighting) rending plugin makes such a phenomenal difference to the realism of a rendered scene that it is worthy of very high praise indeed.  I can only envisage exciting times ahead.

Thank you Emmanuel!

db4tech
Avatar: Cri

Re: Advanced rendering plug-in

That's a really great feature!

To see locally on your PC and easily a panorama in 3d you could also use Panini: get it from here: http://sourceforge.net/projects/pvqt/
If you want to install it under linux (ubuntu) follow this tutorial: http://www.flickr.com/groups/panini/discuss/72157622893257052/
Avatar: Emmanuel Puybaret

Re: Advanced rendering plug-in

I just tried Panini perspective tool with the equirectangular images generated by the plug-in, and it worked very well. Thank you for mentioning it :-)
Avatar: Jose Villavicencio

Re: Advanced rendering plug-in

Hi, Your advanced rendering plug-in is really cool and work really great. Is there any posibility of stereocopic pictures and videos? I own an viewsonic monitor with 3d support and the googles from NVIDIA, I use linux and windows, so i can test a lot this. Basic options should be there, like eyes separation, the video and picture should be saved in side by side format, so other programs can display it well on the screen. Please any question about this, I am pleased to answer. Sorry about my english.

Re: Advanced rendering plug-in

this is makes amazing to use sweet home 3d who ever developed it thanks to that person......really respect dat men

Advanced rendering plug-in

 Its a very good plug-in.

Re: Sweet Home 3D

This program is awesome for FREE!~ Takes care of all your main needs to designing your future home or redesigning a room in your current home. Just Awesome!!

Thank you so very much for your hard work and offering of the software!

Avatar: Anonymous

Re: Advanced rendering plug-in

hello there! HELP

I have a problem with the advanced rendering plug-in, when i clic on sweethome3D Tools/create a advanced photo, nothing happen, any windows won't open... I work on Mac 10.6 and with the 4.6 sweethome 3D. Please somebody have an idea of what is going on ?

thank you!!!

Avatar: Emmanuel Puybaret

Re: Advanced rendering plug-in

As explained in red in this article again, the advanced rendering plug-in is not compatible with Sweet Home 3D and its features were directly included in Sweet Home 3D.

Re: Advanced rendering plug-in

Hello,

I understand this plugin is not compatible any more with recent versions. You say that its features are now included in the software. But I can't find where it would be possible to set the date, time, timezone and coordinates... Is it still possible?

In fact I would like to get an idea of the shadows created by the sun at different times, and I understood this plugin would be good for that. What would you advise? Thanks for any suggestion.

And thank you for this awesome software.

Avatar: Emmanuel Puybaret

Re: Advanced rendering plug-in

Avatar: Anonymous

Re: Advanced rendering plug-in

When I add modes which emit light (say a luminous model made in blender), the rendered image in sh3D doesnt show any illuminations. The only lights which can be rendered are those already available in the software. How can I include luminous models in my rendered scene?

Avatar: Emmanuel Puybaret

Re: Advanced rendering plug-in

 Add Sweet Home 3D light sources in your models.

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2017 eTeks - All rights reserved