オブジェクトのインスタンスはできますが、
グループ化できないのでしょうか?
一歩一歩ですね。
image {
resolution 640 480
aa 1 1
samples 4
filter gaussian
}
gi {
type ambocc
bright { "sRGB nonlinear" 0.8 0.8 0.8 }
dark { "sRGB nonlinear" 0 0 0 }
samples 32
maxdist 3.0
}
%%shader
shader {
name "Yellow"
type diffuse
diff 1 1 0
}
shader {
name "Magenta"
type diffuse
diff 1 0 1
}
shader {
name sfshi.shader
type shiny
diff { "sRGB nonlinear" 0.800 0.800 0.800 }
refl 0.5
}
shader {
name floor
type diffuse
diff 0.9 0.9 0.9
}
%% 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
}
%% geometry
object {
shader floor
type plane
p 0 0 -1.75
n 0 0 1
}
object {
shader "Yellow"
type sphere
name sp1
c -1 0 0
r 1.75
}
object {
shader "Magenta"
type sphere
name sp2
c 1 0 0
r 1.75
}
instance {
name nameOfInstance
geometry sp1
transform {
rotatex 0
scaleu 1.0
translate -1.75 -4 -0.5
}
shader sfshi.shader
}
instance {
name nameOfInstance2
geometry sp2
transform {
rotatex 0
scaleu 1.0
translate -0.75 -4 -0.5
}
shader sfshi.shader
}
- -
- -