sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    How to get the projected coordinate of a 3D point?

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

      Hi everyone,

      I have a problem about how to get the projected coordinate of a 3D point.

      Suppose the 3D point locates at [10 20 30], then I save an image of the scene in current view.

      Then, how do I know the coordinate of the 3D point in the saved image?

      Does anyone have some ideas?

      1 Reply Last reply Reply Quote 0
      • S Offline
        slbaumgartner
        last edited by

        view.screen_coords

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

          view.screen_coords returns the point in the Model as X,Y coords - screen value.
          But you must ensure that the exported image used the same size as the window, otherwise there is no direct relationship between the point and the image's pixels...

          TIG

          1 Reply Last reply Reply Quote 0
          • lbsswuL Offline
            lbsswu
            last edited by

            @slbaumgartner said:

            view.screen_coords

            Got it! Thanks for you help!

            1 Reply Last reply Reply Quote 0
            • lbsswuL Offline
              lbsswu
              last edited by

              @tig said:

              view.screen_coords returns the point in the Model as X,Y coords - screen value.
              But you must ensure that the exported image used the same size as the window, otherwise there is no direct relationship between the point and the image's pixels...

              Got it! Thanks for your help!

              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