inkstitch / inkstitch

Ink/Stitch: an Inkscape extension for machine embroidery design
https://inkstitch.org
GNU General Public License v3.0
976 stars 172 forks source link

3D preview / turntable #1631

Open chatelao opened 2 years ago

chatelao commented 2 years ago

Is there any 3D preview function included?

The (anisotropic) reflections are best seen, if the light or the embrodery can be shown 3D on some kind of turntable.

Question:

kaalleen commented 2 years ago

There is something we call realistic preview, but that has nothing to do with an actual 3d preview. We just display the svg stitch plan with some svg filters applied to it in the simulator and the pdf print preview. The simulator uses the electron browser.

chatelao commented 2 years ago

In which part of the code could I find this?

kaalleen commented 2 years ago

The svg with filters? Have a look here: https://github.com/inkstitch/inkstitch/blob/main/lib/svg/rendering.py and also here: https://github.com/inkstitch/inkstitch/blob/main/electron/src/renderer/assets/js/simulator.js

lexelby commented 2 years ago

If you have ideas to make the realistic view better, I'd love to see them! This was the best I could figure out but there's definitely room for improvement.