Search found 71 matches

by Sasha264
Sun Jun 21, 2020 5:57 pm
Forum: Support and Development
Topic: Server on Love
Replies: 10
Views: 5278

Re: Server on Love

Exactly that feature, yes =)
I guess every game developer sooner or later must write his own tool for that :rofl:
by Sasha264
Sun Jun 21, 2020 5:54 pm
Forum: Support and Development
Topic: [SOLVED] What exactly does Canvas:renderTo do?
Replies: 2
Views: 406

Re: What exactly does Canvas:renderTo do?

Push can push all! That is brilliant! Exactly what I need :awesome:
by Sasha264
Sat Jun 20, 2020 12:14 pm
Forum: Support and Development
Topic: [SOLVED] How to send matrix parameter to a shader?
Replies: 2
Views: 421

Re: How to send matrix parameter to a shader?

Wow! Somehow I missed that :huh:
Thank you! =)
by Sasha264
Sat Jun 20, 2020 11:25 am
Forum: Support and Development
Topic: Game random crash on a start
Replies: 2
Views: 355

Game random crash on a start

Hi everyone :oops: Waited for a few months before asking this, and now is the time, because I found nothing :ehem: I have a relatively complex game on love 11.2 (or 11.3 no difference for that aspect). I am running it through SublimeText Ctrl+B that executes love.exe with folder parameter. It runs c...
by Sasha264
Sat Jun 20, 2020 10:51 am
Forum: Support and Development
Topic: [SOLVED] How to send matrix parameter to a shader?
Replies: 2
Views: 421

[SOLVED] How to send matrix parameter to a shader?

Hello! :emo: Did not found this in docs... local pixelcode = [[ extern mat2 myMatrix; vec4 effect(vec4 color, Image texture, vec2 tc, vec2 sc) { // some use of the myMatrix here return Texel(texture, tc) * color; } ]] local shader = love.graphics.newShader(pixelcode) shader:send("myMatrix", ?)
by Sasha264
Sat Jun 20, 2020 10:29 am
Forum: Support and Development
Topic: Help With Images
Replies: 6
Views: 560

Re: Help With Images

@SmellyFishstiks, welcome! :3 In love Image & Canvas is stored in video (gpu) memory and ImageData is stored in cpu memory. And here is some methods to copy from one to another. To copy gpu -> cpu here is this function https://love2d.org/wiki/Canvas:newImageData I used it a lot in my projects. Becau...
by Sasha264
Sat Jun 20, 2020 10:08 am
Forum: Support and Development
Topic: [SOLVED] What exactly does Canvas:renderTo do?
Replies: 2
Views: 406

[SOLVED] What exactly does Canvas:renderTo do?

Good day! :crazy: As wiki says https://love2d.org/wiki/Canvas:renderTo canvas:renderTo(func) do this: love.graphics.setCanvas(canvas) func() love.graphics.setCanvas() Is it correct? In my experience it does something like this: local oldCanvas = love.graphics.getCanvas() love.graphics.setCanvas(canv...
by Sasha264
Sat Jun 20, 2020 9:53 am
Forum: Support and Development
Topic: Server on Love
Replies: 10
Views: 5278

Re: Server on Love

@ThatBonk, sure, why not =)
ReFreezed wrote:
Tue Jun 09, 2020 12:55 pm
...where I needed to update the RGB values for transparent pixels in a specific way to solve a minor visual glitch.
Do you mean RGB values of fully transparent pixels? I did some of that too ^_^
by Sasha264
Tue Jun 09, 2020 6:25 am
Forum: Support and Development
Topic: Server on Love
Replies: 10
Views: 5278

Re: Server on Love

sphyrth, zorg, ReFreezed,
Thank you guys! Now I can try something about it =)

ReFreezed,
What kind of image processing are you doing with ImageData? If it's not a big secret :3
by Sasha264
Sun Jun 07, 2020 12:03 pm
Forum: Support and Development
Topic: Server on Love
Replies: 10
Views: 5278

Server on Love

Good day! :3 I want to make some server-client solutions, and I wonder, can I do it with Love? Sorry, I am not familiar with server programming, so I have some basic questions... There is a way to disable t.modules.graphics = false in config. Is this supposed to be used exactly for server applicatio...