![]() 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. So if we set this value to 0 the gaps in our shadows will disappear. 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". 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. But when using complex models this can quickly get too much of a task. You could manually go through all faces in a 3D-Modeling software like Blender and fix the normals. vox file from MagicaVoxel to static GameObject and Prefab with optimized obj file. This will not be visible on the model itself but will be immediately visible when using shadows. MagicaVoxel for Unity 2017 VOXFileLoader The VOXFileLoader is a.
0 Comments
Leave a Reply. |