Skip navigation
Currently Being Moderated

problem with agal and Vertex

Oct 22, 2011 10:25 PM

i tried with pixel bender 3d  and hardcoding with the same result. My code for the vertex:




agalVertexSource:String="m44 vt0, va0, vc0\n"







                        "sub vt1, vt0, vc4\n" +

                         "mov op, vt1 \n"       +

                         "mov v0, va1\n";


Context3DProgramType.VERTEX, 0, camTransform,




Context3DProgramType.VERTEX, 4, Vector.<Number>([0.5,0.0,0,0]));


All i want is a translation of the vertex (sub...) after the multiplication by a matrix (m44...). The result : the program translate the point and then multiply the result by the matrix.

  • Currently Being Moderated
    Nov 1, 2011 4:40 PM   in reply to penael

    Hi Penael,

    Giving your vertex program a shot in my test program and I get the correct order of operations (matrix multiply first, then translation).  Do you happen to have a test that can show the issue for me?  You can post it here or email if to me directly at



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points