Requested api: float trace(p,dir)

Du Jie
2005-09-14
2013-04-25
  • Du Jie

    Du Jie - 2005-09-14

    Can Pixie add this API to return traced ray distance if anything hits,  to make my old shaders happy? :-)

    Regards,

    Du Jie

    //------------------- Portable function-----------------
    //----------- Hit Test -----------------------
    //r must be unit length.
    float getHitDistance(point p;vector r){
    #if defined(BMRT)||defined(AIR)
        point ph;vector nh;
        return rayhittest(p,r,ph,nh);
    #elif defined(DELIGHT)||defined(PRMAN)
        return float trace(p,r);
    #else
        return 0;// (Aqsis & RDC & PIXIE)   
    #endif
    }

     
    • Okan Arikan

      Okan Arikan - 2005-09-14

         Hi Du,

         Thanks for bringing this up. I added the requested feature. The next version of Pixie will be more compatible with 3D delight and PrMan (Pixie will have the float trace(point,point) function).

         1.4.7 will be available this weekend.

         Okan

       
      • MaxG

        MaxG - 2005-09-16

        Hi Okan!

        Do you think to fix the environment bug for next release?
        See: http://www.george-graphics.co.uk/pixiewiki/cgi-bin/wiki.pl?ProblemRIBS
        (Ambient Occlusion with Environment Map)

        Thanks,

        Massimiliano

         
        • George Harker

          George Harker - 2005-09-16

          Did you try with 1.4.6?

          I added code to deal better with environment map lookup that wrap the poles in that release.  I mentioned it in the release notes.  Can you confirm it still occurs in 1.4.6?

          Cheers

          George

           
    • MaxG

      MaxG - 2005-09-16

      Yes, i have tried with 1.4.6 and the bug still here...

      You can try using the ZIP on the PIXIE Wiki...

      Cheers,

      Massimiliano

       

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

Sign up for the SourceForge newsletter:





No, thanks