0 Replies Latest reply: Apr 18, 2011 9:30 AM by galanedu RSS

    Pixel bender rendering inside flash is different than preview in Toolkit 2.5

    galanedu Community Member

      Hello, I'm from Barcelona, Spain and my english is not good

       

      I'm doing with Pixel Bender Toolkit 2.5 a shader for using it in flash as blend mode.

       

      It's strange, but in the preview with loaded images inside is correct, just like I want.

       

      But when I export this pbj to use inside flash it renders different.

       

      I test a simple shader with this sentences:

       

      if(outCoord().x == outCoord().y){

           result = pixel4(0.0,1.0,0.0,1.0);
      }else{

           result = sampleNearest(background, outCoord());

      }

       

      In Toolkit draws a diagonal line (correct), but in flash outCoord().x == outCoord().y always returns true.

       

      Do you know why this is posible??

       

      Could you help me? Pleeeease

       

      Thanks

       

      Eduardo Galan