Search found 6 matches

by Kymiko
Mon Jun 20, 2016 7:07 pm
Forum: Support and Development
Topic: Shaders return value
Replies: 9
Views: 4960

Re: Shaders return value

If I understand you correctly, what you want is pixel-precision collisions. I did that for Thrust II Reloaded, see https://github.com/pgimeno/Thrust-II-reloaded/blob/a193cb42d936bff56bc481744f6fa41ab6a39a25/game.lua#L410 . The basic idea is to paint on a canvas the collision mask of everything but ...
by Kymiko
Mon Jun 20, 2016 4:10 pm
Forum: Support and Development
Topic: Shaders return value
Replies: 9
Views: 4960

Re: Shaders return value

Ok now I understand what you mean, but the thing is the game would be like a platformer, so with a camera, so the whole content of the screen might be changed every frame, meaning that I would update every frame the 2D map you were talking about (you didn't say how to update it by the way, I guess y...
by Kymiko
Mon Jun 20, 2016 3:18 pm
Forum: Support and Development
Topic: Shaders return value
Replies: 9
Views: 4960

Re: Shaders return value

Thank you for all your answers. To be more precise, the idea would be to make the player collide with black color. That is why I would need to know if the color where the player is going is black. There's no fast way to do that, unless you can cram a lot of calculations in it. You will have to use [...
by Kymiko
Sat Jun 18, 2016 10:23 pm
Forum: Support and Development
Topic: Shaders return value
Replies: 9
Views: 4960

Shaders return value

Hello everyone, I was wondering if it was possible to do general purpose calculation with shaders in Love. I am quite a noob with shaders, so sorry if the answer is obvious, but I didn't find any on the forums. In my case, the basic idea would be for instance to check wether some pixels at given pos...
by Kymiko
Sun Jun 05, 2016 3:10 am
Forum: Support and Development
Topic: [SOLVED] Black stripes from Tiled grid visible with camera
Replies: 5
Views: 3936

Re: Black stripes from Tiled grid visible with camera

math.floor the camera coordinates made it, thank you very much, pretty simple in the end !
by Kymiko
Sat Jun 04, 2016 9:29 pm
Forum: Support and Development
Topic: [SOLVED] Black stripes from Tiled grid visible with camera
Replies: 5
Views: 3936

[SOLVED] Black stripes from Tiled grid visible with camera

Hello everyone, I have been experiencing an issue when using hump.camera with STI. When the camera moves, sometimes some black stripes appear and disapear quickly on the screen (I think they correspond to the delimitations of the tiled map in Tiled). I have no idea what may be causing that. Attached...