Rendering学習日記

日々、3DCGの世界は進歩しています。勉強して理解したことをまとめていきます。RenderMan互換レンダラーやグローバル・イルミネーション。いろんなことに好奇心を持って、面白くなる。目指せShader書き!!
ありがとうございます。

NVIDIA Gelato 2.2 Mango User's Guide 日本語翻訳

Gelato 2.2 Mango User's Guide 日本語翻訳のURL
貼ります。
ありがとうございます。
Maya2008以降は、対応しておりませんが・・・

http://www20.atwiki.jp/e1-605265/
  • -
  • -

NVIDIA Gelatoで影表示

復習の意味で、pygをいじってみる。
# sphere_test2.pyg

PushTransform ()
Scale(1, 1, -1)
Rotate (30, 1, 0, 0)
Rotate (5, 0, 1, 0)
Translate (0, 0, -20)
Camera ("main", "int[2] resolution", (640, 480), "string projection", "perspective", "float fov", 45)
PopTransform ()

Output ("sphere_test.tif", "tiff", "rgb", "main", "float gain", 1, "float gamma", 1, "string filter", "gaussian", "float[2] filterwidth", (2, 2))


Attribute ("string geometryset", "+shadows")

Light ("light1", "ambientlight", "float intensity", 0.1)
Light ("light2", "pointlight", "point from", (10, 10, -10), "float intensity", 800, "string shadowname" ,"shadows")
#Light ("light2", "distantlight", "point from", (1, 1, -1), "point to", (0, 0, 0), "float intensity", 1.2, "string shadowname" ,"shadows")

World ()

Attribute ("color C", (1, 0, 0))
Shader ("surface", "plastic")
PushTransform ()
Translate (0, 2, 0)
Sphere (2, -2, 2, 360)
PopTransform ()

PushAttributes ()
Attribute ("color C", (1, 1, 1))
Shader ("surface", "matte")
PushTransform ()
Scale (100, 0.5, 100)
PushTransform ()
Scale (1, 1, 1)
Patch ("linear", 2, 2, "vertex point P", (0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5))
Rotate (90, 0, 0, 1)
Patch ("linear", 2, 2, "vertex point P", (0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5))
Rotate (90, 0, 0, 1)
Patch ("linear", 2, 2, "vertex point P", (0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5))
Rotate (90, 0, 0, 1)
Patch ("linear", 2, 2, "vertex point P", (0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5))
Rotate (90, 0, 1, 0)
Patch ("linear", 2, 2, "vertex point P", (0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5))
Rotate (180, 0, 1, 0)
Patch ("linear", 2, 2, "vertex point P", (0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5))
PopTransform ()
PopTransform ()
PopAttributes ()

Render ()



sphere_test.jpg

いろいろと試してみることが大切です。
ありがとうございます。
  • -
  • -

ネットワークレンダリング Air

Airでvoluntairと、vortexを利用して試みた。

一番速いマシンをメインにして、ほかのマシンはvoluntairを起動しておく。フルに使うためにスレッド数を設定しておく。
voluntair -threads 4
共有フォルダでない場合は、各マシンに同じフォルダとファイルを設定しておくこと。当然Sitex AIRは台数分必要。

メインマシンでvortexを起動、レンダリングが始まり、速い。
C:\RIB>vortex -threads 12 Milk.rib
Vortex 1.08 - (c) 2003-9 SiTex Graphics, Inc.
Starting local worker: air -vhost hp-PC:47351 -threads 12
AIR 9.25, Windows 32-bit
Rendering "milk.tif" 640x480 rgba, 16-bit
100% complete | 0:00:12 elapsed | 83.0 M peak | 3 workers peak

それぞれのローカルは、
Starting local worker : air -vhost 192.168.0.3:47351 -threads 4
と動いていた。ネックはone passのみ。
World block1つでつくっておかなければならない。

よってcgkitだと、シャドーマップ生成でWorld blockが2つだから、ちょっと難しいか。検討します。
  • -
  • -
<< 136/184 >>