   Help with making cursor from texture
  Hello all,    I am have trouble wrapping my head around this, and it must either be very easy or very difficult because of been googling and find nothing really at. (in all fairness maybe my keywords are inaccurate) I want to make why I call a cursor that will sit flush with a terrain that I can use as a brush or something of the like. Just like WOW's AoE area selector. That's what I have been searching around for. My first problem was I want the cursor to blend against the terrain so using a quad or some other primitives seemed out, i then attempted to just txture the cursor directly onto the terrain and just used my quad tree p find the appropriate triangles, I hoped to just pass in calculated s, t coords; like say my cursor position was at 0,0(x,z) and the radius was .5, the triangle points are (x,z)(-1,1),(0,-1),(1,1).I calculated the s, t by:   TrianglePoint - position + radius;   Point1 = (s ,t) (-0.5,-0.5),   Point2 = (.5, 1.5),   Point3 = (1.5,-.5);This didn't work at all as plannedI figured this would put the cursor texture in the appropriate place on the triangle, but it does show up at all, I tried gl_clamp but nothing sometimes I get a wierd effec were the edge pixels fill the rest of the triangle.I my next option was projective texturing, but I can find a good tutorial or anything, just images or it's rendering and stuff.So my question boils down to, what's the best way of going about getting a cursor on the terrain like this?Thanks!
  IIRC I just used a quad with alpha blending on, that seemed to work fine.;  How did you get it to bend around the terrain? I tried but parts would get cut off ( if the terrain were hilly and the cursor was at a low spot ). Again the cursor I was going for was one flush with the terrain, WoW style. If the is what you got ten please enlighten me a bit. Thanks for the fast reply.   ;  you are looking for Projective Texture Mapping   ;Quote:Original post by Bejan0303How did you get it to bend around the terrain? I tried but parts would get cut off ( if the terrain were hilly and the cursor was at a low spot ). Again the cursor I was going for was one flush with the terrain, WoW style. If the is what you got ten please enlighten me a bit. Thanks for the fast reply.Ah no sorry, Mine was one terrain quad in size so it never had to 'bend'. Try Mollie's suggestion.   ;  Ok. Projective Texture Mapping,I ran accross that on some of my googling and could really follow any of it. I understand the logic i guess, just not how it actually works with the glTexGen(), etc.It is rather hard to find any info out there on it, if anyone is experienced in Projective Texture Mapping could you give me a quick run though?Thanks!   