第9講座 惑星・土星

 
 
土星には輪がありますので記号式が少し複雑になります。 記号式内に disc { という輪を表す記号が新たに加わりますが、作画法は他と同じです。 輪記号の説明は複雑になりますので省略します。 記号式の数値を変え、土星を変化させて下さい。
 

 
 

 
土星グローバル・モザイク画像データ (実寸:1500×768 JPEG)
Produced by:galileo-giken.com
Copyright:Free
 

  
 

 
No.1の記号式
 
#declare star_count = 10000;
#declare star_scale = 0.3;
#declare star_colour_turb = 1;
#include "GALAXY.SF"

camera {
location <0,0,-6>
look_at <0,0,0>
}
light_source {
<5,-2,-5>
color rgb 2
}


union{
object {
sphere {<0 , 0 , 0> , 1.}
texture {
pigment {
image_map {
jpeg "saturn.jpg" map_type 1
}
}
}
finish {
ambient 0
}

rotate <90,0,0>
}

disc {
<0,0,0>
<0,0,0.1>
1.41
1.3
texture { pigment { rgbf <0.9,0.9,0.8, 0.8> }}
}

disc {
<0,0,0>
<0,0,0.1>
2.6
2.25

texture {
pigment {
waves
color_map{
[0 color rgb <0.4,0.4,0.4>]
[1 color rgb <0,0,0>]
}
}
finish {
ambient 0
}
scale 0.03
}
}

disc {
<0,0,0>
<0,0,0.1>
2.2
1.4099
texture {
pigment {
waves
color_map{
[0 color rgb <0.7,0.7,0.6>]
[1 color rgb <0,0,0>]
}
}
finish {
ambient 0
}
scale 0.03
}
}
disc {
<0,0,0>
<0,0,0.1>
2.7
2.61
texture { pigment { rgbf <0.1,0.1,0.1, 0.95> }}
}

rotate <120, 30, 0>
finish {
ambient 0
}
}
 
No.2の記号式
 
#declare star_count = 10000;
#declare star_scale = 0.3;
#declare star_colour_turb = 1;
#include "GALAXY.SF"

camera {
location <0,0,-6>
look_at <0,0,0>
}

light_source {
<3,2,-1>
color rgb 2
}


union{
object {
sphere {<0 , 0 , 0> , 1.}

texture {
pigment {
image_map {
jpeg "saturn.jpg" map_type 1
}
}
}
rotate <90,0,0>
finish {
ambient 0
}
}

disc {
<0,0,0>
<0,0,0.1>
1.41
1.3
texture { pigment { rgbf <0.9,0.9,0.8, 0.8> }}
}
disc {
<0,0,0>
<0,0,0.1>
2.6
2.25

texture {
pigment {
waves
color_map{
[0 color rgb <0.4,0.4,0.4>]
[1 color rgb <0,0,0>]
}
}
finish {
ambient 0.1
}
scale 0.03
}
}

disc {
<0,0,0>
<0,0,0.1>
2.2
1.4099
texture {
pigment {
waves
color_map{
[0 color rgb <0.7,0.7,0.6>]
[1 color rgb <0,0,0>]
}
}
finish {
ambient 0.1
}
scale 0.03
}
}
disc {
<0,0,0>
<0,0,0.1>
2.7
2.61
texture { pigment { rgbf <0.1,0.1,0.1, 0.95> }}
}

rotate <-175, 0, 0>
translate <0,0.4,0>
finish {
ambient 0
}
}
 
No.3の記号式
 
#declare star_count = 10000;
#declare star_scale = 0.3;
#declare star_colour_turb = 1;
#include "GALAXY.SF"

camera {
location <0,0,-6>
look_at <0,0,0>
}

light_source {
<3,10,-1>
color rgb 2
}


union{
object {
sphere {<0 , 0 , 0> , 1.}

texture {
pigment {
image_map {
jpeg "saturn.jpg" map_type 1
}
}
}
rotate <90,0,0>
finish {
ambient 0
}
}

disc {
<0,0,0>
<0,0,0.1>
1.41
1.3
texture { pigment { rgbf <0.9,0.9,0.8, 0.8> }}
}
disc {
<0,0,0>
<0,0,0.1>
2.6
2.25

texture {
pigment {
waves
color_map{
[0 color rgb <0.4,0.4,0.4>]
[1 color rgb <0,0,0>]
}
}
finish {
ambient 0.1
}
scale 0.03
}
}

disc {
<0,0,0>
<0,0,0.1>
2.2
1.4099
texture {
pigment {
waves
color_map{
[0 color rgb <0.7,0.7,0.6>]
[1 color rgb <0,0,0>]
}
}
finish {
ambient 0.1
}
scale 0.03
}
}
disc {
<0,0,0>
<0,0,0.1>
2.7
2.61
texture { pigment { rgbf <0.1,0.1,0.1, 0.95> }}
}

rotate <-100,200,90>
translate <0,0.4,0>
finish {
ambient 0
}
}