JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Development Discussions
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • David Bolt

      Can not get View type: Orthographic to work.
      • David Bolt

      5
      0
      Votes
      5
      Posts
      682
      Views

      Ion 0

      @david-bolt one suggestion from what i've tried could be to set the camera position for regular perspective camera further away as an orthographic camera is just a perspective camera at infinity

    • gilboonet

      import/export of .obj file
      • gilboonet

      8
      0
      Votes
      8
      Posts
      1221
      Views

      gilboonet

      @platypii Thank you for this investigation. I remember that I tried to get JSCAD to union those groups but then it loses colors. I use Wings 3d to colorize my models, and it does not split them into separate objects (on my screenshot I have only one geometry), only materials are separated into groups.
      Capture d’écran du 2022-06-14 10-11-33.png

      Capture d’écran du 2022-06-14 10-29-42.png

      I splitted the model into 3 geometries and then exported it to .obj and the difference is that it contains 3 lines starting with "o " that defines start of an object. Maybe for the moment JSCAD translate lines starting with "g " like "o ".

    • settinger

      A camera without gimbal lock
      • settinger

      3
      0
      Votes
      3
      Posts
      612
      Views

      hrgdavor

      progress of the mentioned prototype with suport for different wegl libs can be found here:
      https://github.com/jscad/OpenJSCAD.org/discussions/944

      I have just made another step forward: mesh support (but with some quirks ATM)
      I have some lighting to fix, and also babylonjs for some weird rason uses left handed system (this adds a bit of complexity to the worker to support it properly)

      Also when switching viewers, if they are different orioentation currently I need to run the script again manually to get properly oriented triangles

      https://user-images.githubusercontent.com/2480762/162638934-7a945625-420d-4041-98fc-5735fcc34c6b.mp4

    • platypii

      JSCAD geometry engine project
      • platypii

      2
      4
      Votes
      2
      Posts
      518
      Views

      z3dev

      For those wondering, @platypii is a new member of the development team. He’s already put together some super nice fixes. In addition, he never sleeps so things are moving along at light speed. 😎

      So, please let him know if there’s something missing from JSCAD.

    • hrgdavor

      new JSCAD prototype progress 2022-01
      • hrgdavor

      1
      2
      Votes
      1
      Posts
      343
      Views

      No one has replied

    • gilboonet

      Unfolder V2, test on Ubuntu with Chromium
      • gilboonet

      3
      0
      Votes
      3
      Posts
      305
      Views

      hrgdavor

      @gilboonet yes, specification for sort functions is to

      return zero if a==b return neg or positive number depending if u want to sort ASC or DESC
    • gilboonet

      Is it possible to group (in 2d output) unconnected lines ?
      • gilboonet

      10
      0
      Votes
      10
      Posts
      1159
      Views

      gilboonet

      @gilboonet I finally take advantage of geometries id and class preservation, and created a small js node script that creates a group for all paths having the same class, and at the same time I solve another annoyance that was the impossibility to search by numbers by creating id. That's very nice.

    • gilboonet

      Does anyone use jscad on iPhone ?
      • gilboonet

      10
      0
      Votes
      10
      Posts
      1008
      Views

      gilboonet

      @z3dev You can also change the model, Venus has 1000 triangles and takes 30 sec. on my laptop to unfold (ubuntu with Firefox).

    • gilboonet

      Union on multi-color imported obj file lose colors
      • gilboonet

      7
      0
      Votes
      7
      Posts
      548
      Views

      gilboonet

      @z3dev Sadly, lines already have a color (red for cuts, maroon for mountain fold and green for valley fold).
      Capture d’écran de 2022-01-23 10-07-15.png

    • gilboonet

      dynamic parameters caption works oddly
      • gilboonet

      3
      0
      Votes
      3
      Posts
      336
      Views

      hrgdavor

      @gilboonet it is nice to see a multilingual script 🙂

    • Sea-DH1

      If loading stl binary file
      • Sea-DH1

      7
      0
      Votes
      7
      Posts
      648
      Views

      Sea-DH1

      @z3dev
      new issue
      https://github.com/jscad/OpenJSCAD.org/issues/972

    • neonsnowcat

      The Case of the Missing Triangles
      • neonsnowcat

      4
      0
      Votes
      4
      Posts
      397
      Views

      z3dev

      @neonsnowcat Please try the latest version via www.openjscad.xyz

      Hopefully, those missing triangles have returned to earth.

    • gilboonet

      function to create regular polygon
      • gilboonet

      3
      0
      Votes
      3
      Posts
      278
      Views

      gilboonet

      @hrgdavor Thanks a lot that's exactly what I needed,
      Capture d’écran de 2021-12-01 11-24-28.png

    • hrgdavor

      jscad utility function to preview booleans while developing
      • hrgdavor

      1
      0
      Votes
      1
      Posts
      247
      Views

      No one has replied

    • gilboonet

      V2 feedback
      • gilboonet

      9
      0
      Votes
      9
      Posts
      1229
      Views

      gilboonet

      @hrgdavor Thank you, that's very nice. It's not that I like folding things but it's a process I use to build them with cardboard

    • hrgdavor

      jscad V1 site backup with remote url support
      • hrgdavor

      1
      0
      Votes
      1
      Posts
      229
      Views

      No one has replied

    • jess yan

      How to get the coordinate value through the mouse?
      • jess yan

      2
      0
      Votes
      2
      Posts
      381
      Views

      jess yan

      I use camera-unproject to do coordinate mapping, but the obtained coordinates are obviously wrong.

      code:

      const regl = this.$el const handleMouseDown = (e) => { const x = 1 - (e.offsetX / regl.clientWidth) * 2 const y = (e.offsetY / regl.clientHeight) * 2 - 1 const point = vec3.fromValues(x, y, 0.5) const { projection, view, viewport } = this.camera const combinedProjView = mat4.multiply([], projection, view) const invProjView = mat4.invert([], combinedProjView) const result = unproject([], point, viewport, invProjView) console.log('convasSize: ', [regl.clientWidth, regl.clientHeight]) console.log('viewport: ', viewport) console.log('clickPoint: ', [x, y]) console.log('unproject result:', result) } this.$el.addEventListener('mousedown', handleMouseDown.bind(this))

      4a0979ad-ef8d-4af6-80d6-b7a52f92e8f9-image.png
      Could it be that I did something wrong?

    • jess yan

      A questions about project()
      • jess yan

      3
      0
      Votes
      3
      Posts
      493
      Views

      jess yan

      @z3dev
      Ok, I have submitted an issue on github.
      https://github.com/jscad/OpenJSCAD.org/issues/916

    • jess yan

      AutoCAD Text conversion fails
      • jess yan

      2
      0
      Votes
      2
      Posts
      337
      Views

      z3dev

      @jess-yan DXF is a old nasty file format so don’t expect much. JSCAD only converts certain DXF entities. Please see the README here…

      https://github.com/jscad/OpenJSCAD.org/tree/master/packages/io/dxf-deserializer

      There’s a nice library that will convert from DXF to SVG.

      https://github.com/bjnortier/dxf

    • hrgdavor

      3D glasses support
      • hrgdavor

      1
      0
      Votes
      1
      Posts
      194
      Views

      No one has replied

    Powered by NodeBB | Contributors