All Projects → fibo → three-orbitcontrols

fibo / three-orbitcontrols

Licence: MIT license
is the three.js OrbitControls from official repo examples

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to three-orbitcontrols

Jeelizfacefilter
Javascript/WebGL lightweight face tracking library designed for augmented reality webcam filters. Features : multiple faces detection, rotation, mouth opening. Various integration examples are provided (Three.js, Babylon.js, FaceSwap, Canvas2D, CSS3D...).
Stars: ✭ 2,042 (+2452.5%)
Mutual labels:  threejs, camera
Camera Controls
A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.
Stars: ✭ 519 (+548.75%)
Mutual labels:  threejs, camera
Patches
Patches is a visual programming editor for building WebVR and WebGL experiences.
Stars: ✭ 164 (+105%)
Mutual labels:  threejs, camera
Snapchat Clone
👻 A SnapChat clone built with React, Redux and Typescript. Styled with SASS. Tested with Cypress, Jest and Enzyme. Linted with Eslint and formatted with Prettier!
Stars: ✭ 770 (+862.5%)
Mutual labels:  threejs, camera
three-render-objects
Easy way to render ThreeJS objects with built-in interaction defaults
Stars: ✭ 33 (-58.75%)
Mutual labels:  threejs, camera
ios-yoonit-camera
The most advanced and modern Camera module for iOS with a lot of awesome features
Stars: ✭ 56 (-30%)
Mutual labels:  camera
three-musketeers
A simple module to introspect, debug and test any THREE.js application.
Stars: ✭ 30 (-62.5%)
Mutual labels:  threejs
generative
Creative coding experiments
Stars: ✭ 71 (-11.25%)
Mutual labels:  threejs
spinnaker sdk camera driver
Point Grey (FLIR) Spinnaker based camera driver (Blackfly S etc.)
Stars: ✭ 106 (+32.5%)
Mutual labels:  camera
three-earth
画“地图”
Stars: ✭ 15 (-81.25%)
Mutual labels:  threejs
AstroPhoto-Plus
A lightweight, web based astrophotography sequence generator and INDI client written in Python and React.
Stars: ✭ 54 (-32.5%)
Mutual labels:  camera
HomeAssistant-Tapo-Control
Control for Tapo cameras as a Home Assistant component
Stars: ✭ 327 (+308.75%)
Mutual labels:  camera
yolov5-deepsort-tensorrt
A c++ implementation of yolov5 and deepsort
Stars: ✭ 207 (+158.75%)
Mutual labels:  camera
bevy 4x camera
A 4X style camera for bevy.
Stars: ✭ 26 (-67.5%)
Mutual labels:  camera
tycho
🪐 A real-time, WebGL-based interactive simulation of our solar system.
Stars: ✭ 90 (+12.5%)
Mutual labels:  threejs
potree-core
Potree point cloud viewer library core components for easier integration in a three.js project.
Stars: ✭ 88 (+10%)
Mutual labels:  threejs
three-to-cannon
Convert a THREE.Mesh to a CANNON.Shape.
Stars: ✭ 207 (+158.75%)
Mutual labels:  threejs
three-plain-animator
Three-Plain-Animator is a package for threejs developers to support 2D animations.
Stars: ✭ 56 (-30%)
Mutual labels:  threejs
threejs-dem-visualizer
Visualizing ASTER and LANDSAT satellite data using THREE.js
Stars: ✭ 35 (-56.25%)
Mutual labels:  threejs
blender-renderborder
pixel-precise render border
Stars: ✭ 26 (-67.5%)
Mutual labels:  camera

DEPRECATED

[three-js] exposes real modules now via three/examples/jsm/... For example to import the Orbit, do

import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"

three-orbitcontrols

is the three.js OrbitControls from official repo examples

Installation

To install with npm do

npm install three
npm install three-orbitcontrols

Usage

All credit goes to OrbitControls.js contributors. See also official OrbitControls documentation.

I have just stolen the code and modified to export it as a module so you can do something like

const THREE = require('three')
const OrbitControls = require('three-orbitcontrols')
// ES6 also works, i.e.
// import OrbitControls from 'three-orbitcontrols'

// Init THREE scene (add your code)

const camera = new THREE.PerspectiveCamera(75, width / height, 0.1, 1000)
camera.position.z = 5

const renderer = new THREE.WebGLRenderer({ canvas })

const controls = new OrbitControls(camera, renderer.domElement)
controls.enableDamping = true
controls.dampingFactor = 0.25
controls.enableZoom = false

Please note that:

  1. You call OrbitControls directly instead of THREE.OrbitControls.
  2. This package does not depend directly on three.js, which is declared as a peer dependency.

See also examples:

  • CommonJS example: clone this repo, install deps and launch npm run example_commonjs.
  • TypeScript example: clone this repo, install deps and launch npm run example_typescript.

Changelog

See OrbiControls.js history here.

Please also note that this repo's minor version equals three.js release number.

Motivation

There is another package similar to this one: three-orbit-controls. I decided to create another package with a different approach, see this issue for the rationale.

I am using this package for my 3d tic tac toe canvas: see also online demo.

License

License is the same as three.js, i.e. MIT.

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].