How to get near and far clipping plane of view?

How to get near and far clipping plane of view?

Postby AlexMozg » Wed Mar 21, 2012 9:53 am

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?
0

AlexMozg 
PluginStore Author
PluginStore Author
 

Re: How to get near and far clipping plane of view?

Postby Dan Rathbun » Thu Mar 29, 2012 1:31 am

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
0
    I'm not here much anymore. But a PM will fire email notifications.
    User avatar
    Dan Rathbun 
    PluginStore Author
    PluginStore Author
     

    Re: How to get near and far clipping plane of view?

    Postby Dan Rathbun » Thu Mar 29, 2012 2:33 am

    0
      I'm not here much anymore. But a PM will fire email notifications.
      User avatar
      Dan Rathbun 
      PluginStore Author
      PluginStore Author
       

      Re: How to get near and far clipping plane of view?

      Postby Dan Rathbun » Thu Apr 26, 2012 11:42 pm

      Alex.. did you ever solve this ??
      0
        I'm not here much anymore. But a PM will fire email notifications.
        User avatar
        Dan Rathbun 
        PluginStore Author
        PluginStore Author
         

        Re: How to get near and far clipping plane of view?

        Postby pyroluna » Tue Nov 15, 2016 2:59 pm

        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. :o

        clipping plane.jpg


        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...
        2
        User avatar
        pyroluna 
         

        Re: How to get near and far clipping plane of view?

        Postby thomthom » Thu Nov 17, 2016 5:32 pm

        pyroluna wrote: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.
        0
        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund
        User avatar
        thomthom 
        PluginStore Author
        PluginStore Author
         

        Re: How to get near and far clipping plane of view?

        Postby pyroluna » Tue Nov 22, 2016 9:15 am

        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
        User avatar
        pyroluna 
         

        Re: How to get near and far clipping plane of view?

        Postby pyroluna » Mon Mar 02, 2020 10:58 am

        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?p ... raSettings
        0
        User avatar
        pyroluna 
         

        Re: How to get near and far clipping plane of view?

        Postby Einstein » Tue Jun 09, 2020 8:25 am

        pyroluna wrote: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?p ... raSettings


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

        And it's not quite true that it took a few years. The legacy ThomThom's Camera Tools ( 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

        Einstein 
         

        SketchUcation One-Liner Adverts

        by Ad Machine » 5 minutes ago



        Ad Machine 
        Robot
         



         

        Return to Developers' Forum

        Who is online

        Users browsing this forum: No registered users and 4 guests

        Visit our sponsors: