Search found 34 matches

by mk8
Tue May 30, 2023 1:59 pm
Forum: Support and Development
Topic: lovefs along with Slab
Replies: 1
Views: 962

lovefs along with Slab

ok so i'm simply trying to use Slab and lovefs together, but on startup it throws this error: Error lovefs.lua:35: attempt to redefine 'WIN32_FIND_DATAW' at line 3 Traceback [C]: in function 'cdef' lovefs.lua:35: in main chunk [C]: in function 'require' main.lua:4: in function 'load' [C]: in functio...
by mk8
Tue May 23, 2023 7:40 pm
Forum: Support and Development
Topic: table reference through Thread:start
Replies: 4
Views: 889

Re: table reference through Thread:start

i'd like to make it so that when the original table changes, the thread has access to the changed table, not the original one. is this possible? Each thread has a completely independent Lua instance, so sharing tables in that manner isn't possible. When you pass a table into Thread:start or Channel...
by mk8
Tue May 23, 2023 12:51 pm
Forum: Support and Development
Topic: table reference through Thread:start
Replies: 4
Views: 889

Re: table reference through Thread:start

also the Variant page says that
Nested tables are not officially supported in versions prior to 11.0.
so can Thread:start() take a nested table or no?
by mk8
Tue May 23, 2023 12:43 pm
Forum: Support and Development
Topic: table reference through Thread:start
Replies: 4
Views: 889

table reference through Thread:start

so i would like to pass a table reference to a thread via Thread:start. the wiki says: (The argument may be) a string, number, boolean, LÖVE object, or simple table. what does 'simple table' mean in this context? i'd like to make it so that when the original table changes, the thread has access to t...
by mk8
Tue May 23, 2023 8:46 am
Forum: Support and Development
Topic: killing threads externally
Replies: 5
Views: 1248

Re: killing threads externally

I don't think all systems support killing a thread, so I'd go with zorg's suggestion. For extra responsivity, instead of sleeping for 5 seconds, you can loop 50 times sleeping for 0.1 seconds and checking whether a termination request was issued on each iteration. that was something i considered, b...
by mk8
Sun May 21, 2023 3:36 pm
Forum: Support and Development
Topic: killing threads externally
Replies: 5
Views: 1248

killing threads externally

is it possible to kill a thread from the outside? like, say, i make it sleep for 5 seconds, but 2 seconds into its sleep i decide to kill it. since Thread:kill() was removed, what do i do?
by mk8
Thu Apr 07, 2022 12:24 pm
Forum: Support and Development
Topic: rendering simple 3d planes (with clipping)
Replies: 19
Views: 12962

Re: rendering simple 3d planes (with clipping)

thanks! You don't actually need sorting; just enable the depth buffer in love.conf and then use love.graphics.setDepthMode ... so dumb question, but that means doing t.window.depth=true? wiki says the field determines "the number of bits per sample in the depth buffer", so i just feel this...
by mk8
Wed Apr 06, 2022 6:55 pm
Forum: Support and Development
Topic: rendering simple 3d planes (with clipping)
Replies: 19
Views: 12962

Re: rendering simple 3d planes (with clipping)

bump, can someone pls answer? i am sorry, not experienced with this graphics stuff, but i would really like to learn. thanks!
by mk8
Mon Apr 04, 2022 5:27 am
Forum: Support and Development
Topic: rendering simple 3d planes (with clipping)
Replies: 19
Views: 12962

Re: rendering simple 3d planes (with clipping)

...there are only 2 3D Lua frameworks i know about: LOVR, which is really not good for desktop apps (or so i've heard) and Urho3D, which i just didn't like at all (yes i just judged a book by its cover what u gonna do about it), and LOVE is the closest to my requirements, its cross-platform and is ...
by mk8
Sun Apr 03, 2022 5:44 pm
Forum: Support and Development
Topic: rendering simple 3d planes (with clipping)
Replies: 19
Views: 12962

Re: rendering simple 3d planes (with clipping)

i don't suppose there is a good tutorial anywhere, is there? i don't wanna bother, but could you just give a quick example of how to do this? i have looked at meshes before, but i didn't quite understand the attributes/vertex data part. thx I don't know about tutorials, but I made a simple demo whe...