Menu

What are the default parameters

Help
PhilB
2011-06-13
2013-04-25
  • PhilB

    PhilB - 2011-06-13

    Hello all,
    I've written the following code:

    Display "sphere1.tif" "framebuffer" "rgb"
    Format 600 600 1
    Projection "perspective" "fov" [30]
    Translate 0 0 10
    WorldBegin
    sphere 1 -1 1 360
    WorldEnd
    

    I obtain a nicely it sphere. But how comes, since I haven't defined any light ? Are there some default parameters ?
    Thanks!
    PhilB

     
  • PhilB

    PhilB - 2011-06-13

    In the RenderMan interface v. 3.2.1 page 41, it says: "Initially the graphics state does not contain any lights". So I understand that defining no light should yield a completely dark scene, shouldn't it ?
    Anyway, I've modified the above code the following way:

    WorldBegin
    AttributeBegin
      LightSource "ambientlight" "intensity" 0.0
      sphere 1 -1 1 360
    AttributeEnd
    WorldEnd
    

    I understand that this should set the ambient light to zero intensity…but it doesn't.
    Please help me.

     
  • Alex

    Alex - 2011-06-15

    That's probably because Pixie (and most other renderers) doesn't implement the spec to the 't', and takes a few liberties here and there.

     

Log in to post a comment.