sketchucation logo sketchucation
    • Login
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    View.write_image shows dotted line border

    Scheduled Pinned Locked Moved Developers' Forum
    13 Posts 5 Posters 2.4k Views 5 Watching
    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.
    • rami_lpmR Offline
      rami_lpm
      last edited by

      Oh, that was a typo, I've corrected it.
      Yes, this only happens in sketchup 2017.

      Edit:
      All right, there are 'magic' numbers at work here.
      If you write the image with resolution up to 1020x1020, it comes out fine.
      Above that the border starts showing, and as the resolution grows, it becomes thicker, and the gaps bigger.
      At about 2000x2000, a square appears, as the lines are so thick and the gaps so wide that the lines meet in the center of the image.
      At 2036x2036 the glitch is gone.
      Aaaand its back at 2041x2041.

      This is strange.

      For the moment, I will advise the users of my plugin to use one of the 'safe' resolutions on their panoramas.

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        In what versions of SU do you observe this?

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • rami_lpmR Offline
          rami_lpm
          last edited by

          I've only encountered this in sketchup make 2017 on windows 10, Driven tested it on a mac, same issue.

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            Have you tested on older versions? Do you think this is a regression?
            I wonder if it's related to a regression where the aspect ratio overlay bars are drawn as solid black in SU2017.

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • rami_lpmR Offline
              rami_lpm
              last edited by

              I wrote the panorama plugin in 2014, and never had this problem.

              Ok, I've just tested this.

              
              model=Sketchup.active_model
              view=model.active_view
              cam=view.camera            
              cam.aspect_ratio=1
              
              

              Yes, in SU2016 the bars were transparent. in SU2017, the bars are black. That's a regression? I don't remember the bars ever being black.
              I fail to see why this change would interfere with view.write_image
              Has anyone else reported this problem when exporting images? maybe with other aspect ratio?

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                The bars were by default a transparent black. The color can actually be adjusted. But in SU2017 the transparency is ignored. (I haven't actually tried to see if it picks up custom colors...)

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • rami_lpmR Offline
                  rami_lpm
                  last edited by

                  the color can be adjusted? is there a command to do that? I can try and see.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jim
                    last edited by

                    @rami_lpm said:

                    the color can be adjusted? is there a command to do that? I can try and see.

                    I think it is one of the RenderingOptions.

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      Jim is correct, I don't recall exactly what it is, but you find it if you inspect the available keys.

                      Thomas Thomassen β€” SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        driven
                        last edited by

                        Sketchup.active_model.rendering_options["BandColor"] = (Sketchup;;Color.new(185,138,0,127))
                        
                        

                        this works in v16 but has no effect in v17 on my mac...

                        john

                        learn from the mistakes of others, you may not live long enough to make them all yourself...

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          caper8
                          last edited by

                          This is a cross post from our SketchUp Forum post

                          tl;dr - In addition to trying the work-arounds in this thread (only the resolution magic numbers worked) we discovered that turning off anti-aliasing eliminates the issue for any resolution - if you can accept the jaggies.

                          Hope that helps someone diagnose and fix the issue, or is a workaround for someone until the fix.

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement