Skip to content

Use draco to compress and decompress threejs-object files.

License

Notifications You must be signed in to change notification settings

21myatt/drcobj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo Draco 3D Object

releases license

Draco is an open-source library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.

You can use drcobj_exporter.js to convert a threejs-object (.json) file to a draco-compressed threejs-object (.drcobj) file, drcobj_loader.js is the loader for the drcobj file.

How to use

drcobj_loader:

<script src="./three.min.js"></script>

<script src="./src/vendor/draco_decoder.js"></script>
<script src="./src/vendor/draco_loader.js"></script>
<script src="./src/js/drcobj_loader.js"></script>

<script>

var drcobjLoader = new THREE.DrcobjLoader();

drcobjLoader.setDecoderPath("./src/vendor/");

drcobjLoader.load("model.drcobj", function (object) {

    scene.add(object);

    drcobjLoader.dispose();

});

</script>

About

Use draco to compress and decompress threejs-object files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%