Voxels in Unity as a complete novice.,Voxels in unity, starting as a novice.
Complete novice at Unity. Been tearing through youtube tutorials and looking at python scripts trying to figure out an answer to this.
I'm using Magicavoxel to create .vox models that I would like to use in Unity. Exporting them as obj files do not export the internal voxels of the model. It only seems to do the outer edges of the model, leaving it hollow inside. The idea I would like to achieve is I would like to have a tree in a field of grass, I would like to ignite the tree, and have the voxels burn away.
Magicavoxel stores its files as vox files which hold the data for the internal voxels of a structure as well as the outside. So ideally, I would like to try to find a way to import a model from magicavoxel into unity. I would like to then associate the color of the voxel to its properties. For example, my "bark" and "wood" colors are a different shade of brown from my "dirt" and "mud" colors. So in my mind, there could be a way to import those models and associate voxel color to voxel property. Wood next to a fire voxel will ignite as an example.
https://imgur.com/y1ztldC I made a testbed for my obj model exports. For performance, I was considering using obj model proxies until a gamestate such as a tree catching on fire, and then swapping it with a voxelized tree with internals.
So my question is, is there any way to get a voxelized model inside of unity while preserving the internal voxel structure? That is my big first step I think, so any help would be appreciated. This might be a project over my head which is ok. I have a couple smaller games that I am working on as well much more suitable to my skillset. This is my long term vision game that I would like to just start working on as well.
Your answer
![](https://koobas.hobune.stream/wayback/20220613023858im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
When to use Voxels (Performance Question) 1 Answer
How can I make this code add to the mesh instead of over writing it? 0 Answers
Asset imported from Magica-Voxel in unity is too big for the scene view. 0 Answers
Looking at a Chunk from Straight Down will not Render Blocks, but Looking at it from the Side does? 1 Answer
Cubic Voxel World 0 Answers