Search:

Type: Posts; User: Lesshardtofind

Search: Search took 0.01 seconds.

  1. Wow don't know how such a simple formula LERP...

    Wow don't know how such a simple formula
    LERP
    pu = p0 + (p1 - p0) * u

    where
    pu - result
    p0 - start
    p1 - finish
    u - progress
  2. Vector3 IntersectionPoint(Triangle ColTri,...

    Vector3 IntersectionPoint(Triangle ColTri, Vector3 CameraPos){
    float a = DotProduct(Normal(ColTri), Vector3(0, -1, 0));
    if(a == 0)
    return CameraPos;
    Vector3 Temp;
    Temp.X =...
  3. Nah I just am being super dense on this one.......

    Nah I just am being super dense on this one.... Might be that 17.5hr shift yesterday killed some brain cells, but you are loosing me with D. Sorry I never took calculus or physics so some of this...
  4. Well when I was at work I thought it looked...

    Well when I was at work I thought it looked simple. I've almost written all the functions needed to get this equation you posted to work, but I'm having some issues here


    return rayPos - rayDir...
  5. Oh lol

    Oh lol
  6. Nice that's short. Do you have a suggestion for...

    Nice that's short. Do you have a suggestion for telling which of the two triangles on the quad the camera is above? Or should I just go off that stack overflow link I found?

    One other...
  7. Right that is the equation I use to get the index...

    Right that is the equation I use to get the index in the map that has the height value. But remember the values represent corner heights and not the faces in between.

    So you still have to use the...
  8. Think I got it! First to find the triangle the...

    Think I got it! First to find the triangle the camera is on I can remove the Y component and us this method.

    algorithm - How to determine a point in a triangle? - Stack Overflow

    Then once I...
  9. This could probably be presented as just a math...

    This could probably be presented as just a math question.

    Given triangle PQR, triangle STU, and point A.
    Point A rests on a surface of one of the triangles.
    What is the equation to solve for...
  10. Finding Camera Y coordinate on a heightmap

    Hey!

    I have been racking my brain for about a day and a half now. I know the answer has to be something simple, but for the life of me I can't deduce the simple equation/algorithym.

    I...
Results 1 to 10 of 11