Skip to content

Conversation

@mrdoob
Copy link
Owner

@mrdoob mrdoob commented Dec 5, 2025

Related issue: #27803

Description

Implemented scene graph support based on the spec extension here:
https://github.com/ephtracy/voxel-model/blob/master/MagicaVoxel-file-format-vox-extension.txt

Screenshot 2025-12-06 at 05 38 23 Screenshot 2025-12-06 at 06 35 41

Also changed the loader API.

Before:

const loader = new VOXLoader();
loader.load( 'models/vox/monu10.vox', function ( chunks ) {

	for ( let i = 0; i < chunks.length; i ++ ) {

		const chunk = chunks[ i ];

		const mesh = new VOXMesh( chunk );
		scene.add( mesh );

	}

}

After:

const loader = new VOXLoader();
loader.load( 'models/vox/monu10.vox', function ( result ) {

	scene.add( result.scene );

}
@mrdoob mrdoob added this to the r182 milestone Dec 5, 2025
@mrdoob mrdoob merged commit bf440d9 into dev Dec 5, 2025
9 checks passed
@mrdoob mrdoob deleted the voxloader branch December 5, 2025 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants