Does Pixie support nested RiBegin~RiEnd pair

Help
yaoyansi
2010-10-28
2013-04-25
  • yaoyansi
    yaoyansi
    2010-10-28

    Hi, all
    I test  this code with the *.h and *.lib files in Pixie-win-2.2.6.zip.

    int main(void)
    {

        RiBegin("a.rib");
                RiColor(Color); 

    RtContextHandle oldContext = RiGetContext();
    RiBegin("b.rib");
    RiColor(Color);
    RiEnd();
    RiContext( oldContext );

        RiEnd();

        return 0;
    }

    but the b.rib is not generated at all. It seems that the 
    nested RiBegin~RiEnd pair is not supported in Pixie2.2.6.
    And could you tell me whether the code on the trunk support this now?

    Thank you
    yaoyansi

     
  • Okan Arikan
    Okan Arikan
    2010-12-02

    Hi Yaoyansi,
    Pixie does not support nested RiBegin/RiEnd. According to the interface, this is invalid. However, you can use RiArchieve to create rib files.

    Okan