wizardgsz

Results 24 comments of wizardgsz

A "simple" example: ![Immagine](https://user-images.githubusercontent.com/8364153/66754219-c8540c80-ee95-11e9-93d5-7b88dd23e692.png) Here it is the [VOX file](https://github.com/RichysHub/MagicaVoxel-VOX-importer/files/3724569/untitled.zip) and its structure: ``` XYZI(0) num_voxels 1398 XYZI(1) num_voxels 389 XYZI(2) num_voxels 0 XYZI(3) num_voxels 0 XYZI(4) num_voxels 0 XYZI(5)...

A basic group of 2 models (here the [VOX](https://github.com/RichysHub/MagicaVoxel-VOX-importer/files/3743919/Scene.graph.GROUP.2.zip)): ![Scene graph GROUP 2](https://user-images.githubusercontent.com/8364153/67095605-9e148e80-f1b6-11e9-86c0-c8459309eb8d.png) That is: ``` XYZI(0) num_voxels 80 XYZI(1) num_voxels 24 nTRN(0): child_node_id: 1 layer: -1 nGRP(1): child_node_id: 2...

Two models grouped + a single model in a scene graph (the [VOX file](https://github.com/RichysHub/MagicaVoxel-VOX-importer/files/3743924/Scene.graph.GROUP.3.zip)): ![Scene graph GROUP 3](https://user-images.githubusercontent.com/8364153/67095734-f64b9080-f1b6-11e9-9643-879ac7e2cd6f.png) That is: ``` XYZI(0) num_voxels 48 XYZI(1) num_voxels 80 XYZI(2) num_voxels 24...

@destrosvet, could you please attach a sample data that you can't load? @atomhax, have you got a file using MATL chuck? Thanks for your help

About new releases chunks, we have: **nTRN, nGRP, nGRP, nSHP, rOBJ, LAYR, MATL** @destrosvet, @atomhax, just to "skip" them and keep loading new VOX files (here there is an example...

Sample data, for example: [chr_sword NEW.zip](https://github.com/RichysHub/MagicaVoxel-VOX-importer/files/3680041/chr_sword.NEW.zip) Parser snippet for new chunks (just some random thoughts to keep track of them): ``` def read_STRING(vox): size, = struct.unpack('

Always for the _"random thoughts"_ series... about **rOBJ** chunk: I think MagicaVoxel uses them to store some additional data we can skip in Blender, e.g. **View menu options?** ![](https://leonida.gitbooks.io/magicavoxel-user-reference-manual/content/assets/menu5.jpg) ```...

Yeah, but my doubt is: Is it better to work with overall scene setup, animations, camera, lights, global parameters (like fov, fog, ...) directly in **Blender**, after importing objects I...

Starting from your [Materials branch](https://github.com/wizardgsz/MagicaVoxel-VOX-importer/tree/Materials), I'm going to implement MATT and MATL [here](https://github.com/wizardgsz/MagicaVoxel-VOX-importer/tree/MATT_MATL). Still immature for a pull request, but if you have time to review and give me some...

To supply "default values" to namedtuples, I defined a new class: ``` # http://mmabrouk.github.io/python/2014/05/23/namedtuples-with-default-optional-arguments/ class material_spec(namedtuple('material_spec', [ # Material chunks, both MATT and MATL 'type_', # Matter type: _diffuse, _metal,...