Sunflow Renderer

by sree.arun.kr » Tue Jun 17, 2014 10:31 am

Hello, 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
Image
Sunflow v0.07.2 Render output in 52 sec(above).
Image
3dsMax v2011 MetalRay Render outputin 12 sec(above).
Image
SweetHome3D v4.4 Render output in 1 min.2 sec(above).
Method Used for green ball which gives glow:

Code: Select all

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)
Image
Here is an another image which is tweaked sunflow example scene(below).
Image

Working with this setting I found a one more feature in sunflow that is called mesh light(example phong003)(below)
Image
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

Code: Select all

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. [>:D<] [:-$]