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

    Entities visibility relationships

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    5 Posts 3 Posters 152 Views 3 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.
    • D Offline
      den15
      last edited by

      Hello everyone,

      I hope I could find some help from you !

      Let's say I have a surface component and a box component. That box component is right below that surface. Please look at the attached file.

      That surface has a transparent frontface material, and an opaque backface material. So you can see through it only from above.

      I would like the box component to interact in the same way : to be transparent or hidden when I'm looking from above, and to be shown when I'm looking beneath the surface.

      Could that be made using dynamic components or ruby scripting ?

      Many thanks in advance for help, hope i've been clear enough.

      Best regards


      Test.skp

      1 Reply Last reply Reply Quote 0
      • oceanembersO Offline
        oceanembers
        last edited by

        Dynamic components cannot achieve this. Scripting might, crudely, if one could write a script linking the visibility of the box to the relationship between the camera, plane, and box, but you'd need it constantly running if you wanted it to update in real time, which sounds pretty inefficient to me.

        What precisely are you trying to achieve? Could the section tool help you in any way?

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

          Thanks for your response. I am trying to achieve that, in a house model, ceilings and its elements (like lamps, moldings etc) would be hidden in 3d mode (3d view from above) but shown in a first person view. This would be for a 3d visualization service on the web.

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

            toggling a 'Section Cut' can do that in SU, and the 'toggling' could be scripted, but I assume your exporting the model for your service, so adding a 'clipping plane' to it's content will depend on the API your using for that side...

            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
            • D Offline
              den15
              last edited by

              The clipping plane is actually not recognized on the visualization service ... So it looks much complicated. Thanks a lot anyway !

              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