<< これだけで大丈夫?「情報」におけるグラフィック3 戻る Inputを使ってbackground >>

NVIDIA Gelatoでdisplacement

サンプル見ながら、ディスプレイスメント設定。
メモリたくさん消費するようです。
警告が出て、シェーダ空間?設定がわからないところです。
Gelato(R) 2.2 Release 1 winnt (Apr 17 2008 11:09:24)
(c) Copyright 2003-2008 NVIDIA Corporation. All Rights Reserved.
Elapsed: 0.0004s Done: 0% |* |#rib.generat
or.so v1.0.0.24: reading './PlaneGeom.rib'.
Elapsed: 2.8160s Done: 0% |* |WARNING: Shader "dented" displaced 0.100454 units in "common" space,
compared to displacement radius 0.1
(object name "")
WARNING: Shader "dented" displaced 0.127336 units in "common" space,
compared to displacement radius 0.1
(object name "")
Elapsed: 6.0283s Done: 100% |*******************************|
Total render time was 7.2702s (7.27 s)
displace01.jpg

#displace01.pyg
Output ("displace01.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))
#placecam 0 0 -10 0 0 0

Translate (0.00, 0.00, 8.00)
Rotate(-15,1,0,0)

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

World ()
Light ("light1", "pointlight", "float intensity", 1000, "point from", (-10, 3, -15),"string shadowname", "shadows")
Light ("light2", "pointlight", "float intensity", 300, "point from", (10, 10, -10))

PushTransform ()
Attribute ("color C", (0.2, 0.4, 0.75))
Sphere (100, -100, 100, 360)
PopTransform ()

PushTransform ()
Scale(3,3,3)
Translate (0.00, -1.0, 0.00)
Rotate (90.00, 1.00, 0.00, 0.00)
ShaderGroupBegin ()
Attribute ("color C", (1, 1, 1))
Shader ("surface", "checker", "checklayer","float stilesize",0.02,"float ttilesize",0.02,"color color2", ( 0.0, 1, 0.0 ))
Shader ("surface", "plastic", "plasticlayer")
ConnectShaders ("checklayer", "Cout", "plasticlayer", "C")
ConnectShaders ("checklayer", "fout", "plasticlayer", "Ks")
ShaderGroupEnd ()
Input("PlaneGeom.rib")
PopTransform ()

PushTransform ()
Attribute ("color C", (0.9, 0.9, 0.7))
Shader ( "surface", "metal","string envname","reflection" )
Shader ( "displacement", "dented", "float Km", 0.1 )
Attribute ("float displace:maxradius", 0.1)

PushAttributes ()
Translate ( 0, -2, 0 )
Rotate ( -90, 1, 0, 0 )
Input ("teapot.pyg")
PopAttributes ()
PopTransform ()

Render()
  • -
  • -

<< これだけで大丈夫?「情報」におけるグラフィック3 戻る Inputを使ってbackground >>