display coordinates


    Jul 07 2008 | 8:26 pm
    hi,
    i searched in the forum without success.
    i'm trying to make an UI for a simple video player. i need relative coordinates for each of the 4 points (corners).
    to be clearer : my display is a rectangle ABCD. i would like : xy for A, xy for B, etc. x and y equal to 0 when it's the normal size.
    how to do this, please ? thx.
    f./

    • Jul 14 2008 | 9:54 pm
      hi,
      so i tried with jit.gl.sketch. i could get what i want with quad.
      i have some questions :
      1- why does the movie play with plane and not with quad ?
      2- what are points 1 2 3 4 for the quad ? 1 = left bottom ?
      3- what is "shapeprim tri_strip" ? how to use it ? what are the others (quad_strip, etc) ?
      thx for your help.
      f./
      here's the patch :
    • Jul 16 2008 | 10:00 am
      hi,
      un petit up...
      how to play a movie as texture on "quad" using jit.gl.sketch ? pleaaaaaase. :-) f./
    • Jul 16 2008 | 1:35 pm
      > how to play a movie as texture on "quad" using jit.gl.sketch ?
      I'd like to know as well !!
      Mathieu
      ________________ Mathieu Chamagne mathieu.chamagne@free.fr
    • Jul 16 2008 | 4:09 pm
    • Jul 16 2008 | 4:33 pm
      you can use jit.gl.mesh with a 4x4 control matrix for verts and texcoords. this thread might help: https://cycling74.com/forums/index.php?t=msg&goto=138987
    • Jul 17 2008 | 12:02 pm
      thx. finally i did it like that.
      initially i wouldn't like to crop only but it's ok like that.
      if somebody knows how to deform the picture with this 4 points, it's welcomed too.
      -- elt@altern.org http://pan-etc.net --
    • Jul 17 2008 | 7:25 pm
      try this:
    • Jul 17 2008 | 9:12 pm
      It seems difficult to manipulate texcoord matrix with screentoworld message to [jit.gl.render].
      Coords are reversed and dont't follow the mouse (values given by the mouse aren't linked/mapped to texcoord.)
      What do you think about that ?
      "Screentoworld" works fine with vertex array, look at the patch.
    • Jul 17 2008 | 9:46 pm
      texcoords are s/t vals not x/y vals
    • Jul 18 2008 | 8:57 am
      > texcoords are s/t vals not x/y vals Sorry, could you be more explicit. What do you means by s/t vals?
      Thank you.
    • Jul 18 2008 | 5:05 pm
      go to the section called "Assigning Texture Coordinates"
      the redbook tells all...
    • Jul 18 2008 | 5:14 pm
      Great! Thanks rob.
    • Jul 18 2008 | 6:26 pm
      thx for your help. :-) -- elt@altern.org http://pan-etc.net --