Page 1 of 1

Some small problems with LÖVE

Posted: Sun Feb 02, 2014 9:29 pm
by davisdude
No, I'm not making another one of those threads (God forbid that happens). I'm actually pointing out some problems that I've noticed:
  • When filling a concave polygon, the filling is done incorrectly.
  • When using tab or /t in conjunction with love.graphics.print it give the unknown character.
This may be computer specific, so here we go:
As far as I know, I have everything on the recommended side of the column (except for the multi-touch display screen. I only wish I had that :) ).

Here's an example of what I'm talking about.
Problem.love
Example
(1.05 KiB) Downloaded 44 times

Re: Some small problems with LÖVE

Posted: Sun Feb 02, 2014 9:32 pm
by slime
davisdude wrote:
  • When filling a concave polygon, the filling is done incorrectly.
Filled concave polygons aren't supported by [wiki]love.graphics.polygon[/wiki] (its wiki page mentions it.) You could use [wiki]love.math.triangulate[/wiki] to convert your concave polygon into a bunch of triangles which can be rendered properly.
davisdude wrote:
  • When using tab or /t in conjunction with love.graphics.print it give the unknown character.
This is fixed for version [wiki]0.9.1[/wiki]. :)

Re: Some small problems with LÖVE

Posted: Sun Feb 02, 2014 9:38 pm
by davisdude
slime wrote:Filled concave polygons aren't supported by love.graphics.polygon (its wiki page mentions it.) You could use love.math.triangulate to convert your concave polygon into a bunch of triangles which can be rendered properly.
My bad. I guess I just figured it would work. :P
slime wrote:This is fixed for version 0.9.1. :)
That's good! :D

On a side note, why not have love.math.triangulate automatically put in the framework for LÖVE with filled polygons? Any reason in particular?

Re: Some small problems with LÖVE

Posted: Sun Feb 02, 2014 9:41 pm
by slime
davisdude wrote:On a side note, why not have love.math.triangulate automatically put in the framework for LÖVE with filled polygons? Any reason in particular?
https://bitbucket.org/rude/love/issue/8 ... ent-278131

Re: Some small problems with LÖVE

Posted: Sun Feb 02, 2014 9:44 pm
by davisdude
vrld wrote:Tesselation would be a possibility. Doing this on every frame (i.e. LÖVE-side) is not a way to go though, as all practical triangularization-algorithms have at least a loglinear runtime. Providing a tesselation method within löve would be nice though and is not that hard to implement in Lua: http://github.com/vrld/dynamic-light/bl ... ms.lua#L74
Okay. Got it now! Thanks! :D