CL_Ptctester.rib

[index]

10th February 2009   0:4am 5sec
/home/cleong20/Desktop/vsfx419/ribs/CL_Ptctester.rib


Prob_bakingPTC with texture



Option "searchpath" "shader" "@:../shaders"
Option "searchpath" "texture" "../textures"
Option "searchpath" "archive" "../archives:Cutter_Help/templates/Rib:custom_templates/Rib"
#Baking Point cloud.
FrameBegin 1
    DisplayChannel "float _area"
    Display "bake" "it" "rgb"
    Format 500 500 1
    Projection "perspective" "fov" 20
    ShadingRate 100
    
    Translate  0 0 20
    Rotate -20 1 0 0
    Rotate 0   0 1 0
    Scale 1 1 -1
    WorldBegin
        Attribute "cull" "hidden" 0       # don't cull hidden surfaces
        Attribute "cull" "backfacing" 0   # don't cull backfacing surfaces
        Attribute "dice" "rasterorient" 0 # view-independent dicing    
        #Attribute "visibility" "trace" 1
    
        Surface "bake_areas2" "bakename" ["thirockPTC2.ptc"]
                 "texturename"["/home/cleong20/Desktop/vsfx419/textures/lclenv_ref.tex"]          
        AttributeBegin
            Scale 0.2 0.2 0.2     
            ReadArchive "/stuhome/vsfx419/archives/Thirock.rib"
  
        AttributeEnd
    
    WorldEnd
  
FrameEnd
  
#Point_cloud Render
FrameBegin 2
  
    DisplayChannel "float _area"
    Display "CLocclusion" "it" "rgb"
  
    Format 500 500 1
    Projection "perspective" "fov" 20
    ShadingRate 1
        
    Translate  0 -1 10
    Rotate -10 1 0 0
    Rotate 10   0 1 0
    Scale 1 1 -1
        
     WorldBegin    
        Surface "pointbasedocclusion" "filename" ["./thirockPTC2.ptc"]
                    
        AttributeBegin
            Scale 0.1 0.1 0.1
            ReadArchive "/stuhome/vsfx419/archives/Thirock.rib"
        AttributeEnd
        AttributeBegin
            Transform 0 0 1
            Scale 3 3 3
            Polygon "P" [-0.5 0 -0.5  -0.5 0 0.5  0.5 0 0.5  0.5 0 -0.5] 
                "st" [0 0  0 1  1 1  1 0]
        AttributeEnd
    WorldEnd
  
FrameEnd
# brickmake ./thirockPTC2.ptc ./thirock.bkm
  
FrameBegin 3
  
  
      Format 500 500 1
      ShadingInterpolation "smooth"
      #ShadingRate 100   # high shading rate
      PixelSamples 4 4
      Display "thirock" "it" "rgba"
      Projection "perspective" "fov" 20
        # LightSource "distantlight" 1 "intensity" 1.0 "from" [0 0 0] "to" [0 0 1]
  
            Translate  0 0 20
            Rotate -20 1 0 0
            Rotate 30   0 1 0
            Scale 1 1 -1
      WorldBegin
  
        # Brick map geometric primitive: large textured teapot
       
        AttributeBegin
          Rotate -20 0 1 0
          Geometry "brickmap" "filename" ["thirock.bkm"]
        AttributeEnd
  
    WorldEnd
FrameEnd
  
  
  
  
#_ RAY_Tracing
  
  
FrameBegin 4
    Display "traced" "it" "rgb"
    Format 500 500 1
    Projection "perspective" "fov" 20
    ShadingRate 1
    
    Translate  0 0 10
    Rotate -20 1 0 0
    Rotate 30   0 1 0
    Scale 1 1 -1
    WorldBegin    
        Surface "pointbasedocclusion" "filename" ["./thirockPTC2.ptc"]
                    
        AttributeBegin
            Scale 0.1 0.1 0.1
            ReadArchive "/stuhome/vsfx419/archives/Thirock.rib"
        AttributeEnd
        AttributeBegin
            Transform 0 0 1
            Scale 3 3 3
            Polygon "P" [-0.5 0 -0.5  -0.5 0 0.5  0.5 0 0.5  0.5 0 -0.5] 
                "st" [0 0  0 1  1 1  1 0]
        AttributeEnd
    WorldEnd
FrameEnd