|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Sunflow Renderer |
|
| Print at Dec 19, 2025, 4:14:29 AM | View all posts in this thread on one page |
| Posted by sree.arun.kr at Jun 17, 2014, 10:31:50 AM |
Sunflow RendererHello, SweetHome3D. I would like to discuss a feature available in Sunflow called glow/self-illumination for the future usage in SH3D. Here some sample pictures and scenes in sunflow Sunflow v0.07.2 Render output in 52 sec(above). 3dsMax v2011 MetalRay Render outputin 12 sec(above). SweetHome3D v4.4 Render output in 1 min.2 sec(above). Method Used for green ball which gives glow: Scene Details:(below) Here is an another image which is tweaked sunflow example scene(below). ![]() Working with this setting I found a one more feature in sunflow that is called mesh light(example phong003)(below) Sphere is used as a light which have 760 triangular polygon faces. So the scene consist of 760 lights. The scene took 1Hr 20Mins for rendering in sunflow. I think this technique can be used instead of "add ceiling light". By choosing a rectangular plane(2 triangle face) or a hexagon plane(6 triangle face) on top of ceiling to produce light.Feature of this light is it does not burn(/over bright) the ceiling ,light with different shape and shadows are smooth. Its script is light {light { type meshlight %light type like piont name "meshlight" %name of object which gives light emit 1 1 1 %light intencity radiance 15 %light radius samples 16 %shadow strength/bias points 4 %Light shape used vertex(plane) 0.999999940395 -1.40001678467 2.67206859589 %1st vertex xyz loction 0.999999940395 -2.93210554123 1.38649308681 %2nd vertex xyz loction -1 -2.93210530281 1.38649332523 %3rd vertex xyz loction -0.999999642372 -1.40001630783 2.6720688343 %4th vertex xyz loction triangles 2 %Light shape used polygon /faces 0 1 2 %1st Polygon arrangement 0 2 3 % 2nd Polygon arrangement } Here is my work Files.(you can drag and drop the .sc files in notepad++, save changes and then renderit in sunflow) Some scenes are created in 3dsmax2011. ![]() ---------------------------------------- ![]() |
| Posted by sree.arun.kr at Jun 18, 2014, 7:48:06 PM |
|
Re: Sunflow Renderer AmbientOcculation Render Test Test with sample and dist shader parameters used in amb-occ. Render in white light and black ambient(below). Render in black light and white ambient(below). ![]() Code behind the scene(sunflow example): shader {![]() ---------------------------------------- ![]() |
| Posted by sree.arun.kr at Jun 19, 2014, 2:39:12 PM |
|
Re: Sunflow Renderer May be Some more useful resources about sunflow. Link 1: http://www.mediafire.com/view/369a2orori1mwsg/Sunflow-Manual_2.pdf Link 2: http://www.polyquark.com/opensource/ Link 3: https://code.google.com/p/sunflowapiapi/downloads/list Link 4: http://www.timestretch.com/tag/sunflow I am still waiting here to see a comment or a responds from developers side,especially from Emmanuel Puybaret. ![]() ---------------------------------------- ![]() |
| Posted by Puybaret at Jun 19, 2014, 4:23:04 PM |
|
Re: Sunflow Renderer I am still waiting here to see a comment or a responds from developers side,especially from Emmanuel Puybaret. ![]() I already gave you my answer some time ago: Not sure it' a good idea to invest more time in SunFlow which is not maintained by its main developer anymore. Sorry ![]() The scene took 1Hr 20Mins for rendering in sunflow I just can't imagine how long it would take for a real Sweet Home 3D scene!!!---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by sree.arun.kr at Jun 23, 2014, 8:39:50 PM |
|
Re: Sunflow Renderer I already gave you my answer some time ago: sorry I became a fan of sunflow when I see the gallery (previous link 4) and User manual (Previous Link1). For a quick user like me, it is fast, simple, editable and indirect support with OBJ when compared to other render engine like python. Especially its ambient-occlusion pass is superb, may be more than v-ray.(I would like to say Thank you to SweetHome3D for introducing this render engine to me.)I think you are just skiping its some other features like preset primitives(sphere, cylinder, hair, particles), directionalspotlight, spherelight, trianglemeshlight, IrradianceCache GIEngine,multipassRendering, HDR and tga image formats.... Sunflow requires just apply its values as it need.(that I wish). SunFlow is not maintained by its main developer anymore. I think sunflow engine utilized Java3D at its peak point with the current version or a bad luck with the developer.[may I know which program that will make it as a new render engine for future in your mind.? ]I just can't imagine how long it would take for a real Sweet Home 3D scene!!! I said if the scene using a sphere as alight source then sunflow counting its vertex points and started emitting light from each it. According to smoothness of the sphere number of vertex may vary. It is an example of light source as sphere(760 vertex) that take 1Hr20Min. Instead of sphere we can use triangle(3 vertex points)mesh or rectangle(4 vertex)mesh can use as a light source which takes almost 20-30 sec.ie; For 760 vertex=760 lights take 1Hr 20Min= 80Min(4800Sec) then for 3 vertex= ((80*60)/760)*3=19sec.[6.32 sec for each light]I have a surprise for you. I found a logical error/bug that does not rendering glow(/fake light). here is the proof: ![]() There is a one more OBJ material parameter called "Ke". If Ke(emission) is derived then "illum" value become ignored and object consider as glowing. Ke is expressed in RGB form and its value normally lies '1' and '0'(no glow).Also you can go beyond '1'.It express like Ke 0.0 1000.0 0.0 //emit green glow and will appear in wider area. If Ke is not set then glow is indicated by setting illum value as zero and Kd illum 0 Kd 0.0 1000.0 0.0 I think the OBJLoader.java failed in this step , It ignores illumination value when it is zero, also does not handle a parameter 'Ke' is active. So the program always bypass these steps(condition 1 , condition 2 ) in photorenderer.java ---------------------------------------- ---------------------------------------- ![]() |
| Posted by Puybaret at Jun 24, 2014, 12:20:24 PM |
|
Re: Sunflow Renderer Don't be sorry, and have fun with SunFlow, alone or combined with Sweet Home 3D. ![]() I just wanted to insist on the fact that it's not reasonable to spend more time on a library that is not maintained, moreover if there are a few bugs in it. By the way, SunFlow doesn't use Java3D at all, and the biggest part of PhotoRenderer class consist of adapting Java3D data to SunFlow data. I know the illum 0 MTL parameter works, since it's taken it into account in SunFlow parametrization. It's just you might be the first user to try it! ![]() As you (almost) noticed in the code, the fact that a material uses illum 0 model is stored in lightingEnable property, set in OBJLoader class and read in PhotoRenderer class. But OBJLoader class doesn't read Ke values because I don't see it in MTL specifications (but maybe they are not up to date). ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by sree.arun.kr at Jun 24, 2014, 2:47:59 PM |
|
Re: Sunflow Renderer I know the illum 0 MTL parameter works, since it's taken it into account in SunFlow parametrization I don't understand SH3D, then why if I change the glowing material color or its reflection is changed then the material property become normal(no glow) with illum 2.? Is there is a way exist to create illum 0 and color change its in SH3D, without manually editing mtl file?. By he way, You don't tell me which one will be the future SH3D render engine.! But OBJLoader class doesn't read Ke values because I don't see it in MTL specifications (but maybe they are not up to date) I usually runs with 3dsMax. 3dsMax is using guruware Wavefront OBJ Exporter v0.9(Not Alias wavefront).Here you can see its property.[1] and [2] (not official I think ). 4K discussion ![]() ---------------------------------------- ![]() |
| Posted by Puybaret at Jun 30, 2014, 4:35:40 PM |
|
Re: Sunflow Renderer I don't understand SH3D, then why if I change the glowing material color or its reflection is changed then the material property become normal(no glow) with illum 2.? It's because the lightingEnabled flag isn't copied when a new material is created for a modified color.Is there is a way exist to create illum 0 and color change its in SH3D, without manually editing mtl file? Not at this moment. Please fill a bug so I keep it in mind.By he way, You don't tell me which one will be the future SH3D render engine. Yes, I already answered you.---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 19, 2025, 4:14:29 AM |