Facevarying data for subdivision surface

2005-02-12
2013-04-25
  • Nicholas Yue

    Nicholas Yue - 2005-02-12

    Hi,

      I am writing a RIB export plugin for the ManifoldLab project (Java base subdivision texturing tool).

      I use "facevarying" color for the Subdiv mesh, it renders fine with PRMan, Aqsis and 3Delight.

      I would like to use Pixie but was unable to get a render with "facevarying" data.

    Cheers

     
    • Okan Arikan

      Okan Arikan - 2005-02-13

         Hi Nicholas,

         Pixie supports facevarying data for subdivision surfaces. If you're getting errors, this is probably a bug. Can you send me a RIB file that screws up ?

         Thanks

         Okan

       
    • Nicholas Yue

      Nicholas Yue - 2005-02-16

      ##RenderMan RIB
      version 3.04
      Display "varying.tif" "framebuffer" "rgb"
      Projection "perspective" "fov" [45]
      Format 640 480 1
      PixelSamples 4 4
      WorldBegin
      AttributeBegin
      AttributeBegin
      Translate -2 2 8
      Declare "Cs" "facevarying color"
      SubdivisionMesh "catmull-clark" [4 4 4 4] [0 1 4 3 1 2 5 4 3 4 7 6 4 5 8 7] ["interpolateboundary"] [0 0] [] [] "P" [-1 1 0
      0 1 0 1 1 0 -1 0 0 0 0 0
      1 0 0 -1 -1 0 0 -1 0 1 -1 0]"Cs" [1 1 0 0 1 0 1 1 0 1 0 0
      0 0 0 1 0 0 1 1 0 0 1 0
      1 1 0 1 0 0 1 1 0 0 1 0
      0 0 0 1 0 0 1 1 0 0 1 0]
      AttributeEnd
      AttributeBegin
      Translate 2 -2 8
      SubdivisionMesh "catmull-clark" [4 4 4 4] [0 1 4 3 1 2 5 4 3 4 7 6 4 5 8 7] ["interpolateboundary"] [0 0] [] [] "P" [-1 1 0
      0 1 0 1 1 0 -1 0 0 0 0 0
      1 0 0 -1 -1 0 0 -1 0 1 -1 0]"Cs" [1 1 0 0 1 0 1 1 0 1 0 0
      0 0 0 1 0 0 1 1 0 0 1 0
      1 1 0 1 0 0 1 1 0 0 1 0
      0 0 0 1 0 0 1 1 0 0 1 0]
      AttributeEnd
      AttributeEnd
      WorldEnd

       
      • George Harker

        George Harker - 2005-09-06

        The default shader is a little quick and dirty in it's treatment of data.  Please explicitly attach something like matte to the surface.  You should see facevarying color coming through,

        Cheers

        George

         

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks