prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.63k stars 1.92k forks source link

Variable layer height doesn't work when using modifier object. #7794

Open ImTheBadWolf opened 2 years ago

ImTheBadWolf commented 2 years ago

Version

2.4.0

Operating system type + version

windows 10 64bit

3D printer brand / version + firmware version (if known)

Ender-3

Behavior

Variable layer height doesn't work when using modifier object. When the model contains modifier object, variable layer height doesn't work. After deleting the modifier, variable layer height works.

  1. Add modifier to model
  2. Add variable layer height to model
  3. Slice and check result => no variable layer height in the layers preview
  4. Remove modifier from the model and slice again
  5. Variable layer height appears in the layers preview

image image image

Project File (.3MF) where problem occurs

.3MF files are not supported in issues Here is zip file variable layer height issue.zip

Jebtrix commented 2 years ago

Worked fine for me. Did you select Height for View mode?

variable_height

ImTheBadWolf commented 2 years ago

I tried selecting the height mode but it still doesnt show up in the preview. Edit: Im adding the variable layer height through the top bar menu after clicking on the "Knob_Bell_Short (1) (1)" part. If that helps. image \ image

ImTheBadWolf commented 2 years ago

Update: I tried downloading the 3mf file that I uploaded here and in that file the variable layer height works. But when I try the same file that I uploaded, there the layer height doesnt work.

I found work around on how to get the variable layer height to work. After opening new model with modifier I have to create the variable layer height which doesn't show up in the sliced preview yet. But when I save the project as new .3mf file, close the slicer and open the newly created 3mf project, the variable layer height works.

Jebtrix commented 2 years ago

Trying to narrow this down it is an odd one. I netfabb fixed (just in case) objects, exported the STL meshes, started fresh project and can reproduce it consistently. For whatever reason the body4.stl mesh is the cause. The same problem can be reproduced if you add body4.stl as a part instead. Then if you change it to a modifier, variable height will not apply.

Using any other meshes does not have this problem.

variable_layer_issue

ImTheBadWolf commented 2 years ago

Yeah and now if you would have saved the whole prusaslicer project as a new .3mf file and reopen that save, then the layer height will work even with that modifier.