Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 8
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 7840 times and has 7 replies Next Thread
sree.arun.kr
Advanced Member



INDIA
Joined: Oct 28, 2013
Post Count: 137
Status: Offline
Reply to this Post  Reply with Quote 
love struck Sunflow Renderer

Hello, SweetHome3D.
I would like to discuss a feature available in Sunflow called glow/self-illumination for the future usage in SH3D. blushing
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:

shader {
name "Self_illum_Color"
type constant
0.168627 0.898039 0.152941
}
object {
shader "Self_illum_Color"
type sphere
name "Sphere001"
c 34.3575 56.9843 9.33377
r 9.33377
}

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 {
type meshlight
name "meshlight"
emit 1 1 1
radiance 15
samples 16
points 4
0.999999940395 -1.40001678467 2.67206859589
0.999999940395 -2.93210554123 1.38649308681
-1 -2.93210530281 1.38649332523
-0.999999642372 -1.40001630783 2.6720688343
triangles 2
0 1 2
0 2 3
}


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. hugs shhh
----------------------------------------

----------------------------------------
[Edit 2 times, last edit by sree.arun.kr at Jun 18, 2014, 8:18:00 PM]
[Jun 17, 2014, 10:31:50 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
sree.arun.kr
Advanced Member



INDIA
Joined: Oct 28, 2013
Post Count: 137
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sunflow Renderer

AmbientOcculation Render Test thinking
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 {
name ground
type amb-occ
bright 1 0 1
dark 0 0 0
samples 128
dist 6
}

shader {
name "shader01"
type amb-occ
bright 0 0 0
dark 1 1 1
samples 100
dist 1
}

shader {
name "shader02"
type amb-occ
bright 0 0 0
dark 1 1 1
samples 100
dist 100
}

shader {
name "shader03"
type amb-occ
bright 0 0 0
dark 1 1 1
samples 100
dist 1000
}

shader {
name "shader04"
type amb-occ
bright 0 0 0
dark 1 1 1
samples 1
dist 2
}

shader {
name "shader05"
type amb-occ
bright 0 0 0
dark 1 1 1
samples 100
dist 20
}

shader {
name "shader06"
type amb-occ
bright 0 0 0
dark 1 1 1
samples 1000
dist 20
}

shader {
name "shader07"
type amb-occ
bright 0 0 0
dark 0.5 0.5 0.5
samples 2
dist 1
}

shader {
name "shader08"
type amb-occ
bright 0 0 0
dark 1 1 1
samples 10
dist 100
}

shader {
name "shader09"
type amb-occ
bright 1 1 1
dark 1 1 1
samples 20
dist 1000
}

include include/example_array.geo.sc


drooling
----------------------------------------

----------------------------------------
[Edit 1 times, last edit by sree.arun.kr at Jun 18, 2014, 7:50:04 PM]
[Jun 18, 2014, 7:48:06 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
sree.arun.kr
Advanced Member



INDIA
Joined: Oct 28, 2013
Post Count: 137
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sunflow Renderer

May be Some more useful resources about sunflow. dancing
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. drooling crying
----------------------------------------

[Jun 19, 2014, 2:39:12 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sunflow Renderer

I am still waiting here to see a comment or a responds from developers side,especially from Emmanuel Puybaret. drooling crying

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 sad

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 developer
[Jun 19, 2014, 4:23:04 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
sree.arun.kr
Advanced Member



INDIA
Joined: Oct 28, 2013
Post Count: 137
Status: Offline
Reply to this Post  Reply with Quote 
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.? cowboy ]

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". idea
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
----------------------------------------
Attachment Glow Proof.sh3d (213901 bytes) (Download count: 285) (Glow work File.)

----------------------------------------

[Jun 23, 2014, 8:39:50 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sunflow Renderer

Don't be sorry, and have fun with SunFlow, alone or combined with Sweet Home 3D. smile
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! wink
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 developer
[Jun 24, 2014, 12:20:24 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
sree.arun.kr
Advanced Member



INDIA
Joined: Oct 28, 2013
Post Count: 137
Status: Offline
Reply to this Post  Reply with Quote 
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?.
biggrin By he way, You don't tell me which one will be the future SH3D render engine.! thinking
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 monkey ).
coffee 4K discussion whistling
----------------------------------------

[Jun 24, 2014, 2:47:59 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Jun 30, 2014, 4:35:40 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

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