Search found 2306 matches

by pgimeno
Tue Oct 20, 2020 8:49 am
Forum: General
Topic: What is the basic requirement for 3d stuff?
Replies: 3
Views: 98

Re: What is the basic requirement for 3d stuff?

The default view is orthographic. I'm not sure but I believe you need to replace the vertex shader in order to have control over the projection matrix. At least that's how I did it.
by pgimeno
Mon Oct 19, 2020 11:17 pm
Forum: General
Topic: What is the basic requirement for 3d stuff?
Replies: 3
Views: 98

Re: What is the basic requirement for 3d stuff?

That you can't make sense of it doesn't mean it isn't 3D :)
by pgimeno
Mon Oct 19, 2020 11:11 pm
Forum: General
Topic: Optimization entry in wiki
Replies: 4
Views: 256

Re: Optimization entry in wiki

Try adding jit.off() before trying the example.
by pgimeno
Mon Oct 19, 2020 11:06 pm
Forum: Support and Development
Topic: Memory Profiling?
Replies: 27
Views: 3025

Re: Memory Profiling?

It's Linux specific. I don't know the limit in FreeBSD. In Windows I don't remember if it was 1.5 GB or 2 GB.
by pgimeno
Sat Oct 17, 2020 2:43 pm
Forum: General
Topic: PointInConcavePolygon at this website is not correct, it gives a incorrect true
Replies: 3
Views: 147

Re: PointInConcavePolygon at this website is not correct, it gives a incorrect true

Technically (mathematically speaking), the border may be included or not, generating "open" or "closed" rectangles ; however, as Ivan said, floating point precision renders that distinction useless, and you have to settle for "a point in the polygon's border, or very close to it, may or may not be i...
by pgimeno
Thu Oct 15, 2020 8:50 am
Forum: Support and Development
Topic: Having trouble randomizing simple tilesets
Replies: 5
Views: 275

Re: Having trouble randomizing simple tilesets

Yes, though I wouldn't really call it cleaner, actually. In my opinion, inventing dialects hinders readability. I'd only use that construct if accompanied by a bigger comment than the one I've used, and only if justified by the savings. In this case, I think the savings are too small to justify it, ...
by pgimeno
Wed Oct 14, 2020 3:02 pm
Forum: Support and Development
Topic: Having trouble randomizing simple tilesets
Replies: 5
Views: 275

Re: Having trouble randomizing simple tilesets

I just had this funny idea. Note that for the sake of clarity, I certainly don't recommend doing this, but I wanted to post it for fun. It's actually possible to use your original map constructor; note that this is a sort of advanced use of Lua. function love.load() ... local saveGMT = getmetatable(...
by pgimeno
Wed Oct 14, 2020 11:52 am
Forum: Support and Development
Topic: Having trouble randomizing simple tilesets
Replies: 5
Views: 275

Re: Having trouble randomizing simple tilesets

Hi, welcome to the forums. You're setting a variable to a random number, and then using that number multiple times in your map. This means that you're not actually generating a different number per tile; that would require calling the random function once per tile. For brevity, I suggest this: funct...
by pgimeno
Tue Oct 13, 2020 8:24 pm
Forum: Support and Development
Topic: Created .exe, when running .exe error unable to load audio file
Replies: 26
Views: 739

Re: Created .exe, when running .exe error unable to load audio file

The error message says: "attempt to index field 'audio' (a nil value)". This says that: 'audio' is a field of a table (keyword: field ). The only table that fits in the line given is 'love'; The 'audio' field is nil ; the code is attempting to access an index inside of 'audio' but 'audio' is nil ins...
by pgimeno
Mon Oct 12, 2020 12:15 pm
Forum: Support and Development
Topic: Created .exe, when running .exe error unable to load audio file
Replies: 26
Views: 739

Re: Created .exe, when running .exe error unable to load audio file

That can't be it, then, because it either works or doesn't work, and doesn't affect love.audio.

I'm out of ideas as to why love.audio can be nil at that point, and only when the executable is fused.