• G
    Grabli66

    I found method calculateCubicBezierPoint in GraphicsExtension. May be it's better calculate all points of path with this method, and then use method fillTriangle for all points? But method calculateCubicBezierPoint is static private.

    posted in Kode read more
  • G
    Grabli66

    Bezier curve is also triangles? If i draw curves and triangulate the shape, can i use shaders for that shape?

    posted in Kode read more
  • G
    Grabli66

    Yes. There is drawCubicBezierPath method in GraphicsExtension. But how to fill that path with color?

    posted in Kode read more
  • G
    Grabli66

    Hello.
    I want to draw 2D curvy path with beizer curves and color fill.
    Is it possible to do that in kha?
    What is the best method to do that? Use some drawing methods of g2, or use some shaders with g4?

    posted in Kode read more
  • G
    Grabli66

    Ok. I'll check performance.

    I wanted to create game for all possible iPad. Now the highest ipad resolution is 2048 x 2732, and all of them have 3:4 aspect ratio. That is why i took backbuffer with size 2732x2048. And scale it to real device resolution. I thought that it would work on all iPad. But now i think i must have different size assets for each iPad type. And choose backbuffer for each device resolution.

    posted in Kode read more
  • G
    Grabli66

    Hi!

    I try to develop simple game for iOS. And have little problem.
    When i start my game on Linux, OSX, HTML and iPad2, i see that game works with different speed. On iPad2 objects are moving slower. On Linux, OSX, HTML game works with same speed. I dont understand why.
    My game uses backbuffer with constant size 2732x2048. Then i scale backbuffer to framebuffer. And i update all objects in update method with speed * delta. Speed value is constant on all platforms.

    Code is here
    https://github.com/Grabli66/UfoFly

    posted in Kode read more

Looks like your connection to Kode Forum was lost, please wait while we try to reconnect.