Generating project thumbnails
-
Does anyone have any recommendations for the easiest way to generate a thumbnail of a project?
I've looked at the SVG serializer which works great but only for 2D shapes. Is there a way to flatten my 3D shapes to be 2D? It's just a unique thumbnail so it doesn't really need to look any particular way
-
@gilboonet It works. I needed to specify ... while pushing content into the return variable. I still need to stop the animation so my video capture will perfectly loop. And there's something that I didn't manage to do, it's creating a new project, for the moment I'm changing demo-web.js, otherwise there is an error (cannot find myAnim.js when I try to run npΓΉ run myAnim.js)
-
@gilboonet Finally, I was able to display the .obj with distincts groups as I needed, but I struggled to have the numbers, there's no error but they are not rendered, even if when I tested I managed to display one very big vectorChar. I will try again ASAP. It's a promising feature.
-
@z3dev The demo works fine (I tested web version), but apparently it cannot use .obj file as require. Is there a way to import such file, maybe using obj deserializer ? I will try to use my obj2jscad.js converter as workaround.
-
Hello, I'm making some animations to help assembly of my unfold patterns. For the moment I'm recording them by hand, but it would be great to be able to record by program, as it only consist on rendering a rotating view. So I'm going to try this demo.
Example of what I want to make:
-
Thank you! That is exactly what I was looking for.
I didn't look in there because I am working in the browser so I didn't check the CLI example
-
@BarbourSmith see the README. there are steps on how to setup and run the demo.
-
Well that's fantastic!
I looked through https://github.com/jscad/OpenJSCAD.org/tree/V2/packages/utils/regl-renderer , but I think I am missing where the entry point for png generation. Got any pointers on where I should begin?
-
@BarbourSmith You keep asking the best questions.
Actually, the new rendering engine for V2 JSCAD can render any design directly to a image (PNG) file. You will have to setup some scripts to automate the process.
https://github.com/jscad/OpenJSCAD.org/tree/V2/packages/utils/regl-renderer