Search found 34 matches

by Tabaqui
Fri Mar 26, 2021 1:40 pm
Forum: Support and Development
Topic: Alt + L doesn't work correctly on VS Code with ANY extension
Replies: 1
Views: 3813

Re: Alt + L doesn't work correctly on VS Code with ANY extension

I’ve had the same problem with love launcher and it turned out that, using github, i’ve accidentally committed the vs configuration files, breaking love launcher on the other PC i was using (love2d was on different directories, so the extension couldn’t find it anymore). I don’t know if it can help.
by Tabaqui
Fri Mar 19, 2021 4:31 pm
Forum: Support and Development
Topic: Canvas and alpha
Replies: 11
Views: 8757

Re: Canvas and alpha

Thank you guys, pgimeno solution works as expected although i can't figure out why. Inside my mind the canvas should have been an exact copy of the texture after drawing inside it, so i can't really understand what was the problem. I guess i should study the topic more because i don't like to copypa...
by Tabaqui
Fri Mar 19, 2021 10:24 am
Forum: Support and Development
Topic: Canvas and alpha
Replies: 11
Views: 8757

Canvas and alpha

Hi all! I have some troubles understanding how alpha and canvases work together: I'm drawing a texture with some transparency on a canvas and then drawing the canvas itself on the screen. I've noticed that, if i don't use the canvas and i draw directly the texture on screen, i obtain a different eff...
by Tabaqui
Sun Feb 14, 2021 9:01 pm
Forum: Support and Development
Topic: 3d environment with 2d sprites clipping problem
Replies: 3
Views: 3462

Re: 3d environment with 2d sprites clipping problem

That problem is not an easy one to solve. More people seem to have faced that problem with other engines, e.g. https://www.reddit.com/r/gamedev/comments/bq0lt3/2d_sprites_3d_world_a_tricky_clipping_issue/ While intuitively the intention seems clear and straightforward, mathematically it's much hard...
by Tabaqui
Sun Feb 14, 2021 5:31 pm
Forum: Support and Development
Topic: 3d environment with 2d sprites clipping problem
Replies: 3
Views: 3462

3d environment with 2d sprites clipping problem

Hi all! I'm playing with groverburger's g3d library and i'm trying to draw 2d sprites in a 3d environment with a fixed camera (no rotation). I've noticed that, as the angle between the camera and the environment increases, the sprites become "shorter": 1.png I've tried rotating them toward...
by Tabaqui
Fri Feb 12, 2021 4:42 pm
Forum: Support and Development
Topic: stutter while scrolling
Replies: 5
Views: 4203

Re: stutter while scrolling

I had the exact "problem" with an old project and i had it because i've turned off vsync. Try enabling it in conf.lua like this: function love.conf(c) c.window.vsync = true end This will cause your game to run at lower FPS (in my case 60, but depends on the monitor you are using), but the ...
by Tabaqui
Thu Feb 11, 2021 10:07 pm
Forum: Support and Development
Topic: 3d (g3d): how to draw only visible models? FPS drop!
Replies: 5
Views: 3782

Re: 3d (g3d): how to draw only visible models? FPS drop!

Thanks again, i’ll give it a shot! By the way i’ve found a solution for dark areas like dungeons: i’ve slightly modified the shader used by g3d by adding a fog effect and then by drawing only the part of the map that can be seen. Tested on a 10000x10000 tilemap and works like a charm! Still need to ...
by Tabaqui
Thu Feb 11, 2021 9:24 pm
Forum: Support and Development
Topic: 3d (g3d): how to draw only visible models? FPS drop!
Replies: 5
Views: 3782

Re: 3d (g3d): how to draw only visible models? FPS drop!

Thanks pgimeno, i thought of using a single mesh for the whole floor, but is there a way to apply a tiled texture to it?
by Tabaqui
Thu Feb 11, 2021 6:02 pm
Forum: Support and Development
Topic: 3d (g3d): how to draw only visible models? FPS drop!
Replies: 5
Views: 3782

3d (g3d): how to draw only visible models? FPS drop!

Hi all! After trying out perspective and various stuff with a raycasting engine, i've decided to learn pure 3d with the help of groverburger's awesome g3d library. My first goal consists in rendering a simple environment based on a tilemap (a WxH grid with indexes representing walls or floor with di...
by Tabaqui
Mon Feb 08, 2021 12:32 pm
Forum: Support and Development
Topic: Any succes with LDtk?
Replies: 3
Views: 11326

Re: Any succes with LDtk?

Hi! In the attachments you can find a library that can read/write JSON files pretty easily.

PS: I'm not the author of the library :crazy: