Search found 3550 matches

by pgimeno
Wed Mar 21, 2018 11:53 pm
Forum: Games and Creations
Topic: Locas Ants Sim Remake
Replies: 5
Views: 7901

Re: Locas Ants Sim Remake

Can't. Stop. Staring. :D Straight from GH without modifications, revision 1622d10 (latest as of this writing), I get 30 FPS on my computer. i7-4790 @ 3.6GHz Edit: Forgot to specify the GPU. nVidia GeForce 8600GT with proprietary drivers. The OS is Debian 9.4. Edit 2: It was a challenge to make them ...
by pgimeno
Wed Mar 21, 2018 7:06 pm
Forum: General
Topic: Graphics module in threads
Replies: 9
Views: 6966

Re: Graphics module in threads

Well you'd have to start the new thread and have the main thread wait for the new thread (Which I guess loads everything) to send the "all done!" message back to the main thread. And while you wait you'd draw that loading screen. The point is that in the thread you can't load images with ...
by pgimeno
Wed Mar 21, 2018 4:43 pm
Forum: General
Topic: Graphics module in threads
Replies: 9
Views: 6966

Re: Graphics module in threads

is this an actual problem or a theoretical one? I wonder if it's possible to create a love program that demonstrates the limitation a single graphics thread poses here. This crashes for me with a segfault, despite the extra care taken in not using love.graphics in two threads simultaneously. main.l...
by pgimeno
Tue Mar 20, 2018 1:06 pm
Forum: Games and Creations
Topic: CarWar
Replies: 21
Views: 19939

Re: CarWar

"File has been removed due to inactivity" :(
by pgimeno
Tue Mar 20, 2018 12:34 pm
Forum: Support and Development
Topic: line with ellipse/circle collision
Replies: 15
Views: 10486

Re: line with ellipse/circle collision

Initially I wanted to use collisions, because I thought using my intersection function would be computationally too slow ?? I don't think so. You probably can sustain hundreds of such calculations per frame. Regarding the cheating aspect: I intend to swap the position of the white ball, with the bl...
by pgimeno
Mon Mar 19, 2018 5:35 pm
Forum: Support and Development
Topic: Bug in pixel shader [Solved]
Replies: 7
Views: 3348

Re: Bug in pixel shader [Solved]

You're drawing a spritebatch with just one quad in the example. If that's your real use case, you don't need a spritebatch for that; just love.graphics.draw(image, quad, ...) will do. It works in this case because of the conditions you're drawing under in this example, but it won't work in all cases...
by pgimeno
Mon Mar 19, 2018 1:26 pm
Forum: Support and Development
Topic: Bug in pixel shader [Solved]
Replies: 7
Views: 3348

Re: Bug in pixel shader

Ahh, so you're drawing quads. It makes sense then: when drawing a quad, the texture coordinates that the shader receives are the texture coordinates within the original texture to draw from. Unfortunately, Löve doesn't pass the vertex coordinates from vertex to fragment shader, which is what you wou...
by pgimeno
Mon Mar 19, 2018 12:45 pm
Forum: Support and Development
Topic: line with ellipse/circle collision
Replies: 15
Views: 10486

Re: line with ellipse/circle collision

I wouldn't use collisions for this. Instead, I suggest using intersection of two segments. Let me explain. While playing I ran into this situation: HappyMoon-shortshot.png I fell short of crossing the line. If you consider a collision as scoring, you would be granting a point there. You should then ...
by pgimeno
Mon Mar 19, 2018 12:21 am
Forum: Games and Creations
Topic: [Open Source Lib] My latest library, fastlighting
Replies: 13
Views: 14451

Re: [Open Source Lib] My latest library, fastlighting

Hello! I've tried to run the demo but I got a curious error. Error: Cannot link shader program object: Fragment info ------------- Internal error: assembly compile error for fragment shader at offset 1234: -- error message -- line 35, column 35: error: invalid local parameter number line 40, column ...
by pgimeno
Sun Mar 18, 2018 11:43 pm
Forum: Support and Development
Topic: Bug in pixel shader [Solved]
Replies: 7
Views: 3348

Re: Bug in pixel shader

Without an example that doesn't work, I can't say much. Maybe you can trim down your program so that it still exhibits the problem, and it's something you can attach as a .love file?