Some small problems with LÖVE

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Some small problems with LÖVE

Post 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 43 times
Last edited by davisdude on Sun Feb 02, 2014 9:50 pm, edited 1 time in total.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
slime
Solid Snayke
Posts: 3170
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Some small problems with LÖVE

Post 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]. :)
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Some small problems with LÖVE

Post 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?
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
slime
Solid Snayke
Posts: 3170
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Some small problems with LÖVE

Post 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
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Some small problems with LÖVE

Post 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
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest