I will link a little guide for that here once i had time to write one. What you should do, especially with complex models, is run them through a 3D-Modeling software like Blender and optimize the meshes. A word on directly importing models form MagicaVoxel MagicaVoxel does not optimize (or at least does not do a good job at it) the exported models. In most cases this will not affect the look of the rest of the scene. Here is how the shadow of the same model looks like with "Normal Bias" set to 0. Watch this 38-second video to see how to get a fully-optimized MagicaVoxel file. So if we set this value to 0 the gaps in our shadows will disappear. Adding optimized voxel art from MagicaVoxel into Unit圓D. Increasing this value will increase the holes in our shadows. As you can see our "Normal Bias" is set to 0.4. My settings look like this: Take a look at the configuration of the "Realtime Shadows" for the shadow type "Hard". Watch this 38-second video to see how to get a fully-optimized MagicaVoxel file into Unity Importing optimized models from MagicaVoxel into Unity Watch on Get the latest version of MagicaVoxel here: The method above requires version 0.96.1 or later. Here is an example of a broken shadow using a MagicaVoxel model in Unity: Now to fixing this without repairing every normal on the model.įirst you should take a look at the settins of your light source. This article is a guide to converting the MagicaVoxel. But when using complex models this can quickly get too much of a task. 1,299 Following 33. You could manually go through all faces in a 3D-Modeling software like Blender and fix the normals. It is the fastest Magicavoxel importer, supports materials, and optimizes the mesh. This will not be visible on the model itself but will be immediately visible when using shadows. vox files made with Magicavoxel (A free, lightweight 8-bit voxel editor). XZ-Y Y up ) optimize 1 // merge voxel faces with same color. Fixing holes in 3D-Models exported from MagicaVoxel ← Go back Fixing holes in 3D-Models exported from MagicaVoxel When exporting models from MagicaVoxel and importing them into Unity you can sometimes end up with some flipped normals on some faces of the 3D-Model. This page describes the configuration file of MagicaVoxel, and explains its default.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |