Suggestion: Try using mesh mixer to smooth it.
http://www.mmmanual.com/deform-smooth/
Wow. ęµ®éē°åŗ¦å¾. Roughly means embossed grayscale in Chineseā¦
GREAT search term Phil. Seems to work fine in google.com too
Try playing with the primary color picker tooā¦
White and black yield good results.
@PhilJohnson what do you think about adding an optional ānotificationā when the processing is done? Options for playing a sound and/or showing a message.
Also - am I correct that you and many other XCarve users still use Windows 7?
what was the indication that it was a limit? Did you receive an error in the output log?
When program starts it should log this:
Processing - big.bmp
Facecount: 4,176,996
Estimated file size: 191 MB
What was your Estimated file size
?
can you run this and paste what it puts in your clipboard?
java -XX:+PrintFlagsFinal -version | findstr /i "HeapSize PermSize ThreadStackSize" | clip
Release 1.1 should address the issue with the memory by providing min and max memory values to the Java runtime. You can tweak these if you find it necessary.
Only the first zip file.
- YES heightmap2stl-gui.zip
- NO Source code (zip)
- NO Source code (tar.gz)
I refreshed the binary in release 1.1. Make sure you have the right FileVersion by right clicking the exe and checking the Details tab.
When you run the new version, it will tell you how it ran the JAR file. Youāre looking for something like -DXmx=4g
Info: A STL file with the name eagle2017-06-02T21-26-50.stl already existed, and was renamed to C:\dev\heightmap2stl-gui\bin\Release\eagle2017-06-02T21-26-50.stl
java.exe -DXms=64m -DXmx=4g -jar āC:\Users\JEREMY~1.SIM\AppData\Local\Temp\heightmap2stl.jarā āC:\heightmap\eagle.jpgā 25 0
Let me know if you get another out of memory issue. You can adjust the Xmx setting in the heightmap2stl-gui.exe.config file. If 4g doesnāt work, Iād suggest you try 8g. You have to relaunch the program after modifying the file.
Shouldnāt beā¦ whatās the first six lines in the log when you run?
Max memory java can use.
I had no issues with the usmc logo
Possibly. What version java do you have?
Can you run this from the command line?
Java -version
Hmm. Was hoping to know 32bit or 64bit from java -version outputā¦
Didnāt intentionally change anything here. Iāll check
Any message that shows up or does it just fail to launch multiple windows?
Aside from multiple files queued upā¦ any other ideas?
This little gem works pretty good, grabbed a basic black and white image, inverted, applied a 3 pixel gaussian blur then fed it into heightmap2stl.
Thatās sexy.
Thx for sharing the technique.
Alsoā¦ get carvin!
Those r hardware and os specs, not java
Will post more details tomorrow.
@JeremySimmons Thanks for sharing your GUI. Iāve been playing with it today and it looks like I just broke itā¦ ran into the same OutOfMemoryError. =(
Iām running:
java version ā1.8.0_131ā
Javaā¢ SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpotā¢ Client VM (build 25.131-b11, mixed mode, sharing)
I was able to create about 5 or 6 stl files before this happened.
Just as a test I ran a 1600 x 1200 24 bit grey scale image with lots of details
I have Java version 8 Update 91 build 1.8.0_91-b14
Base Height = 0, Model Height = 10
It produced a 187MB STL file with 1,927,823 vertices and 3,845,586 faces.
I will continue to playā¦
Please install the 64-bit Java Runtime Environment from Oracle:
Java SE Runtime Environment 8 Downloads
Direct Link: Windows x64 Offline - jre-8u131-windows-x64.exe
Make sure that java -version includes this line:
java version ā1.8.0_131ā
Javaā¢ SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpotā¢ 64-Bit Server VM (build 25.131-b11, mixed mode)
I downloaded the direct link you posted and itās up and running again. Thank you. Iāll let you know if I run into any other road bumps.
Hereās what Iām messing around with:
Thanks for the feedback. It doesnāt surprise me at all that the software would have issues with OutOfMemory in a 32-bit java with or without the Xmx setting.
Iām working on porting the code to .Net right now so Iām not depending on Java.