Comments (4)
Hi again!
Have pushed a short-term fix as dot_vox 1.0.1
, which should remove the panic, replacing the mis-parsed material with an Unknown
material for the moment.
This doesn't fix the underlying problem, which appears to be that the palette parsing is starting one block too early >.< Will continue to investigate the cause of this one and update when there's a fix.
Thanks again for the bug report - and love the model :)
from dot_vox.
Eek!
Thanks for the thorough bug report and sample file - I shall take a look as soon as I'm able to (most likely Wednesday & Thursday this week).
from dot_vox.
Hi again!
Have spent a bit of time rebuilding the parser, building up a tree of chunks and then mapping that into the DotVoxData
. That seems to have resolved the issue around the data overflowing between chunks, which is a bit of an improvement ;) I've released this as 2.0.0
of the crate.
I've tried to parse your example character again, and in the process discovered a fairly big rewrite of the Material chunk format over in MagicaVoxel - which means that currently the material data in the file isn't being loaded. I'll spend some more time clearing that up and make another minor release before closing this issue off.
from dot_vox.
Hi again!
Have finished rebuilding the Material parsing. Unfortunately, as the underlying format had changed quite substantially, I've ended up having to change the content of the Material chunks to match, meaning there's another major release (3.0.0
) and some API changes.
There's still some chunks left in the file that aren't parsed, which seem to be around a scene graph. I'll have a go at implementing these at some point in the future, unless a PR gets there first ;)
All the best!
from dot_vox.
Related Issues (16)
- Add palette information to DotVoxData
- pallete loading from .vox fails after upgrading from 0.4.0 to 0.5.0 HOT 5
- Clarify that palette IDs are off by one HOT 5
- upgrade to nom 4 HOT 4
- Hey! Any example how to extract rgb color from palette? HOT 1
- scene graph parsing HOT 16
- [Feature Request] Serializing a DotVoxData to VOX format HOT 2
- Prevent a panic when parsing an old format file
- rsvo files
- Model Relative Positions? HOT 1
- Version 5 uses `#![feature(let_chains)]` and will not compile on stable Rust HOT 2
- Release 5.2.0 HOT 2
- Examples HOT 2
- Query for overall size of the model in `DotVoxData` HOT 4
- Implement Material Loading
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dot_vox.