Lithophane Workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Lithophane Workbench
Hi,
some time ago I stumbled across this page (http://3dp.rocks/lithophane/) that lets you create lithophanes by uploading a image to the side. Recently the idea to print some images came to my mind again.
As I am a programmer myself ( Not python. This was the first time I really did something in python. So please go easy on me ) and FreeCAD is a really powerful tool ( And fairly easy to extend) I decided to combine Lithophanes with the power of FreeCAD.
I started this workbench https://github.com/furti/FreeCAD-Lithophane that lets you import images into FreeCAD and create a Lithophane Mesh from it.
Maybe this Workbench can be useful for other FC Users too
The Readme on GitHub should document the currently available features well enought to get started I think. If something is unclear please let me know.
some time ago I stumbled across this page (http://3dp.rocks/lithophane/) that lets you create lithophanes by uploading a image to the side. Recently the idea to print some images came to my mind again.
As I am a programmer myself ( Not python. This was the first time I really did something in python. So please go easy on me ) and FreeCAD is a really powerful tool ( And fairly easy to extend) I decided to combine Lithophanes with the power of FreeCAD.
I started this workbench https://github.com/furti/FreeCAD-Lithophane that lets you import images into FreeCAD and create a Lithophane Mesh from it.
Maybe this Workbench can be useful for other FC Users too
The Readme on GitHub should document the currently available features well enought to get started I think. If something is unclear please let me know.
Re: Lithophane Workbench
This could be an interesting application for 3D surface in Path workbench too.
Is your workbench similar to mario52's Macro Texture?
Is your workbench similar to mario52's Macro Texture?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Lithophane Workbench
Hi Chris,
thank you for pointing me to this macro. Didn't know about this.
Unfortunately I can't test it right now. Tried to convert Images to greyscale in gimp and Export them to bmp. Even a simple Image in Gimp in 1 bit black and white mode does not work. I get the following message all the time:
The differences I can see on a quick look are:
Texture macro Can only guess some things as i can't get it to work right now
thank you for pointing me to this macro. Didn't know about this.
Unfortunately I can't test it right now. Tried to convert Images to greyscale in gimp and Export them to bmp. Even a simple Image in Gimp in 1 bit black and white mode does not work. I get the following message all the time:
Code: Select all
Bits_pixel 1 unrecognized format
Texture macro Can only guess some things as i can't get it to work right now
- Only works with bmp files with 256 colors
- Simply creates the Image plane itself not an actual solid?
- Uses some higher Level Tools to create the geometry (Bsplines)?
- Should work with every file Format QtGui.QImageReader(imagePath) can read
- Creates an acutal soid mesh. Mesh -> Analyze -> Check solid Mesh reports it as a solid
- Works on meshes for Performance reasons right now. There is a Option to convert the mesh to a Part object but this needs clearly some polish
Re: Lithophane Workbench
Thanks for analysis and explanation.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- sliptonic
- Veteran
- Posts: 3459
- Joined: Tue Oct 25, 2011 10:46 pm
- Location: Columbia, Missouri
- Contact:
Re: Lithophane Workbench
Looks like fun.
I made a very simple lithophane a while back but this is next - level stuff.
https://youtu.be/sik5elnSge0
I made a very simple lithophane a while back but this is next - level stuff.
https://youtu.be/sik5elnSge0
Re: Lithophane Workbench
Nice WB!furti wrote: ↑Sat Aug 25, 2018 9:15 am Hi,
some time ago I stumbled across this page (http://3dp.rocks/lithophane/) that lets you create lithophanes by uploading a image to the side. Recently the idea to print some images came to my mind again.
As I am a programmer myself ( Not python. This was the first time I really did something in python. So please go easy on me ) and FreeCAD is a really powerful tool ( And fairly easy to extend) I decided to combine Lithophanes with the power of FreeCAD.
I started this workbench https://github.com/furti/FreeCAD-Lithophane that lets you import images into FreeCAD and create a Lithophane Mesh from it.
Maybe this Workbench can be useful for other FC Users too
The Readme on GitHub should document the currently available features well enought to get started I think. If something is unclear please let me know.
You should ask to be added to FC Addons list
https://github.com/FreeCAD/FreeCAD-addons
Re: Lithophane Workbench
Hi furti,
w/PY3/QT5 I get when trying to import an image.
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14442 (Git)
Build type: Release
Branch: master
Hash: bb9d737ba1158fdba5d06df45ab3e213065139cd
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
I cloned your repo into my %appdata%/FreeCAD/Mod directory.
Import works with PY2/QT4
Great work on the read.me and issue tracker on your repo. I noticed you already have https://github.com/furti/FreeCAD-Lithophane/issues/11
Let me know if you prefer me to comment on the PY3/QT5 there.
w/PY3/QT5 I get
Code: Select all
Running the Python command 'Import_Image' failed:
Traceback (most recent call last):
File "C:\Users\Chris\AppData\Roaming\FreeCAD\Mod\FreeCAD-Lithophane\import_image.py", line 17, in Activated
fileName = QtGui.QFileDialog.getOpenFileName(QtGui.qApp.activeWindow(), "Open Image", '', "Image Files (*.png *.jpg *.bmp)")[0]
'NoneType' object has no attribute 'activeWindow'
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14442 (Git)
Build type: Release
Branch: master
Hash: bb9d737ba1158fdba5d06df45ab3e213065139cd
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
I cloned your repo into my %appdata%/FreeCAD/Mod directory.
Import works with PY2/QT4
Great work on the read.me and issue tracker on your repo. I noticed you already have https://github.com/furti/FreeCAD-Lithophane/issues/11
Let me know if you prefer me to comment on the PY3/QT5 there.
"fight the good fight"
Re: Lithophane Workbench
Thanks for the kind words. Good to hear that there is some interest in the Workbench
Feel free to comment on issues or create new ones when you find bugs or have ideas for new features.
What steps are involved to get added to the Addon list? Do I have to ask somebody on the forum or should I create a pull request in the Github repo?
Thanks for testing it with a PY3 and QT5 build. Unfortunately I had not the time to try it myself. But the download is running right now I copied your bug description to the Github issue. Will inform you when the bug is fixed.
Feel free to comment on issues or create new ones when you find bugs or have ideas for new features.
Re: Lithophane Workbench
Hi @furti
Interesting workbench. Thanks for creating and sharing it.
Interesting workbench. Thanks for creating and sharing it.
Re: Lithophane Workbench
you have to simply open an issue similar to this
https://github.com/FreeCAD/FreeCAD-addons/issues/48