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

code changes to compile on arm macOS. #86

Closed
wants to merge 22 commits into from
Closed

Conversation

seanth
Copy link

@seanth seanth commented Feb 17, 2024

Used a subset of code from robotconscience. Mostly the "woot, compiles" commit. https://github.com/robotconscience/Magic-Sand/tree/415e8cc33f27932f00a37f178bd1db7da2219fa4

Confirmed compiles on a m1 Mac running macOS 12.6. Used OpenFramework 0.12

Goes a long way to addressing #14, #63, #64, #67, #73, and #85. Most of those were about the prebuilt versions not working on the 64 bit OS, but these changes compile and run on 64bit ARM. Have not tested on 64bit Intel.

Build was done from commandline after using homebrew to install openframeworks, and manually installing the needed addons.

Fork by robotconscience, "of_v11.2" branch

robotconscience@415e8cc
homebrew installs openframework into Applications on mac
removed the code put in place for using NI2, but make notations in comments about where it would got
compiles on mac with ARM and openframeworks 0.12
@seanth seanth changed the title code changes to compile on am macOS. code changes to compile on arm macOS. Feb 17, 2024
A stub laying groundwork for it so save a file that can be used as a DEM by other software
More reasonable path for debug files
reads in a file path for where to save the region of interest file

right now saves tow flavours of image files when 's' is pressed:

the kinect greyscale depth image
the image that the projector shines on the sand

The latter is probably what will end up being the one used as the final, but they are both experiments to see what works
comment out unused variable
defined string for the region of interest image file path
when user presses 's' save an image file of the sandbox terrain
An image is being generated of what the projector shows on the sand. Still to do:

   •Save to location defined in the defaults file
   •Save only the ROI. Maybe optionally save all
   •Make a custom screen buffer using a dedicated colour map so the resulting image is greyscale with pixel values of 0-255
First draft of a greyscale colour map key for making the DEM from the screenbuffer
commenting out unused parts to clean up compiling warnings
@seanth seanth closed this Mar 20, 2024
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

Successfully merging this pull request may close these issues.

1 participant