-
Notifications
You must be signed in to change notification settings - Fork 167
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
How did you make a color changing render? #83
Comments
I don't think I still have the code snippet, it got lost somewhere and I do not know where. But I can remember vaguely how I did it. To sum it up, I used the animation window in the OpenSCAD GUI to program the movement/color, get an image dump, and used Image Magick to compile into a gif. Animating in OpenSCAD can be done with the variable
After playing the animation and having the dump images box checked, the files were in order in the script directory. With ImageMagick, you can collect all these image files and generate a gif. |
Thanks! Got it working with the It takes a value between 0.0 and 1.0 and translates it to an RGB value (e.g. [1,0,0] would be red, [0,1,0] would be green)
I've created a docker container/script that can do this with any .stl file on my github spuder/CAD-scripts/stl2gif.sh Thanks again |
I've spent a long time figuring out how to make a rotating render using openscad
https://stackoverflow.com/a/70468907/1626687
https://github.com/spuder/CAD-scripts/blob/main/stl2gif.sh
How did you make the render change colors?
The text was updated successfully, but these errors were encountered: