Heinz-Loepmeier / Blender-Gcode-Import

Import G-code from slicer to Blender mesh
70 stars 7 forks source link

Improve documentation #2

Open wernight opened 3 years ago

wernight commented 3 years ago

First I'd suggest to add to the README how to install (being a noob in Blender):

  1. Download repo as ZIP
  2. Blender > Preferences > Add-ons > Install… > Select ZIP and enable

Second I'd suggest to add in the README an explanation for both options:

Third I'd link to the WiKi which is really useful to get something to start rendering. I don't yet understand why the initial imported thing does not render or what it is exactly.

To give some background, I'd like to preview transparent filament, so I need to get the infill to render. However using the Convert To and setting Depth generates interlocking meshes which do no seem to render properly when translucent. I guess the meshes must be merged a bit like they get fused in real life. For that I tried the Weld modifier with a value of roughly half of the curve's Depth. It seem to do half of the job but only half and it's extremely slow. If you know a better way (or if I find one) it'd be very useful to document it.

wernight commented 3 years ago

The closest I could find so far which isn't too bad actually:

  1. Slice without support or brim and prefer a layer height of 0.4 (for standard prints).
  2. Create a metaball (Shift + A > Metaballs > Ellipse) with:
    • Radius: 0.015
    • Size Z: 0.5
    • Resolution Viewport: 0.01
    • Render Resolution: 0.005
    • Influence Threshold: 0.001
  3. Import with Split into layers deselected and Subdivide selected.
  4. Select the imported mesh, Particle system:
    • Emission > Number: 1000000 (or more)
    • Emission > Frame End: 1
    • Emission > Random Order: Unchecked
    • Emission > Source > Emit From: Verts
    • Physics > Physics Type: None
    • Render > Render As: Object
    • Render > Scale: 1
    • Render > Object > Instance Object: Mball

As for a material that makes it looks like transparent (using Cycles and a HDRi environment set up with a shadow/light catcher):

Result: image

wernight commented 3 years ago

I cannot easily edit the Wiki. Would you mind adding a section on how to render a preview of a transparent model based on my comment above?

wernight commented 3 years ago

One more reason to do this (i.e. single create a solid mesh of the boundary of the gcode) is for forces analysis. This way you can simulate infill and by using a thin layer metaball even simulate bad layer adhesion.