Crashing Fuze with drawQuad

  • I can crash Fuze with the following code, while I would only expect only an error within my game:

    var img = loadImage("Untied Games/Game character 3")
    drawQuad(img, {}, [], {})

    I kept the arguments as simple as possible here, but I'm quite sure the empty points array causes the crash.

  • F

    While were on the subject of drawQuad, I just discovered that if opposite sides aren't parallel then the image is drawn incorrectly as if the function is drawing two triangles and aligning each triangles texture with its own sides.

  • @PB____ Thanks for the report, I've put it on the to-do list.

    @DomDom Could you provide a screenshot of this behavior, so I can visualize it a little easier?

  • F

    I suspect the the parameters for the uv cordinates for each triangle in the quad are being mistakenly calculated between the sides of the triangle and the diagonal of the quad when in fact it should be calculated based on the opposite sides of the quad.

    Note the crease in the image below. (The green figure in the image should be a triangle)


Log in to reply