Search found 1077 matches

by s-ol
Tue Oct 28, 2014 10:49 pm
Forum: Support and Development
Topic: [CLOSED] love.math.triangulate bugs out
Replies: 10
Views: 7278

Re: love.math.triangulate bugs out with "very concave" polyg

Have you messed around with it a bit? I'll try and record a video of when it breaks for me, I'm sure I never crossed any old polyline segments, and thats basically the only difference for non-simple polygons, no? Video: https://gfycat.com/JauntyShockedBigmouthbass btw I like your project naming conv...
by s-ol
Tue Oct 28, 2014 8:36 pm
Forum: Support and Development
Topic: [CLOSED] love.math.triangulate bugs out
Replies: 10
Views: 7278

Re: love.math.triangulate bugs out with "very concave" polyg

Also I'm too dumb to write a better algorhytmn's implementation for this, but I did find one that should do this correctly: Seidel's polygon triangulation Decompose the Polygon into Trapezoids. Decompose the Trapezoids into Monotone Polygons. Triangulate the Monotone Polygons. (can be left out for r...
by s-ol
Tue Oct 28, 2014 8:19 pm
Forum: Support and Development
Topic: [CLOSED] love.math.triangulate bugs out
Replies: 10
Views: 7278

[CLOSED] love.math.triangulate bugs out

I tried modelling a player as a simple polygon, but obviously I ended up with something concave. I tried using love.math.triangulate() to turn it into (convex) triangles so I can draw it, but that function fails as soon as you have some kind of "S" shape in your polygon: https://love2d.org...
by s-ol
Tue Oct 14, 2014 1:06 pm
Forum: Support and Development
Topic: LÖVE 0.90 and Quads
Replies: 2
Views: 2208

Re: LÖVE 0.90 and Quads

Nixola wrote:You can use lg.draw exactly as you'd use lg.drawq
Also, please, don't double post: the reason you didn't see your former post is that, since it's your first one, it had to be approved, to prevent newcomers from spamming.
I know, and I realized right after I posted it the second time.
by s-ol
Tue Oct 14, 2014 1:04 pm
Forum: Support and Development
Topic: [Solved] Drawing Quads and SetWrap?
Replies: 2
Views: 2052

Re: Drawing Quads and SetWrap?

But Quads are not Drawables, so I can't draw them (or at least I cant pass the image as a texture). I need to draw the quad and not the image.
Edit: ooooh, okay, I didn't see there was an overloaded function available :(
by s-ol
Mon Oct 13, 2014 5:21 pm
Forum: Support and Development
Topic: [Solved] Drawing Quads and SetWrap?
Replies: 2
Views: 2052

[Solved] Drawing Quads and SetWrap?

Hello,
I wanted to draw a background sprite with WrapModes "repeat", "repeat" to fill my canvas.
I tried to do it somewhat like this

Code: Select all

love.graphics.drawq
is gone.

So how do we now draw Images to a size other than their native one? And if we can't, why does Quad still exist?
by s-ol
Mon Oct 13, 2014 5:16 pm
Forum: Support and Development
Topic: LÖVE 0.90 and Quads
Replies: 2
Views: 2208

LÖVE 0.90 and Quads

Hello, I'm trying to draw a background Image with WrapMode ("repeat", "repeat") so I can easily fill my canvas with it. I wanted to do it something like this , but love.graphics.drawq has been removed. How do we draw an image with a size to make it wrap now? I cannot find any fun...