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

G-code viewer artifacts #1237

Closed
Matszwe02 opened this issue Jan 18, 2023 · 6 comments
Closed

G-code viewer artifacts #1237

Matszwe02 opened this issue Jan 18, 2023 · 6 comments
Labels
⚡ Type: Bug Something isn't working

Comments

@Matszwe02
Copy link

Mainsail Version:

v2.4.1

Browser:

Firefox

Device:

Desktop PC

Operating System:

Windows

What happened?

Duplicated layers visible on prints in gcode viewer. Tested on Firefox and Opera

image

What did you expect to happen instead?

Normal rendering

How to reproduce this bug?

It happens from time to time as I try to view 3d models. MainsailOS on RPI 4 (CM4), freshly updated all packages. Slicer Cura 5

Additional information:

No response

@Matszwe02 Matszwe02 added the ⚡ Type: Bug Something isn't working label Jan 18, 2023
@meteyou
Copy link
Member

meteyou commented Jan 18, 2023

please upload this gcode

@meteyou
Copy link
Member

meteyou commented Jan 18, 2023

But you must make the bug report in the gcode viewer. Mainsail, use this library: https://github.com/Sindarius/npm_gcodeviewer

@Matszwe02
Copy link
Author

3DBenchy.zip

@Sindarius
Copy link
Contributor

Sindarius commented Jan 19, 2023

I'll look into correcting this issue in the viewer. However, what is happening is your make blob g-code G1 Z4 E40 F50 ; make blob makes the viewer believe that that is the initial layer height because it's the first extrusion of that layer. So when it goes to render your first layer appears oversized in the viewer

With the blob line
image

Without
image

@Sindarius
Copy link
Contributor

This PR includes a fix for this issue. #1239

@meteyou meteyou closed this as completed Jan 19, 2023
@Matszwe02
Copy link
Author

Thanks @Sindarius for spotting the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡ Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants