Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling logs from Goxel on Mac #309

Open
malpiatko opened this issue Feb 19, 2023 · 7 comments
Open

Pulling logs from Goxel on Mac #309

malpiatko opened this issue Feb 19, 2023 · 7 comments

Comments

@malpiatko
Copy link

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?

@pegvin
Copy link
Contributor

pegvin commented Feb 19, 2023

well that's simply not possible, you will need to modify the source code if the functionality doesn't exist already

@guillaumechereau
Copy link
Owner

guillaumechereau commented Feb 19, 2023 via email

@malpiatko malpiatko reopened this Feb 19, 2023
@malpiatko
Copy link
Author

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 :)

@guillaumechereau
Copy link
Owner

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.

@pegvin
Copy link
Contributor

pegvin commented Feb 21, 2023

@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

@pegvin
Copy link
Contributor

pegvin commented Feb 21, 2023

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.

@guillaumechereau
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants