Grasshopper

algorithmic modeling for Rhino

How can I apply a displacement maps to Meshes for 3D printing?

example: I want to create an embossed pattern that wraps around the surface of a simple wine glass, using a displacement map.

Then save the wine glass with the embossed pattern geometry for 3D printing. How would I do that in GH?

The following pic shows the process in Maya.Note: the traditional use of Displacement maps is for rendering, such as the pic of the Head, where it is used as an opacity map.

Views: 11023

Attachments:

Replies to This Discussion

Get a flat demo for the moment and I'll try to find some other stuff as well

Attachments:

There are many examples for flat surface displacements at this forum. But none that wrap around a mesh. The Glass.3dm would require a simple Cylindrical mesh that would project the displacement map around the glass. other forms would be Spherical, Box, Normal projection. 

Houdini also appears to offer some interesting possibilities:

http://www.z-way.org/script-and-gizmo/houdini/houdinimodeling


 

Hello Kim
There are displacement on mesh not flat. For example reaction diffusion vase, I used a numeric value on each point of the mesh. If you want an image to bump it is doable you will have to transform Cartesian coordinates to polar coordinates. X and Y are transformed to an angle. You will have to multiply angles from 0 2pi by the number of copies you want around. The same in z. The most " difficult" is if you don't want bump inside the glass so you will have to know if point is interior or exterior. It is doable with some logic on normal and point position.
If you want a script please post the bump you need ( image or equation) interior exterior ... And I could give it a try !

Hi Laurent
It really does not matter which displacement map I chose, almost any image converted to black and white should work, naturally the grey tones introduce softer depth relationships.Your Maze stuff certainly works! ...bravo!I'm wondering if you can generalize your Maze GH stuff to include maps?  here is the glass rendered with the map ... using opacity

Hello Kim,

here is a first  script for generating polar displacement between 2 heights. It is best to have good triangulation, because here most of the mesh are where there is no details. But it works. You need weaverbird. 

Kim here

http://www.grasshopper3d.com/forum/topics/maze-from-mesh?commentId=...

I made a mesh which could be used to generate seamless map of Maze. At the moment there is just the geometry, you will have to make the map.

I think I was overly optimistic, about the quality of image displacement to applied geometry. Even a high quality converted vector to raster graphics image, has no influence on the quality of the displacement.

I was not expecting image displacement to be of the quality shown in the Maze-Heart pic above. In most instances some of my Image maps are barely indistinguishable from each other, when applied to the Mesh, this could improve by choosing a smaller repeating pattern sample.

Realistic for glass that is molded! :)

Thanks Laurent, when experimenting with your script, I have to be very careful

about setting the H max H min values

Why careful ?  

when I set the Hmin to 5, the pattern appears on the inside of the glass. Could be what Kim meant. I was too busy doing other things to take time to investigate this further...

There is a little error in my script. I wanted to let user to invert B&W so to go from 0  (black) to 1 (white) to 1 (black) to 0 (white). But equation if(x,y-1,y) must be replaced by if(x,1-y,y) !!! So now bump is good according to normal. I also have strange results with no update with a slider change !! I need the use of recompute. 

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service