シーン記述Sunflow v0.07.3で動きます。
image {
resolution 640 480
aa 1 1
samples 4
filter gaussian
}
%%shader
shader {
name "Yellow"
type diffuse
diff 1 1 0
}
shader {
name "shader09"
type glass
eta 1.4
color 1 1 1
}
shader {
name "shader08"
type glass
eta 2.4
color 1 1 1
}
shader {
name "Xaxis"
type diffuse
diff 1 0 0
}
shader {
name "Yaxis"
type diffuse
diff 0 1 0
}
shader {
name "Zaxis"
type diffuse
diff 0 0 1
}
shader {
name floor
type diffuse
texture "check_red10.jpg"
}
shader {
name XZ
type diffuse
texture "check_b10.jpg"
}
modifier {
name perlinName
type perlin
function 1
size 1
scale 3.5
}
%% camera
camera {
type pinhole
eye 3 -20 5
target 0 0 0
up 0 0 1
fov 25
aspect 1.3333
}
%% light sources
light {
type point
color { "sRGB nonlinear" 1.000 1.000 1.000 }
power 1500.0
p -3 -10 10
}
light {
type ibl
image galileo_probe.hdr
center 0 -1 0
up 0 0 1
lock true
samples 200
}
%% geometry
object {
shader "shader09"
/* modifier perlinName */
type sphere
name "sp1"
c 0 0 0
r 1.4
}
instance {
name nameOfInstance0
geometry "sp1"
transform {
rotatex 0
scaleu 1.0
translate 2.5 0 0
}
shader "shader08"
}
object {
shader "Xaxis"
transform {
rotatex 0
scaleu 0.2
scale 1 1 30
rotatey 90
translate 0 0 0
}
type cylinder
name Xjiku
}
object {
shader "Yaxis"
transform {
rotatex 90
scaleu 0.2
scale 1 50 1
rotatey 90
translate 0 0 0
}
type cylinder
name Yjiku
}
object {
shader "Zaxis"
transform {
scaleu 0.2
scale 1 1 30
translate 0 0 0
}
type cylinder
name Zjiku
}
object {
shader "floor"
transform {
translate 0 0 -1.5
}
type generic-mesh
name "floormesh"
points 4
-10.0 -10.0 0
10.0 -10.0 0
-10.0 10.0 0
10.0 10.0 0
triangles 2
1 3 2 1 2 0
normals vertex
0.0 0.0 1.0
0.0 0.0 1.0
0.0 0.0 1.0
0.0 0.0 1.0
uvs facevarying
1.0 0.0
1.0 1.0
0.0 1.0
1.0 0.0
0.0 1.0
0.0 0.0
}
instance {
name nameOfInstance
geometry "floormesh"
transform {
rotatex 90
scaleu 1.0
translate 0 3 0
}
shader XZ
}
- -
- -