3d (depth map) grayscale images

Suggestion: Try using mesh mixer to smooth it.
http://www.mmmanual.com/deform-smooth/

1 Like

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.

2 Likes

@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?

This one made me think of you @PhilJohnson

1 Like

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.

1 Like

Only the first zip file.

  • YES heightmap2stl-gui.zip
  • NO Source code (zip)
  • NO Source code (tar.gz)
2 Likes

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

1 Like

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.

1 Like

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.

6 Likes

Thatā€™s sexy.
Thx for sharing the technique.

Alsoā€¦ get carvin!

3 Likes

Those r hardware and os specs, not java
Will post more details tomorrow.

1 Like

@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ā€¦

@Jason, @PhilJohnson

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)

1 Like

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.