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

    Plane from current view

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 3 Posters 488 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.
    • J Offline
      JonD
      last edited by

      I am trying to figure out where to start on this:

      I would like to create a rectangular plane from the current camera position to essentially create a work plane from the current view. The end-game will allow me to place an image on this plane for projection onto a terrain model. My thought is that I could export a 2D image of the current view of a terrain model (imported through the geolocation in Earth), edit it in an image editor to 'dress it up', then place the edited image on the work plane and project the edited image as a texture on the model...maybe someone has tackled this already...

      My guess is that I can get a 3D vector of the camera point to target and the 'up' vector. I would need the normal vector to both of these to create the plane's vectors. I am not sure how to make the corner points (projected from the model bounds) to make the rectangle on this plane.

      Thanks in advance,
      Jon

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Look here http://forums.sketchucation.com/viewtopic.php?p=305683#p305683

        TIG

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

          Thanks TIG

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

            OK, that got me close. Does anyone know how to convert the viewport coordinates from pixels to actual coordinates? Ideally I would be able to create a rectangle the same size as the viewport corners, write the current view image, manipulate the image (outside of SU), apply back to this rectangle and project to the model. I can generate a correctly oriented rectangle using the eye, target, and up camera methods, but now I am struggling with sizing it correctly.

            I do not believe the model bounds will not work because I need to be able to work in any orientation and any zoom level to affect specific locations of the model.

            Jon

            1 Reply Last reply Reply Quote 0
            • M Offline
              mtalbott
              last edited by

              I have a similar workflow to what your describing but I use photo match and no ruby scripts. Set the view you want, save it at the screen resolution, edit it, then start a Photo Match session using the new image. Everything should line up perfectly as long as nothing has changed. Finally, just project the photo onto the elements of the model using the option on the Photo Match Dialog.

              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