sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    How to get near and far clipping plane of view?

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 5 Posters 9.3k 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.
    • A Offline
      AlexMozg
      last edited by

      How to get near and far clipping plane of view?
      These values are displayed in the Camera dialog box.
      (Sketchup.send_action 10624)
      nf.jpg
      If impossible to get the exact values, then how to calculate these values approximately?

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        When a new model is opened, turn ON the fog (via the "Fog" toolwindow.)
        Then display the model's RenderingOptions...

        ..you'll see that at that time, the clipping planes equal the Fog distances.

        But then they go out of sync, if you zoom in / out, or drag the sliders in the "Fog" toolwindow.

        Clip_Plane.png

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          Formulas:

          Link Preview Image
          Depth of field - Wikipedia

          favicon

          (en.wikipedia.org)

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            Alex.. did you ever solve this ??

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • pyrolunaP Offline
              pyroluna
              last edited by

              So I've accidentally stumbled upon this awesome thing.
              I typed the above mentioned command into the ruby console of SU2017.
              And guess what?

              There's a new checkbox. It allows you to adjust your near and far clipping planes. 😮

              Clipping plane issue solved

              After years and years of toiling and sighing, they allow you to solve this issue for your models and they don't even mention it in the release notes...

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

                @pyroluna said:

                After years and years of toiling and sighing, they allow you to solve this issue for your models and they don't even mention it in the release notes...

                That dialog is for internal debug purposes. It's not an end-user feature.

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

                1 Reply Last reply Reply Quote 0
                • pyrolunaP Offline
                  pyroluna
                  last edited by

                  The actual clipping of your models is not an end-user feature either... But does the new existence of this checkbox mean that a plugin could be written that uses this plugin? Or are the values in this camera settings window not approachable through ruby?

                  1 Reply Last reply Reply Quote 0
                  • pyrolunaP Offline
                    pyroluna
                    last edited by

                    Well obviously the answer to my previous post here is yes. But it took a few years...
                    https://www.clippingplane.com/
                    https://sketchucation.com/pluginstore?pln=AdvancedCameraSettings

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      Einstein
                      last edited by

                      @pyroluna said:

                      Well obviously the answer to my previous post here is yes. But it took a few years...
                      https://www.clippingplane.com/
                      https://sketchucation.com/pluginstore?pln=AdvancedCameraSettings

                      Pyroluna, did you know that there's already a free plugin by S4U to do this?
                      https://sketchucation.com/pluginstore?pln=s4u_Clipping_Camera

                      And it's not quite true that it took a few years. The legacy ThomThom's Camera Tools ( https://sketchucation.com/forums/viewtopic.php?f=323&t=43290 ) provide you instant (Camrea > Advanced) access to the debug dialogue. This plugin is very old but only with SketchUp 2017+ we have FORCE button.
                      May the Force be with us!

                      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