Git Product home page Git Product logo

canvas3d's Introduction

PLY 3D model viewer based on HTML5 canvas

3D HTML5 canvas realization based on 2D and WebGL context.

Examples:

Features:

  • 3D operations: rotating, moving object center
  • Ambient light (only WebGL)
  • Directional light
  • Perspetive camera (only WebGL)
  • Highlighting edges (only 2D)
  • Painter's algorithm for sorting polygons (only 2D)
  • Optimizations (only 2D): Skip processing of invisible polygons, skip processing of duplicated points, normals

gnomeby avatar

Requirements for 2D:

  • Internet Explorer 9
  • Chrome 4.0
  • Firefox 2.0
  • Safari 3.1, mobile Safari 3.2
  • Opera 9.0, mobile Opera 10.0
  • Android Browser 2.1

Requirements for WebGL:

  • Chrome 9.0
  • Firefox 4.0
  • Safari 5.1 (needs to be enabled in Options)
  • Opera 12.0

Warning! canvas-ply-reader.html and webgl-ply-reader.html won't work from disk because it uses AJAX to load .ply model file.

Performance for 2D

Intel Core2 Duo 2.00GHz

Suzanne monkey (500 polygons, 150-350 visible depending on side):

  • Firefox 10.0: 34-68 fps
  • Chromium 23: 65-95 fps

Utah teapot (2256 polygons, 1100 visible):

  • Firefox 10.0: 7 fps
  • Chromium 23: 13 fps

iPad 3: 1 GHz dual-core ARM Cortex-A9, iOS 6.0.1

Suzanne monkey (500 polygons, 150-350 visible depending on side):

  • Safari: 13-23 fps

Utah teapot (2256 polygons, 1100 visible):

  • Safari: 2 fps

canvas3d's People

Watchers

 avatar  avatar

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.