Search found 432 matches

by grump
Tue Nov 20, 2018 11:01 am
Forum: Games and Creations
Topic: polyamory - Multi-version LÖVE
Replies: 5
Views: 950

Re: polyamory - Multi-version LÖVE

New version 0.3 adds a bunch of previously missing libs for Linux, making older versions work on more distributions.

Also, new UI.

Image
by grump
Mon Nov 19, 2018 10:21 pm
Forum: Support and Development
Topic: Debian "jack server is not running or cannot be started" error
Replies: 3
Views: 85

Re: Debian "jack server is not running or cannot be started" error

AFAIK, the jack message is merely a notification, not an error. LÖVE games run just fine despite Jack not being available. the console doesn't work anymore What do you expect the console to do? Once a task has been started, it will wait for the task to finish. There is no LÖVE debug console that you...
by grump
Tue Nov 13, 2018 8:40 am
Forum: Support and Development
Topic: Shader help: Passing a matrix into a shader?
Replies: 1
Views: 173

Re: Shader help: Passing a matrix into a shader?

Jasoco wrote:
Tue Nov 13, 2018 12:34 am
Basically having a matrix that is a table of 1s and 0s that the shader can grab from to determine whether to shade the current pixel with the overlaying color or just display the color as normal.
A texture with alpha channel?
by grump
Fri Nov 09, 2018 8:05 am
Forum: Support and Development
Topic: Build crashes when dropping onto love.exe, but not through sublime
Replies: 4
Views: 187

Re: Build crashes when dropping onto love.exe, but not through sublime

settings.lua uses io.open among other io functions. They won't work properly with LÖVE, in this example it's probably not finding relative paths due to the working directory not being correct. Use love.filesystem instead. I'd replace settings.lua entirely with a better serialization solution.
by grump
Wed Nov 07, 2018 4:07 pm
Forum: General
Topic: Line problem on amd and supertoast
Replies: 5
Views: 497

Re: Line problem on amd and supertoast

Try adding .5 to your line coordinates to put the endpoints on pixel centers. ...although it shouldn't matter with rough linestyle afaik
by grump
Tue Nov 06, 2018 1:06 pm
Forum: Libraries and Tools
Topic: Blob.lua - binary serialization library
Replies: 7
Views: 2334

Re: Blob.lua - binary serialization library

Nice! How does it compare to bitser https://github.com/gvx/bitser? I quickly made a test program to compare the speed of binser, bitser and Blob. Blob came out faster in almost all tests. Tests include: a sequence of 64k numbers (sequentialManyNumbers), 64k uint32_t (sequentialManyU32), 32 numbers ...
by grump
Sun Nov 04, 2018 5:51 am
Forum: Support and Development
Topic: [SOLVED] Problem with shaders (especially with texture_coords)
Replies: 13
Views: 1370

Re: Problem with shaders (especially with texture_coords)

LuaIsLife wrote:
Sun Nov 04, 2018 5:33 am

Code: Select all

  float av = (pixel.r + pixel.g + pixel.b) / 3.0;
Just a quick heads-up: you'll get better results for this conversion if you take spectral weighting into account:

Code: Select all

float av = pixel.r * .2125 + pixel.g * .7154 + pixel.b * .0721;
by grump
Sat Nov 03, 2018 11:57 am
Forum: Libraries and Tools
Topic: Blob.lua - binary serialization library
Replies: 7
Views: 2334

Re: Blob.lua - binary serialization library

When I created this lib, love.data.pack/unpack did not exist yet. Some benefits: It supports more data types than pack/unpack. BlowWriter/Reader can serialize tables and 64 bit integers, both trough dedicated read/write functions and the pack/unpack functions. LÖVE's pack/unpack can't handle tables ...
by grump
Fri Nov 02, 2018 7:08 pm
Forum: Support and Development
Topic: [SOLVED] Problem with shaders (especially with texture_coords)
Replies: 13
Views: 1370

Re: Problem with shaders (especially with texture_coords)

That tutorial's code says "draw something here", when it actually should say "draw something with a texture here". Circles, lines, rectangles etc. can't have shaders applied to them. Try to draw an image instead.