Hemesh Colorizer
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
code
output
screenshots
shapes
Colorizer.pde
GUI.pde
HemeshColorizer.pde
Model.pde
Modifier.pde
README.md
VRML.pde

README.md

Hemesh Colorizer

Hemesh Colorizer is an interactive tool to assign colors to 3D models. These models can then be exported and 3D printed.

The tool is written in Processing and based on HemeshGUI for the HE_Mesh library.

At the top left of the GUI, there is a zoom control but you can also the same by holding both mouse buttons down. Next are 6 color parameters. Depending on the coloring algorithm, these parameters would have different meanings. The "jiggle" feature randomly shifts the vertices of the mesh.

On the right are various dropdown controls with options. The first is to select the model shape to load (model files are loaded from the "shapes" directory). The second dropdown control is to select a HE_Mesh modifier and the third is to select the coloring algorithm.

Color algorithms:

  • 1 Color Linear: (P1,P2,P3) is RGB color mapped over model height
  • 1 Color Linear Inv: (P1,P2,P3) is (R,G,B) mapped over model height inverted
  • HSB: (P1,P2,P3) is start and (P3,P4,P5) end HSB colors
  • Random: Random colors (P1-P6 not used)
  • Random 2: Randomly picks from (P1,P2,P3) or (P4,P5,P6) RGB colors
  • Random RGB: Randomly picks colors from (P1,P2,P3) to (P4,P5,P6) RGB range
  • Face Area: (P1,P2,P3) RGB color mapped to face area
  • 2 Color Linear: Linear color range between (P1,P2,P3) and (P4,P5,P6) RGB colors
  • 2 Polar Interp: Polar color range between (P1,P2,P3) and (P4,P5,P6) HSB colors
  • Odd: Odd numbered faces from (P1,P2,P3) and (P4,P5,P6) RGB colors
  • Face Height Hue 2: Face height mapped to color range between (P1,P2,P3) and (P4,P5,P6) HSB colors
  • Rainbow: Face height mapped to full HSB color range
  • Mapping: RGB color mapping between P1 and P4, P2 and P5, P3 and P6
  • Ripples: Rippled effect using P4 angle and (P1,P2,P3) RGB color
  • Normals: Highlight forward facing normals using (P1,P2,P3) RGB color
  • Rainbow Origin: Colored from the origin using full HSB color range

The model can be rotated by holding down the left mouse button. The tool also supports various keyboard shortcuts:

  • G: hide/show the GUI
  • S: generate screenshot and store image file in "screenshots" directory
  • E: export the model to VRML and store the .wrl file in "output" directory
  • A: animate the rotation of the model
  • L: hide/show the model lines
  • F: hide/show the model faces
  • R: hide/show the lights

Once the model is exported, the .wrl can be uploaded to a 3D printing service like Shapeways and using the full colored sandstone material.

If you need to manually edit the model after it is colorized, you can import it into Blender. Unfortunately, Blender does not support colors in WRL files. So the file has to be converted to 3DS format to keep the colors in the model. You can use a free tool called MeshLab to convert the WRL file to a 3DS file.

The tool is developed for Processing 1.5.1 and HE_Mesh version 1.5 since there are compatibility issues with the newer versions of both Processing and HE_Mesh. The tool also uses ControlP5 Toxiclibs. Here are the Processing libraries that are required by Hemesh Colorizer (extract these into the Processing libraries directory):

See my Gallery and Blog of my 3D Designs.