Page 65 of 91

Re: "Questions that don't deserve their own thread" thread

Posted: Wed Jul 13, 2016 3:00 pm
by unixfreak
undef wrote:Use [wiki]Font:getHeight[/wiki]*#wrappedText.
wrappedText ist the second return value of Font:getWrap.
Thanks for the fast reply, that works perfectly, surprised i overlooked that one. Cheers :cool:

Re: "Questions that don't deserve their own thread" thread

Posted: Fri Jul 15, 2016 12:37 am
by Substance12
How do I make it so I can keep my game pixel-perfect scaled 2x at any resolutions?

I've tried with Canvases and HUMP.camera, and it can draw, but I can't manage to change the size of the canvas any higher than the resolution the window had when I created the canvas first. Even if I create the canvas again, it just gets stuck at 800x600 (default resolution of my game)

Any ideas?

Re: "Questions that don't deserve their own thread" thread

Posted: Fri Jul 15, 2016 2:51 am
by zorg
Canvases won't "resize", you need to create a new one to use in place of the old-sized one when resizing your game window... for your purposes, anyway.

Re: "Questions that don't deserve their own thread" thread

Posted: Fri Jul 15, 2016 3:24 am
by Substance12
Well, that's the problem, the new canvas won't go any higher than 800x600, even if you resize the screen

EDIT: Nevermind, it was a completely unrelated issue. Already fixed it

Re: "Questions that don't deserve their own thread" thread

Posted: Fri Jul 15, 2016 6:14 am
by Someguynamedpie
Is there any way to get around the inability to draw a canvas onto itself without forking love?

Re: "Questions that don't deserve their own thread" thread

Posted: Fri Jul 15, 2016 7:43 am
by Someguynamedpie
The effort bar is coming close to being reached for self implementation of ping-pong rendering

Re: "Questions that don't deserve their own thread" thread

Posted: Fri Jul 15, 2016 9:22 am
by pgimeno
Someguynamedpie wrote:Is there any way to get around the inability to draw a canvas onto itself without forking love?
LÖVE 0.9 allowed it. That caused one of my first questions in the forum. https://www.love2d.org/forums/viewtopic.php?f=4&t=81251

Basically, OpenGL doesn't support it.

Re: "Questions that don't deserve their own thread" thread

Posted: Fri Jul 15, 2016 4:02 pm
by slime
More specifically, physical GPU hardware doesn't support it.

Re: "Questions that don't deserve their own thread" thread

Posted: Fri Jul 15, 2016 7:36 pm
by airstruck
How is world gravity measured in love.physics? Is it meters per second per second? Setting the world gravity to (0, 9.8) feels really floaty, what's going on?

Re: "Questions that don't deserve their own thread" thread

Posted: Fri Jul 15, 2016 7:41 pm
by Someguynamedpie
slime wrote:More specifically, physical GPU hardware doesn't support it.
Not so much that as its just not defined in the spec IIRC creating undefined behavior.