Giter Site home page Giter Site logo

robertgz / 3d-shape-builder Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 892 KB

3D Shape Builder using Vue.js and three.js

Home Page: https://robertgz.github.io/3d-shape-builder/

HTML 1.30% JavaScript 61.81% Vue 35.93% Shell 0.96%
3d javascript threejs

3d-shape-builder's People

Contributors

robertgz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

astrolabshub

3d-shape-builder's Issues

Accuracy not correct when dragging shapes

If a shape is moved up in the positive z-axis and then it is dragged the object does not stay located with the pointer.

  • Add shape
  • Move shape in the positive z-axis with the Move/transform
  • Change to the Select tool
  • Adjust the view to look down more
  • Drag shape

2020-02-17_14-40-19

Drag shapes only with left click

When the right or middle mouse buttons are click and dragged over a shape the shape moves.

Shapes should only move when dragged with the left mouse button.

Collapse properties when shape is deleted

When a shape is selected one of the properties can be expanded. If the shape is deleted the properties remains expanded.

chrome_2020-02-17_16-18-57

Any expanded properties should collapse after a shape is deleted.

Dragging shapes next to toolbars

When a shape is dragged above or below a vertical toolbar the shape stops moving while the mouse continues to move. This also happens when dragging to the side of a horizontal toolbar.

If the mouse is released while over the non-drag zone the shape is not released from the pointer.

2020-02-17_14-08-32

Migrate to three.js 0.120 and convert mouse events to pointer events

Update three.js from 0.119 to 0.120 or a higher version.

This application uses mouse events in MouseClickComponent and MouseDragComponent.

When three.js is updated to 0.120 there are some small changes in the interaction with the mouse. This should be resolved by converting the mouse events to pointer events. The need to switch to Pointer Events is noted in the three.js migration guide.
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r119--r120

NodeJS 18 support

Run npm run build and npm run start with NodeJS 18 or higher installed. Then resolve any issues.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.