Print at Dec 18, 2025, 3:17:05 PM View all posts in this thread on one page
Posted by nasevz at Sep 22, 2011, 12:02:30 PM
Details about rendering engine
Can somebody tell me where to find details about rendering in sweet home 3D? It is for educational purposes and I need deeper explanation of how it works.
As far as I understood, Sunflow is used for level 3 and level 4 quality. What about level 1 and 2?
Which parameters are passed to Sunflow in level 3 and 4 and which shaders are used?

Posted by alied at Sep 23, 2011, 2:54:39 AM
Re: Details about rendering engine
Hi nasevz
You can find all your answers in PhotoRenderer.java[1]; specially the constructor

public PhotoRenderer(Home, Object3DFactory, Quality)

and

public void render(BufferedImage, Camera, ImageObserver)

As for levels 1 and 2, you can start by PhotoPanel.java[2], specially

private void computePhoto(Home home)


[1]http://sweethome3d.cvs.sourceforge.net/viewvc...Renderer.java?view=markup
[2]http://sweethome3d.cvs.sourceforge.net/viewvc...sion=1.47&view=markup