Sunflow - Global Illumination Rendering System
Aus CINEMA 4D Wiki
Inhaltsverzeichnis |
Über Sunflow
Sunflow ist ein freier Open-Source Renderer, in Java geschrieben. Im Vergleich zu anderen Renderern ist Sunflow nicht übermäßig schnell, für ein Java-Programm allerdings recht flott.
Sunflow ist sehr flexibel, nahezu jeder Aspekt des Renderings kann beeinflusst und durch eigenen Java-Code erweitert werden. Es werden verschiedene Global Illumination Algorithmen zur Beleuchtung angeboten.
Szenenformat
Der folgende Code erzeugt die bekannte Cornell Box und initiiert ein Rendering in 800x600 mit Radiosity und Caustics.
image {
resolution 800 600
aa 0 2
filter gaussian
}
trace-depths {
diff 4
refl 3
refr 2
}
photons {
caustics 1000000 kd 100 0.5
}
% uncomment this block and comment the following GI block to switch gi engines
/*
gi {
type irr-cache
samples 512
tolerance 0.01
spacing 0.05 5.0
% comment the following line to use path tracing for secondary bounces
global 1000000 grid 100 0.75
}
*/
gi {
type igi
samples 64 % number of virtual photons per set
sets 1 % number of sets (increase this to translate shadow boundaries into noise)
b 0.00003 % bias - decrease this values until bright spots dissapear
bias-samples 0 % set this >0 to make the algorithm unbiased
}
shader {
name debug_caustics
type view-caustics
}
shader {
name debug_globals
type view-global
}
shader {
name debug_gi
type view-irradiance
}
%% use these to view the effect of the individual gi components
% override debug_caustics false
% override debug_globals false
% override debug_gi false
camera {
type pinhole
eye 0 -205 50
target 0 0 50
up 0 0 1
fov 45
aspect 1.333333
}
shader {
name Grey
type diffuse
diff 0.7 0.7 0.7
}
shader {
name Blue
type diffuse
diff 0.25 0.25 0.8
}
shader {
name Red
type diffuse
diff 0.8 0.25 0.25
}
shader {
name Mirror
type mirror
refl 0.7 0.7 0.7
}
shader {
name Glass
type glass
eta 1.6
color 1 1 1
}
object {
shader none
type cornellbox
corner0 -60 -60 0
corner1 60 60 100
left 0.80 0.25 0.25
right 0.25 0.25 0.80
top 0.70 0.70 0.70
bottom 0.70 0.70 0.70
back 0.70 0.70 0.70
emit 15 15 15
samples 32
}
object {
shader Mirror
type sphere
c -30 30 20
r 20
}
object {
shader Glass
type sphere
c 28 2 20
r 20
}
Kompatibilität mit 3D-Modellern
Derzeitig unterstützte Programme (per Exporter):
