0.0.16 • Published 4 years ago

three-volumetric v0.0.16

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

three-volumetric

Right now this repo is in a transition state. We have demos and tests running files from several different vendors in AR, VR and mobile, but we are transitioning to an npm-installable package to run volumetric from any vendor where we can mediate an open-source playback solution.

To install with NPM

npm install three-volumetric

Or reference dist/three-volumetric.js

Dracosis Player

Custom file format for packing compressed Draco and Basis Universal Textures into a streamable file. First 8 bytes describe header length. Header is packed JSON containing data about position of mesh and texture Buffer byte ranges inside file

import { DracosisPlayer } from 'three-volumetric'
const player = new DracosisPlayer(<constructor parameters>);
player.play()

GLTFPlayer

Play back from DRACO-compressed GLTF (good for short-ish looping sequences, 10-20 seconds)

import { GLTFPlayer } from 'three-volumetric'
const player = new GLTFPlayer(<constructor parameters>);
player.play()

Available constructor options for MeshTextureSequencePlayer

        scene: any,
        file: string,
        onLoaded: any,
        startScale: number = 1,
        startPosition: { x: any, y: any, z: any } = { x: 0, y: 0, z: 0 },
        castShadow: boolean = true,
        playOnStart: boolean = true,
        showFirstFrameOnStart: boolean = true,
        loop: boolean = true,
        startFrame: number = 0,
        endFrame: number = -1,
        speedMultiplier: number = 1,

DepthVideoPlayer

Play back top-bottom stacked RGB+D video

import { DepthVideoPlayer } from 'three-volumetric'
const player = new DepthVideoPlayer ({ <constructor props>});
volplayercap.play()

Constructor props:

    textureHeight: number;
    textureWidth: number;
    farClip: number;
    nearClip: number;
    defaultMeshScalar: number;
    extrinsics: THREE.Matrix4;
    depthFocalLength: any;
    depthPrincipalPoint: any;
    depthImageSize: any;
    crop: any;

(In development)

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago