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

    Always face camera with View Observer - Would this work?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 10.4k Views 4 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.
    • PixeroP Offline
      Pixero
      last edited by

      I was thinking of a way to create a custom "always face camera" script and this is the idea.
      Would this work or am I missing something about how a ViewObserver works?
      If it did work, would it be terribly slow?

      Idea:
      Run script to set "Face camera" attribute for the selected component(s).
      Use a ViewObserver that is called when the camera is moved.
      Get the active camera position.
      The ViewObserver "tells" components with the "Face camera" attribute to rotate towards the new camera position.

      1 Reply Last reply Reply Quote 0
      • fredo6F Offline
        fredo6
        last edited by

        @pixero said:

        I was thinking of a way to create a custom "always face camera" script and this is the idea.

        Are you willing to simulate in Ruby the 'Always Face camera' of Sketchup. Then what effect do you wish to get exactly?

        1 Reply Last reply Reply Quote 0
        • PixeroP Offline
          Pixero
          last edited by

          If it was possible I thought it would be good to have that functionality in a form that might work better with third party render engines and also the possibility to enhance it with some new functionality.

          1 Reply Last reply Reply Quote 0
          • pbacotP Offline
            pbacot
            last edited by

            There's an issue in Twilight Render where you can designate the scene to render, but if SketchUp is not set to that scene, face-me is not right. (I think that's how it works).

            MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

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

              A major drawback is that you'd be modifying the model entities with every change of the camera.

              Currently changing the camera position or even the active scene does not set the modified? flag.

              I'm not here much anymore.

              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