1.0.3 • Published 4 years ago

pixi-3d-photo v1.0.3

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

pixi-3d-photo

3D photo generator by PixiJS

You need the original image and the depth map. Also, your browser must support WebGL. If this plugin does not work, Check your browser's hardware acceleration option.

Image credit: Create 3D Photo from Image JavaScript Tutorial, Red Stapler

Installation

$ npm i pixi-3d-photo

How to use

<div id="pikachu"></div>
import { generate3dPhoto } from 'pixi-3d-photo'

generate3dPhoto({
  el: '#pikachu', // Required!
  src: 'pikachu.jpg', // Required!
  map: 'pikachu.map.jpg', // Required!
  scale: 0.7 // Optional, default: 1 
})
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago