Make something
Email yourself a 10% off coupon
Send
Coupon sent! Check your email
This will be 3D printed near you and delivered to your door by May 05
Loading

I want to do height mapping in OpenScad. The easiest way to do it is to generate little cubes for each offset. That's a good start, but I wanted more. What I really want is the ability to layout a polyhedron mesh use a height map to alter the vertices of that mesh.This thing is just the latest incarnation of the library. With it, you can do the following:display_mesh_height([32,32], [2,2], heightmap=checker_image);That is, specify a size in millimeters for the mesh [32,32], then a resolution [2,2], and the height map, our checker image.The work is actually located in the test_mesh.scad file. It will do the height, but not do the color. That will come next.Another thing that I'm doing in this incarnation of the library is separating out this thing called glsl.scad Basically, recognizing that there's a lot of stuff that I'm doing that mirrors what I would be doing in 3D graphics. A lot of this stuff is like vertex and shader programming, so I figured I'd model it in the same way. It also makes it easier to go from here (OpenScad) to rendering in something like the iPad.Blog entry: http://williamaadams.wordpress.com/2011/09/25/openscad-texture-mapping-2/GitHub: https://github.com/Wiladams/OpenScadModels/tree/master/LibrariesIt's a paltry entry, but a nice way to do height maps. It takes up less resources to display the mesh than to display a bunch of cubes.UPDATE: OK, I got unlazy, and actually included the proper mesh renderer, so you can in fact make solid things from your bump maps.1) Download the various .scad files 2) Play with the test_mesh.scad file 3) Generate some meshes 4) Generate some objects 5) Print 6) Rejoice!

Height Mapped Polyhedra in OpenScad
Please wait while we prepare the order
$ 0.00 + free delivery
Sorry we had trouble getting the 3D files. Download them yourself and upload them here to place an order.
View files
  • 0 inches x 0 inches x 0 inches
  • this product is 3D printed
  • 16 available colors
  • material is a strong plastic
  • free delivery by May 05
  • 0 parts
Delivery address
This field is required.
This field is required.
Please enter a valid email.
This field is required.
This field is required.
This field is required.
This field is required.
This field is required.
Pay with credit card or debit card
or pay with
Place order
Order summary
Height Mapped Polyhedra in OpenScad
Color:
Quantity:
Subtotal
$
Delivery (May 04 - May 06)
Free
Total
$