SourceForge has been redesigned. Learn more.
Close

RI_MAXDISTANCE missing (Pixie 2.1.1 Win32)

Help
2007-03-31
2013-04-25
  • Nicholas Yue

    Nicholas Yue - 2007-03-31

    Hi,

      Here is an example which shows the missing symbol problem.

      Compile this on Windows and RI_MAXDISTANCE will be flag as undefined by the Microsoft compiler.

      RI_IOR is an associated Photon map attribute (like RI_MAXDISTANCE), that is defined, I have included it here for verification.

    Regards

    8<------8<------8<------8<------8<------8<------8<------
    #include <ri.h>

    #define DEMO_BUG 1

    int main()
    {
      RtFloat dist = 2.0f;

      RiBegin("pixie.rib");
      RiWorldBegin();
      RiAttributeBegin();
    #ifdef DEMO_BUG
      RiDeclare(RI_MAXDISTANCE,"float");
      RiSurface(RI_PLASTIC,RI_MAXDISTANCE,&dist,RI_NULL);
    #else
      RiDeclare(RI_IOR,"float");
      RiSurface(RI_PLASTIC,RI_IOR,&dist,RI_NULL);
    #endif // DEMO_BUG
      RiAttributeEnd();
      RiWorldEnd();
      RiEnd();
    }
    8<------8<------8<------8<------8<------8<------8<------

     
    • George Harker

      George Harker - 2007-03-31

      Hi Nicholas,

      Sorry this didn't make it into the last release.  I've fixed RI_MAXDISTANCE so it's declared - the change is in svn.  It'll be in the next release.

      I'm really not sure why you were getting errors with the RtBasis definitions though, they are defined.  Let us know if these are still an issue.

      Cheers

      George

       
      • Nicholas Yue

        Nicholas Yue - 2007-03-31

        Hi George,

          Thanks for the RI_MAXDISTANCE fix.

          The RtBasis was my bad, my WIN32 definition did not propagate through my various Makefiles.

          All is good except RI_MAXDISTANCE which you have already fix.

          I'll update my svn trunk and do a clean build if need be.

        Regards

         

Log in to post a comment.