IfBegin/End inside RIBArchive

2007-04-29
2013-04-25
  • AKHmetgaleev ILdar

    I've put IfBegin/IfEnd statement into rib archive, but pixie says RIB Parse error.
    Does pixie parse it inside archives?

     
    • George Harker

      George Harker - 2007-04-29

      Hi AKHmetgaleev,

      This is definitely supported.  Do you have a simple test?

      Thanks

      George

       
    • AKHmetgaleev ILdar

      It was my mistake.
      I was trying to use IfBegin/End statement inside shader parameters block.

      Just like:

           Surface "parmshow"
      IfBegin "$Option:user:passname == 'r'"
          "A" 5
      Else
          "A" 8
      IfEnd

      Outside this block all works fine.

      PS: http://akhil.nightmail.ru/path/skydome_wcache.jpg - that is what I'm doing now. It uses two pases. First is light baking, second is beauty pass.

       
      • George Harker

        George Harker - 2007-04-29

        No worries,

        Just to confirm, conditional rib support is designed to conditionalize sections of complete RIB statements, rather than portions of RIB within a statement.

        Probably the best way to think of it is like if() { } in C, rather than #if.

        Cheers

        George

         

Log in to post a comment.