Search found 23 matches

by Froyok
Sun Jul 31, 2022 8:24 am
Forum: Support and Development
Topic: libGL error on Manjaro
Replies: 2
Views: 985

Re: libGL error on Manjaro

Latest version of Love is 11.4, so its looks like the package you got is a bit old. Have you tried the AppImage instead ? You can download it here: https://github.com/love2d/love/releases/tag/11.4 Also, it might help it you could paste here the output of glxinfo so that we know a bit better about yo...
by Froyok
Wed Jun 15, 2022 6:24 pm
Forum: Support and Development
Topic: Puzzled about alpha blending in Canvas
Replies: 5
Views: 940

Re: Puzzled about alpha blending in Canvas

There is no problem on Love side, it's an issue in Tiled (which I thought was right initially). :) My shadow are too dark because of the sRGB blending (so I opened a github issue for them). Here is a more simple example of the issue: Y0615_143036.png This image shows three states: - Bottom half is m...
by Froyok
Wed Jun 15, 2022 9:30 am
Forum: Support and Development
Topic: Puzzled about alpha blending in Canvas
Replies: 5
Views: 940

Re: Puzzled about alpha blending in Canvas

So it's not just a pure content problem. I have looked a bit more into it, I think it's a combination of several issues. On my side, I was also doing pre-multiplied alpha in my original image, so I fixed that. Tiled is also blending images in sRGB space, while I use instead Linear sRGB. So you don't...
by Froyok
Tue Jun 14, 2022 11:00 pm
Forum: Support and Development
Topic: Puzzled about alpha blending in Canvas
Replies: 5
Views: 940

Re: Puzzled about alpha blending in Canvas

Ha well, I'm an idiot.

Issue is not on rendering side but on content side.
Tiled uses my PNG source image while in-game I use the DDS version, which wasn't in sync. :death:
by Froyok
Tue Jun 14, 2022 9:57 pm
Forum: Support and Development
Topic: Puzzled about alpha blending in Canvas
Replies: 5
Views: 940

Puzzled about alpha blending in Canvas

I'm using Tiled to build my maps. I have layers, each with their own tiles from my tileset and I transcribe that into meshes that I draw later in my game (so each layer is a unique mesh). The list order from Tiled is then my draw order in Love. Now my issue is that I have a layer which contains tile...
by Froyok
Mon Jan 31, 2022 12:41 pm
Forum: Libraries and Tools
Topic: OpenGL events in Love for RenderDoc
Replies: 7
Views: 4398

Re: OpenGL events in Love for RenderDoc

Little update: I noticed that Love sometimes doesn't immediately sends the draw command. So calling PopEvent() might lead to incorrect results in RenderDoc because the actual draw in the code happens after the end of the event. This can be solved by calling love.graphics.flushBatch() before the PopE...
by Froyok
Sun Jan 30, 2022 5:08 pm
Forum: Support and Development
Topic: Editing a font from within Löve
Replies: 5
Views: 1265

Re: Editing a font from within Löve

If you use a bitmap font with fixed letter size (monospace maybe ?) it should be easier to edit the input bitmap to build the font, no ?
by Froyok
Tue Jan 25, 2022 1:55 pm
Forum: Support and Development
Topic: Determine whether a point is behind a line?
Replies: 7
Views: 1689

Re: Determine whether a point is behind a line?

A dot product is a very, very cheap operation (see the dot function in Pgimeno very good example). Especially if you use a proper vector library (I believe there are a few available for love, potentially g3d has it own). Game engines usually perform tons of dot product per frame.
by Froyok
Mon Jan 24, 2022 7:24 pm
Forum: Support and Development
Topic: Determine whether a point is behind a line?
Replies: 7
Views: 1689

Re: Determine whether a point is behind a line?

A simple dot product should be enough: - Your first vector is the line itself (let's say a line made from two points A and B) - The second vector is the direction from the line toward the point you want to check (say point C, the vector is made from A and C). - Perform a dot product between the two ...
by Froyok
Fri Jan 14, 2022 7:32 pm
Forum: General
Topic: Special text formatting/markup/bbcode
Replies: 4
Views: 2016

Re: Special text formatting/markup/bbcode

Is that what it's called? To answer you first question, in case you want to dive further into the subject, in UI terminology this is called "rich text". Some examples: https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/StyledText.html https://docs.unrealengine.com/4.27/en-US/Inte...