Open malpiatko opened 1 year ago
well that's simply not possible, you will need to modify the source code if the functionality doesn't exist already
If I understand correctly you would like to be able to call Goxel from command line with a file input and output the positions and color of the voxels?
This is something that would be easy with a scripting support. Alas this task is still pending and I am too busy at the moment with other things. It’s really something I would like to do at some point though.
On Mon, Feb 20, 2023 at 1:38 AM Ela Siwy @.***> wrote:
Closed #309 https://github.com/guillaumechereau/goxel/issues/309 as completed.
— Reply to this email directly, view it on GitHub https://github.com/guillaumechereau/goxel/issues/309#event-8555669471, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2JH74SDI6JGCG4MRGYYDWYJK7PANCNFSM6AAAAAAVAVHLLQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Sent from my iPad.
Thank you @guillaumechereau your understanding is correct. If you point me in the right direction in scripting I am happy to work on this functionality :)
I started two branches a long time ago to test both scripting with lua and javascript. I think the code was too messy and I gave up at the time.
The idea would be to expose all the core structures of goxel somehow (image_t, layer_t, mesh_t, etc.) into classes accessible from the scripts.
@guillaumechereau you can try LuaJIT for that, just include the definitions and you can access the structs very easily.
i recently added Lua for rendering my gui code but dropped the idea, but you can get a idea of how it works: https://github.com/pegvin/csprite/tree/luajit/data/scripts
initialization of lua vm and everything is same because LuaJIT was made to be a drop-in replacement of Lua, but with LuaJIT you can use FFI extension and stuff to call C functions.
I am starting to work on the scripting support for goxel again. @malpiatko I am trying to understand what you want to do exactly. If I understand correctly you would like for goxel to continuously output the voxels positions and color to stdout?
I just love what you did. It's so cool!
I am trying to use Goxel as a UI for 3D path painting project. I am a bit rusty on C and how it generally works on Mac.
I was wondering if it's possible to just get the voxel positions logged to stdout (live) without me having to figure out how to install from source code. Otherwise any tips on installing from source code on Mac?