• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

3D GCode Viewer integrated with DWC

Scheduled Pinned Locked Moved
Duet Web Control wishlist
42
284
29.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    MartinNYHC @Sindarius
    last edited by 20 Jan 2021, 14:45

    @Sindarius said in 3D GCode Viewer integrated with DWC:

    @MartinNYHC Some of the settings should be getting stored in the local browser, such as the extruder color settings, which setting is not saving?

    At least "Show Cursor" and "Live Z Tracking".

    undefined 1 Reply Last reply 20 Jan 2021, 15:05 Reply Quote 0
    • undefined
      Sindarius @MartinNYHC
      last edited by 20 Jan 2021, 15:05

      @MartinNYHC Yeah I don't think either of those are currently set to save. I'll look at adding them in 3.3

      ? 1 Reply Last reply 25 Jan 2021, 10:20 Reply Quote 1
      • ?
        A Former User @Sindarius
        last edited by A Former User 25 Jan 2021, 10:20

        @Sindarius

        Do you think you could also "wipe" the "stage clean" if I simulated/printed one file and then start another (without loading it in the 3d-viewer before) and I still see the "old" model with was loaded to the 3d-viewer "last" time, but of course since "now" I am printing a different file:

        05ff1dac-8cc2-42f8-b61c-35520ded5725-grafik.png

        I guess that is a bit more tricky to implement an automatic check if the current printed file is the same that is loaded/stored in the 3d-viewer and "if not" the stage is cleaned and only the cone is showed in live-tracking-mode?

        (Hope you get what Iยดm writing here ๐Ÿ™‚ and I am aware it would be more of a newbie or bomb-proof-comfort feature)

        Edit:
        For each loaded layer you seem to use already 2 different colours for already-printed-on-current-layer and yet-to-be-printed-on-current-layer? Right? But depending on the view and rendering it is very hard to see and for me in most angles it looks like the two colours are kind of blurred or transition into each other so that it is hard to tell which is which.

        An example here of cyan to grey kind of:
        837c1000-9cf3-4989-ae66-c026ececbe0e-grafik.png
        Would be great if you can try to optimize line-thickness/width and render-light/shading to have the two colours easier to differentiate?

        Great work!
        All the best

        undefined 1 Reply Last reply 25 Jan 2021, 13:51 Reply Quote 0
        • undefined
          Sindarius @A Former User
          last edited by Sindarius 25 Jan 2021, 13:51

          @LB I'll double check the code but if you start a different job/simulation the load job button should light up to let you choose the new file. I'll double check it.

          When you're printing/simulating a file there is a progress color in the progress tab where you can change the color for what has been printed. The light blue is the default extruders color for Tool 0. It may be worth while to experiment with some colors to see if you can find a set that work well for you. Some of what you are seeing is due to perspective.

          As a print progresses it will use the progress color in the progress tab to change the tool color to the printed color.

          I hope I am understanding the question/issue. Let me know

          1 Reply Last reply Reply Quote 0
          • undefined
            Colten
            last edited by Colten 2 Jul 2021, 17:54 7 Feb 2021, 17:39

            is there a limit to the number of objects which are counted by the plugin? I have a print bed where I added 28 or so objects and needed to cancel 3 of them. I could only cancel 1 as the other 2 and several others were not in the object list. The plugin also only reported 20 objects instead of the 28 that were being printed. Having the number user-configurable would be a nice thing if so

            78917a72-0cd6-4209-b141-b535a46c4917-image.png

            undefined 1 Reply Last reply 7 Feb 2021, 18:49 Reply Quote 0
            • undefined
              Sindarius @Colten
              last edited by Sindarius 2 Jul 2021, 18:49 7 Feb 2021, 18:49

              @Colten that limit is not on the viewer. The data comes from RRF

              1 Reply Last reply Reply Quote 0
              • undefined
                MJLew
                last edited by 7 Feb 2021, 20:37

                Is there a requirement for code headers? I have hand-written gcode files that print but do appear entirely empty in the viewer.

                undefined 1 Reply Last reply 7 Feb 2021, 21:43 Reply Quote 0
                • undefined
                  Sindarius @MJLew
                  last edited by 7 Feb 2021, 21:43

                  @MJLew if you want to send it to me I can take a look. I can assure you no headers are necessary. The viewer throws away every line that starts with ;

                  undefined 1 Reply Last reply 7 Feb 2021, 23:58 Reply Quote 0
                  • undefined
                    MJLew @Sindarius
                    last edited by 7 Feb 2021, 23:58

                    @Sindarius Thanks very much. The attached is a simple cylinder.cylinder 6c.gcode

                    undefined 1 Reply Last reply 8 Feb 2021, 00:53 Reply Quote 0
                    • undefined
                      Sindarius @MJLew
                      last edited by Sindarius 2 Aug 2021, 01:14 8 Feb 2021, 00:53

                      @MJLew

                      Thank you for sharing the file

                      So the problem is your file is using Carriage Return \r on the file and the viewer looks for Line Feed \n to break the lines apart so it is reading the whole file as a single line. What text editor did you use I usually see \r\n or \n it's the first time I've ever noticed just \r

                      Once I changed that it worked but it looks like it's not appreciating somthing in the G3 in the rendering. I will have to look into that, my guess is something is wrong with the R calculation.

                      b35d4b0b-f56e-4a9d-8479-fccc46386f9c-image.png

                      I found the issue in the arc code that the renderer uses. Fix should be in for 3.3

                      cd450135-580b-48ee-af93-cae8ee9fe330-image.png

                      undefined 1 Reply Last reply 8 Feb 2021, 02:53 Reply Quote 0
                      • undefined
                        MJLew @Sindarius
                        last edited by 8 Feb 2021, 02:53

                        @Sindarius Thank you Sindarius. The file was made by code I wrote in LiveCode, and, yes, the lines are separated by returns. I can probably use any line delimiter I like, but returns are normal for Mac, I think.

                        I look forward to using the fixed viewer, as I am doing a lot of trial and error printing with my custom gcode using G2 and G3 because Simplfy3D won't display it.

                        undefined 1 Reply Last reply 8 Feb 2021, 04:05 Reply Quote 0
                        • undefined
                          MJLew @MJLew
                          last edited by 8 Feb 2021, 04:05

                          @MJLew Oh, and I should add that the return-delimited file runs with Duet and Smoothieboard, so maybe the viewer should allow return-delimited files too. ๐Ÿ™‚

                          undefined 1 Reply Last reply 8 Feb 2021, 12:40 Reply Quote 0
                          • undefined
                            Sindarius @MJLew
                            last edited by 8 Feb 2021, 12:40

                            @MJLew I'll take it into consideration. In the meantime I have a temporary solution that may at least get you testing in the near term. I have been working on a voxel version of the visualizer for fun and I already applied the same fixes that will be in 3.3. If you can tolerate some little squares in your testing you can give this a go.

                            https://sindarius.github.io/

                            746e9412-3e68-4286-933c-af054a56df24-image.png

                            Image from iOS.png

                            undefined 1 Reply Last reply 8 Feb 2021, 20:22 Reply Quote 0
                            • undefined
                              MJLew @Sindarius
                              last edited by 8 Feb 2021, 20:22

                              @Sindarius Works fine for gcode from S3D, but not my return-delimited files come up blank. (The Minecraft style is really cool!)

                              undefined 1 Reply Last reply 8 Feb 2021, 20:26 Reply Quote 0
                              • undefined
                                Sindarius @MJLew
                                last edited by 8 Feb 2021, 20:26

                                @MJLew It's going to be the same deal. It is using the same processing so it's not going to accept carriage return.

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  MartinNYHC
                                  last edited by 14 May 2021, 05:42

                                  Can Ideamaker label objects? Cannot find something in the settings menu and GcodeViewer doesn't show object labels.

                                  dc42undefined 1 Reply Last reply 14 May 2021, 11:51 Reply Quote 0
                                  • dc42undefined
                                    dc42 administrators @MartinNYHC
                                    last edited by 14 May 2021, 11:51

                                    @martinnyhc said in 3D GCode Viewer integrated with DWC:

                                    Can Ideamaker label objects? Cannot find something in the settings menu and GcodeViewer doesn't show object labels.

                                    Yes, it labels objects, and RRF 3.3RC2 recognises those labels.

                                    Duet WiFi hardware designer and firmware engineer
                                    Please do not ask me for Duet support via PM or email, use the forum
                                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                                    undefined 1 Reply Last reply 14 May 2021, 18:46 Reply Quote 0
                                    • undefined
                                      MartinNYHC @dc42
                                      last edited by 14 May 2021, 18:46

                                      @dc42 said in 3D GCode Viewer integrated with DWC:

                                      @martinnyhc said in 3D GCode Viewer integrated with DWC:

                                      Can Ideamaker label objects? Cannot find something in the settings menu and GcodeViewer doesn't show object labels.

                                      Yes, it labels objects, and RRF 3.3RC2 recognises those labels.

                                      Need to double check that. Had a print today where I would like to cancel an object and it was not possible (which means the option "show object labels" was grayed out).

                                      T3P3Tonyundefined 1 Reply Last reply 14 May 2021, 18:53 Reply Quote 0
                                      • T3P3Tonyundefined
                                        T3P3Tony administrators @MartinNYHC
                                        last edited by 14 May 2021, 18:53

                                        @martinnyhc just had a quick check in the latest idea maker. the output I got is labelled as follows:

                                        .....
                                        ;PRINTING: test0.stl
                                        ;PRINTING_ID: 1
                                        .....
                                        ;PRINTING: test2.stl
                                        ;PRINTING_ID: 0
                                        ......
                                        ;PRINTING: test1.stl
                                        ;PRINTING_ID: 2
                                        .....
                                        

                                        so it is labelling the objects

                                        www.duet3d.com

                                        undefined 1 Reply Last reply 23 May 2021, 09:52 Reply Quote 0
                                        • HebigTundefined
                                          HebigT
                                          last edited by 21 May 2021, 19:42

                                          What might cause the cursor to be offset from the rendered preview?

                                          GCV.JPG

                                          I'm using a Toolchanger, so each of the tools have offsets with respect to the Z-probe. Perhaps the offset is not being referenced?

                                          undefined 1 Reply Last reply 22 May 2021, 13:03 Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA