Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tsmith35 per BS PR4631 #6709

Merged
merged 10 commits into from
Sep 14, 2024
Merged

Tsmith35 per BS PR4631 #6709

merged 10 commits into from
Sep 14, 2024

Conversation

tsmith35
Copy link
Contributor

@tsmith35 tsmith35 commented Sep 9, 2024

Description

Porting BS PR 4631 to OrcaSlicer.
Bambu Studio PR#4631 was authored by @ziehmon

Screenshots/Recordings/Graphs

Bambu Studio after PR4631 top, OrcaSlicer after ported changes bottom

BS-spiral

OS-spiral

@SoftFever
Copy link
Owner

Thank you.

Cloud you add the original author as the co author?

Co-authored-by: Simon ziehmon@users.noreply.github.com
@tsmith35
Copy link
Contributor Author

Thank you.

Cloud you add the original author as the co author?

I made an additional commit (minor text changes) and added @ziehmon as co-author. Hopefully that will do it, but I added credit in the PR description as well.

@SoftFever
Copy link
Owner

Seems like Orca don't have this bug from the first place.
Following is the screenshot from Orca nightly build, seems all fine to me.
Can you verify?
image

@ziehmon
Copy link

ziehmon commented Sep 13, 2024

@SoftFever: to reproduce this, you need to remove timelapse_gcode in extruder settings. This is because the nature of the bug: Bambu inserted the spiral lift inside the timelapse_gcode, but it won't be executed if timelapse is disabled. By removing the timelapse_gcode, you'll simulate gcode generation without timelapse enabled, since Bambu Lab/Orca assume it is enabled for the gcode preview. I reproduced this with nightly.

Also by looking at the code, you can spot that Orca has this issue:

gcode += this->retract(false, false, LiftType::NormalLift); e.g. in https://github.com/SoftFever/OrcaSlicer/pull/6709/files#diff-cb3d09d2073b6e9032c65d07aa8f10d166324a53136b2aa1288f7b76f7d94319L4033, which is ultimately caused by: m_writer.set_current_position_clear(false); e.g. in https://github.com/SoftFever/OrcaSlicer/pull/6709/files#diff-cb3d09d2073b6e9032c65d07aa8f10d166324a53136b2aa1288f7b76f7d94319L4038

Copy link

@ziehmon ziehmon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only spotted the two sections I commented to be different to the original PR, besides that, LGTM.

src/libslic3r/GCode.cpp Show resolved Hide resolved
src/libslic3r/GCode.cpp Show resolved Hide resolved
@SoftFever
Copy link
Owner

@ziehmon Thank you for the explanation and code review!
Yeah, I can repro it after deleting the time-lapse custom gcode.

@tsmith35 All good for me. Thank you very much!

@SoftFever SoftFever merged commit c8216ac into SoftFever:main Sep 14, 2024
15 checks passed
@tsmith35 tsmith35 deleted the tsmith35-BS-PR4631 branch September 14, 2024 17:24
@ziehmon
Copy link

ziehmon commented Sep 14, 2024

My pleasure @SoftFever, super nice to see the fix in Orca. Will update the reddit post about this and ask for some before/after photos. Also thanks again to @tsmith35 for porting!

@ziehmon
Copy link

ziehmon commented Sep 20, 2024

Hi @SoftFever, hi @tsmith35,

unfortunately we need to revert this MR. There is a bug when AMS is used, since the position after changing filaments will be at X asis boundary and a spiral Z hop will move the axis out of physical boundaries. Details here: bambulab/BambuStudio#4841 (comment)

I am working on fixing this and will provide the fix here too. Sorry, I should've bought an AMS...

@ziehmon
Copy link

ziehmon commented Sep 20, 2024

New PR: bambulab/BambuStudio#4848

Let's wait for review and testing. Will surely take some time, but at least that's fixed again...for now

tsmith35 added a commit to tsmith35/OrcaSlicer that referenced this pull request Sep 20, 2024
SoftFever pushed a commit that referenced this pull request Sep 20, 2024
* Revert "Tsmith35 per BS PR4631 (#6709)"

This reverts commit c8216ac.
@SoftFever
Copy link
Owner

Hi @SoftFever, hi @tsmith35,

unfortunately we need to revert this MR. There is a bug when AMS is used, since the position after changing filaments will be at X asis boundary and a spiral Z hop will move the axis out of physical boundaries. Details here: bambulab/BambuStudio#4841 (comment)

I am working on fixing this and will provide the fix here too. Sorry, I should've bought an AMS...

No sorry at all!
You are doing angle's work here. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants