<< 最初のNVIDIA Gelatoその1 戻る NVIDIA GelatoへのReadArchive >>

最初のNVIDIA Gelatoその2

>gelato -iv -threads 4 my_first2.pyg
クアッドCPUで4スレッド使用してレンダリング速い!!
2つの球体をちょっと移動して配置する。
#my_first2.pyg
Output ("my_first02.tif", "tiff", "rgb", "camera", "float gain", 1, "float gamma", 1, "string filter", "gaussian", "float[2] filterwidth", (2, 2))
Attribute ("string projection", "perspective")
Attribute ("float fov", 45)
Attribute ("int[2] resolution", (640, 480))
Light ("light1", "ambientlight", "float intensity", 0.1)
Light ("light2", "distantlight", "point from", (1, 1, -1), "point to", (0, 0, 0)
, "float intensity", 1.5)
Translate (0, 0, 5)
World ()

PushTransform ()
Attribute ("color C", (1, 0, 0))
#Shader ( "surface", "metal","string envname","reflection" )
Shader ("surface", "plastic")
Translate ( 1.2, 0, 0)
Sphere (1, -1, 1, 360)
PopTransform ()

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

Render()


my_first02.jpg
  • -
  • -

<< 最初のNVIDIA Gelatoその1 戻る NVIDIA GelatoへのReadArchive >>