Search found 264 matches

by molul
Sat Aug 04, 2018 8:11 am
Forum: Support and Development
Topic: Can I save an image loaded with love.graphics.newImage() as png?
Replies: 6
Views: 5616

Can I save an image loaded with love.graphics.newImage() as png?

I'd to be able to resize and save (overwrite) an image if it's bigger than what I expect. The workflow would be: -Load the image with love.graphics.newImage. -Get the image dimensions. -If it's bigger than 230x320, resize it to 230x320 (I guess I can only render it to a Canvas with the right size, s...
by molul
Fri Jul 27, 2018 7:18 am
Forum: Support and Development
Topic: Is it possible to make an animated perspective texture WITHOUT a shader?
Replies: 5
Views: 4216

Re: Is it possible to make an animated perspective texture WITHOUT a shader?

I'm currently using pgimeno's lib, which uses a vertex shader drawing a texture on a mesh. Do you mean I should animate the UVs in the very shader instead of on the mesh?
by molul
Fri Jul 27, 2018 6:56 am
Forum: Support and Development
Topic: love.graphics.circle vs love.graphics.polygon
Replies: 4
Views: 2850

Re: love.graphics.circle vs love.graphics.polygon

Meshes will almost always get better performance than love.graphics.circle/polygon/etc. if you aren't calling Mesh:setVertex a bunch every frame Sorry for the necrobump, but I'm having a problem exactly. I need to update only the V texture coordinate for a mesh, but for that I only see mesh:setVert...
by molul
Thu Jul 26, 2018 5:22 pm
Forum: Support and Development
Topic: Is it possible to make an animated perspective texture WITHOUT a shader?
Replies: 5
Views: 4216

Re: Is it possible to make an animated perspective texture WITHOUT a shader?

Wow... Thank you very much, pgimeno! :O With your lib I get around 40fps on my app displaying a couple of perspective textures, but more important: it actually works! The other shader just made the screen blink ^^U I'm having a friend helping me on this project building LÖVE for the Rockchip (he's c...
by molul
Tue Jul 24, 2018 6:27 am
Forum: Support and Development
Topic: Is it possible to make an animated perspective texture WITHOUT a shader?
Replies: 5
Views: 4216

Is it possible to make an animated perspective texture WITHOUT a shader?

I was using xXxMoNkEyMaNxXx's Textured polygon's module to achieve this effect on LÖVE 11.1: https://www.youtube.com/watch?v=AMZxC9aE7wo This would be the background for a frontend I'm developing for a Rockchip RK3066 board. However, although its renderer info says "OpenGL ES 2.0", even a ...
by molul
Mon Jul 23, 2018 10:37 am
Forum: Support and Development
Topic: Optimizing text drawing
Replies: 7
Views: 5150

Re: Optimizing text drawing

Yes, I'm using LÖVE 11, fortunately :) Using texture atlases and quads added another couple of frames. Not bad!
by molul
Mon Jul 23, 2018 6:51 am
Forum: Support and Development
Topic: Optimizing text drawing
Replies: 7
Views: 5150

Re: Optimizing text drawing

The problem is there are a few nice animations always running ^_^U Of course I'll cut them down if I can't reach 60fps but I'd rather not while there are other things to try. I believe the sprite batches and text objects might give me 7-10 fps more, which would make the application run at 50-60. Hop...
by molul
Sun Jul 22, 2018 10:35 am
Forum: Libraries and Tools
Topic: Textured Polygons for All!
Replies: 144
Views: 102369

Re: Textured Polygons for All!

Oops, I forgot to thank the last post ^^U Thanks, it really helped :) I have a question about this module: I'm using a grid texture, and if I don't do love.graphics.setColor(1,1,1,0) (I'm on 11.1) it will draw a white solid color instead of the grid. Does it make sense? Should I do it in another way...
by molul
Sun Jul 22, 2018 9:56 am
Forum: Support and Development
Topic: Optimizing text drawing
Replies: 7
Views: 5150

Re: Optimizing text drawing

Thanks for replying :) I'm mostly using love.graphics.printf, as I need to print texts (sometimes with more than one line) centered, and one of the texts (the currently selected option, displayed at the bottom of the UI) is constantly changing. So I think a Text object wouldn't help :( It would be c...
by molul
Sun Jul 22, 2018 9:08 am
Forum: Support and Development
Topic: Optimizing text drawing
Replies: 7
Views: 5150

Optimizing text drawing

I'm making a frontend for a Rockchip RK3066 board, which apparently has a, say, "modest" GPU. A friend of mine is helping me with building LÖVE for this board (he's modifying SDL and other dependencies as needed), and I'm changing my LÖVE code to improve performance. So far we've managed t...