JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Two questions about projections

    General Discussions
    projection orientation key commands webinterface
    2
    4
    697
    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.
    • Alasdair McAndrew
      Alasdair McAndrew last edited by

      1. I have several shapes which are best viewed in one particular position. Normally I just create the shape centered (more-or-less) about the origin, and then move it around until it looks the way I want. Is there any way of finding the current position and orientation of the shape (with respect to the camera) so that I can write the position into the original script?
        (I know that I can have rotations and translations as parameters, and use the results of that, but I'm wondering if there's a simpler way.)

      2. In the web viewer (jscad.xyz, or its local version demo.html) I can't seem to switch between perspective and orthographic views. The settings claim that the keys "p" and "o" move to each projection, but I can't get my keys to have any affect at all. How can I obtain an orthographic projection in the web viewer, and/or can the projection be written into the original JavaScript file?

      Thank you all!

      z3dev 2 Replies Last reply Reply Quote 0
      • z3dev
        z3dev @Alasdair McAndrew last edited by

        @Alasdair-McAndrew Just for your information, as part of the last release, there's a new project() function which can project a 3D shape to a 2D shape.

        1 Reply Last reply Reply Quote 0
        • Alasdair McAndrew
          Alasdair McAndrew @z3dev last edited by

          @z3dev Thank you very much. I would particularly like the option of orthographic viewing or rendering, but both the documentations and websites (for the new V2, and the original) seem quiet on the topic.

          1 Reply Last reply Reply Quote 0
          • z3dev
            z3dev @Alasdair McAndrew last edited by

            @Alasdair-McAndrew some very interesting questions. 😀

            1. at the moment, there's no way to set the camera position. i think interacting with the camera via a design may be possible. if interested then please create a new issue and add your thoughts about what kind of interactions would be useful.

            2. i just fixed the shortcuts for repositioning the camera. but i haven't looked at the perpective / orthographic camera shortcuts.

            Alasdair McAndrew 1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB | Contributors