<< mqo2rib metared 戻る RIB出力検証その2 >>

RIB出力検証

メタセコイアPythonを使ってRIB出力ができるスクリプトができた。
視野変換では、ConcatTransformを求めた。
uvマップはきちんと出るようにした。右手系での出力になります。
men_new.jpg

以下はRIB出力。レンダリングは3Delightを使用しました。レイトレーシング設定しています。

##Renderman RIB-Structure 1.0
Display "men.tif" "file" "rgba"
Display "+men.tif" "framebuffer" "rgba"

Format 640 480 1
PixelSamples 4 4
PixelFilter "catmull-rom" 3 3
ShadingRate 1

Imager "background" "background" [0.200 0.400 0.600]

Sides 1
Orientation "rh"
Projection "perspective" "fov" [9.527]
ConcatTransform [
0.586877119816 -0.615504654203 -0.526050631489 0
0 0.649705095569 -0.760186351359 0
-0.809676013129 -0.446135976409 -0.381297055217 0
-14.6153686718 -5.38463034481 1500.00000696 1
]
Scale 1 1 -1
WorldBegin
Attribute "visibility" "trace" [1]
Attribute "visibility" "transmission" ["Os"]
Attribute "visibility" "transmission" "opaque"
Attribute "light" "shadows" "on"
Attribute "trace" "displacements" [1]
LightSource "ambientlight" 0 "intensity" [ 0.1 ] "lightcolor" [ 1 1 1 ]
LightSource "distantlight" 1 "intensity" [ 3 ] "lightcolor" [ 1 1 1 ] "from" [ -1 1 -1 ] "to" [ 0 0 0 ]
LightSource "distantlight" 2 "intensity" [ 3 ] "lightcolor" [ 1 1 1 ] "from" [ 1 1 2.5 ] "to" [ 0 0 0 ]
ReadArchive "men_uv_model2.rib"
WorldEnd




MakeTexture "grade.tif" "grade.tdl" "periodic" "periodic" "gaussian" 1 1
Surface "supertexmap" "string Csmapname" "grade.tdl"
AttributeBegin
Attribute "identifier" "name" ["obj1"]
Declare "st" "facevarying float[2]"
Scale 1 1 -1
PointsPolygons
[ 3 3 3 3 ][ 1 3 2 1 2 0 4 5 1 4 1 0 ]
"P" [-50.0 20.0 0.0
50.0 20.0 0.0
-50.0 0.0 100.0
50.0 0.0 100.0
-50.0 0.0 -100.0
50.0 0.0 -100.0
]
"N" [-0.0 1.0 0.0
-0.0 1.0 0.0
0.0 0.980580675691 0.196116135138
0.0 0.980580675691 0.196116135138
-0.0 0.980580675691 -0.196116135138
-0.0 0.980580675691 -0.196116135138
]
"st" [0.995700001717 0.494610011578
0.995700001717 0.975380003452
0.514930009842 0.975380003452
0.993009984493 0.489219993353
0.512239992619 0.96999001503
0.512239992619 0.489219993353
0.520319998264 0.000369999994291
1.00109004974 0.000369999994291
1.00109004974 0.481139987707
0.520319998264 0.00576000008732
1.00109004974 0.486530005932
0.520319998264 0.486530005932 ]
AttributeEnd


  • -
  • -

<< mqo2rib metared 戻る RIB出力検証その2 >>