3 reputation
1
bio website orbe.me
location Bilbao, Spain
age 24
visits member for 1 year, 11 months
seen Sep 4 '12 at 10:55

May
9
comment Easy way to project point onto triangle (or plane)
I haven't been able to build the projection matrix using lookUp, as far as I can tell it should indeed work, but I must have some mistake on the matrix implementation. I'll look into it later. For the time being, I've been able to build the projection matrix by setting the matrix diagonal to (1 - normal.x, 1 - normal.y, 1 - normal - z, 1). I'm not sure this works for all the normals though, so I'll probably have to change it soon enough.
May
9
awarded  Scholar
May
9
accepted Easy way to project point onto triangle (or plane)
May
8
comment Easy way to project point onto triangle (or plane)
I've tried this using the orthocenter of the triangle as the eye position, and it doesn't seem to work, what are you referring to with the center of the triangle? (based onthis implementation of lookAt)
May
8
comment Easy way to project point onto triangle (or plane)
I meant "over" as in extending the triangle into a prism along it's normal, I think in most cases the nav mesh will be aligned to a plane, but I don't want to limit my possibilities with this.
May
8
asked Easy way to project point onto triangle (or plane)