What is this markup in my browser... is it gltf?

77 Views Asked by At

I'm working with makehuman.js. I am trying to figure out how to export the model as it appears in the image. Unfortunately I'm tied to at the latest Tree.js 8.3. What is the markup showing up my console? Is this GLTF or something else? Do these represent nodes in a tree? I am traversing the scene and printing results to the console.

                self.scene.traverse ( function (element) {
                    if (element.visible == true){
                    //var output = JSON.stringify( element, null, 2 );
                    console.log(element.id + " " + element.name + " " + element.node )
                    //console.log(output);
                    console.log(element); 
                 }

enter image description here

My GLTF Exporter:

            var gltfExporter = new THREE.GLTFExporter();

            var options = {
                trs: true,
                onlyVisible: true,
                truncateDrawRange: true,
                binary: false,
                forceIndices: true,
                forcePowerOfTwoTextures: true
            };

            gltfExporter.parse( self.scene, function ( result ) {
                 var output = JSON.stringify( result, null, 2 );
                 saveAs(new Blob( [output], {type : 'text/plain;charset=utf-8'}),'scene.gltf');                    
            }, options );
0

There are 0 best solutions below