All Projects → makimenko → Angular Template For Threejs

makimenko / Angular Template For Threejs

Licence: mit
Angular Template For Three.js

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Angular Template For Threejs

Trois
✨ ThreeJS + VueJS 3 + ViteJS ⚡
Stars: ✭ 648 (+468.42%)
Mutual labels:  3d, threejs
Vimeo Depth Player
A WebVR volumetric video renderer that uses color-depth based videos hosted on Vimeo.
Stars: ✭ 65 (-42.98%)
Mutual labels:  3d, threejs
Harp.gl
harp.gl - web map rendering engine
Stars: ✭ 828 (+626.32%)
Mutual labels:  3d, threejs
Lume
Create CSS3D/WebGL applications declaratively with HTML. Give regular DOM elements shadow and lighting.
Stars: ✭ 445 (+290.35%)
Mutual labels:  3d, threejs
Three Forcegraph
Force-directed graph as a ThreeJS 3d object
Stars: ✭ 84 (-26.32%)
Mutual labels:  3d, threejs
Tensorspace
Neural network 3D visualization framework, build interactive and intuitive model in browsers, support pre-trained deep learning models from TensorFlow, Keras, TensorFlow.js
Stars: ✭ 4,515 (+3860.53%)
Mutual labels:  3d, threejs
Aframe Forcegraph Component
Force-directed graph component for A-Frame
Stars: ✭ 60 (-47.37%)
Mutual labels:  3d, threejs
Von Grid
Hexagonal & square tile grid system with three.js
Stars: ✭ 336 (+194.74%)
Mutual labels:  3d, threejs
Trails
Simple geometrical trail to attach to your Three.js objects
Stars: ✭ 79 (-30.7%)
Mutual labels:  3d, threejs
Expo Three Demo
🍎👩‍🏫 Collection of Demos for THREE.js in Expo!
Stars: ✭ 76 (-33.33%)
Mutual labels:  threejs, template
Vue Gl
Vue.js components rendering 3D WebGL graphics reactively with three.js
Stars: ✭ 434 (+280.7%)
Mutual labels:  3d, threejs
Giojs
🌏 A Declarative 3D Globe Data Visualization Library built with Three.js
Stars: ✭ 1,528 (+1240.35%)
Mutual labels:  3d, threejs
Vulkandemos
Some simple vulkan examples.
Stars: ✭ 413 (+262.28%)
Mutual labels:  3d, examples
Roygbiv
A 3D engine for the Web
Stars: ✭ 499 (+337.72%)
Mutual labels:  3d, threejs
Sketchbook
3D playground built on three.js and cannon.js
Stars: ✭ 403 (+253.51%)
Mutual labels:  3d, threejs
Egjs View3d
Fast & customizable 3D model viewer for everyone
Stars: ✭ 34 (-70.18%)
Mutual labels:  3d, threejs
React Postprocessing
📬 postprocessing for react-three-fiber
Stars: ✭ 311 (+172.81%)
Mutual labels:  3d, threejs
React Particles Webgl
🔆 A 2D/3D particle library built on React, Three.js and WebGL
Stars: ✭ 330 (+189.47%)
Mutual labels:  3d, threejs
Vanta
Animated 3D backgrounds for your website
Stars: ✭ 1,162 (+919.3%)
Mutual labels:  3d, threejs
React 3d Viewer
A 3D model viewer component based on react.js 一个基于react.js的组件化3d模型查看工具
Stars: ✭ 100 (-12.28%)
Mutual labels:  3d, threejs

GitHub repo CI build status Known Vulnerabilities Code coverage by codecov.io npm version Storybook link

Angular Template For Three.js (atft)

Leverage Three.js in your Angular app using simple components:

<atft-orbit-controls [rotateSpeed]=1 [zoomSpeed]=1.2>
  <atft-renderer-canvas>
    <atft-perspective-camera
      [fov]=60 [near]=1 [far]=1100
      positionX=20 positionY=50 positionZ=50>
    </atft-perspective-camera>
    <atft-scene>
      <atft-axes-helper size=200></atft-axes-helper>
      <atft-grid-helper size=100 divisions=10></atft-grid-helper>
    </atft-scene>
  </atft-renderer-canvas>
</atft-orbit-controls>

Storybook

Explore provided Angular components in isolation!

Click below to see the demo in a web browser:

Goals of this repo

  • Implement npm atft library
    • Bindings for Three.js
    • SceneComponent with basic usage of scene, camera, lights, helpers, renderer
    • Integrated Three.js examples as components (e.g. OrbitControls, OBJLoader, ObjectLoader)
  • Develop and test library components in isolation via Storybook

Usage in your Angular project

  1. Set up an Angular project and install dependencies:
    npm i three three.meshline atft --save

  2. Import library into your module:

    import { AtftModule } from 'atft';
    ...
      imports: [
        ...
        AtftModule
      ]
     ...
    
  3. Use atft library components in src/app.component.html:

    <atft-orbit-controls [rotateSpeed]=1 [zoomSpeed]=1.2>
      <atft-renderer-canvas #mainRenderer>
        <atft-perspective-camera
          [fov]=60 [near]=1 [far]=1100
          positionX=20 positionY=50 positionZ=50>
        </atft-perspective-camera>
        <atft-scene>
          <atft-axes-helper size=200></atft-axes-helper>
          <atft-grid-helper size=100 divisions=10></atft-grid-helper>
        </atft-scene>
      </atft-renderer-canvas>
    </atft-orbit-controls>
    
  4. (optionally) if you want to fit 3D scene canvas into entire screen (horizontally and vertically):

    in src/styles.css:

     html, body {
         height: 100%;
         margin: 0;
     }  
    

    in src/app/app.component.css:

     :host {
         height: 100%;
         display: flex;
     } 
    

Used by

Sample vect project, which is based on atft library:

Development

Build Library

  1. git clone https://github.com/makimenko/angular-template-for-threejs.git
  2. npm install
  3. ng build atft

Run Tests

  • npm test

Run Storybook

Run and watch locally: npm run storybook

Our storybook config is in ./storybook and our stories in ./src/stories. See the official Storybook.js documentation for more information.

API Documentation

For mode details see API documentation

Contributors

Feel free to join us! Just submit your ideas via pull-requests :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].