villaquik.blogg.se

Magicavoxel to unity grey palette
Magicavoxel to unity grey palette













magicavoxel to unity grey palette

MAGICAVOXEL TO UNITY GREY PALETTE FOR ANDROID

Tried to override texture settings for Android as suggested, but it failed (by the way I couldn’t find any RGBA 3 bits, tried with 32 bits).īoth of my objects (MV mesh and Unity cube) have a Mesh Colider īoth textures (including the PNG palette generated by MV) are read/write enabled Or is it a problem of texture compression in Android, as I read here : ? Community content is available under CC-BY-SA unless otherwise noted. Editor Window: This is the main window that. models including the Attach, Erase and Painting tools. Brush Window: This contains the main tools for creating voxel. The default saving path is /palette, but can be modified in the configuration file config.txt by changing the path of the line dirpalette. These are the 5 areas you’ll need to know to use MagicaVoxel: Palette Window: This window contains all the colors for your voxel. So, if the problem has to do with UV mapping, why does it work at Unity runtime but not in Android ? Save palette (interface) Allows exporting a PNG, TGA or ACT file of the active palette. Sorry if my explanations are not that clear, but MV users know what I’m talking about. It generates a 256*1 pixel PNG texture, each pixel corresponding to a palette color, and each voxel using one of these colors.

magicavoxel to unity grey palette

In this case, GetPixel() works fine, even in Android.Ĭould this problem occur because of the way MagicaVoxel meshes are textured ?Īs you know, MV does not generate UVs on its meshes. I made a test with a regular cube created in Unity, and using regular Material and texture. More precisely, it fails on objects imported from MagicaVoxel. But it fails to read the pixel color in the Android build the color read is always dark grey. It works fine when running the game in the editor. I’m trying to retrieve a pixel color with a raycast, in order to « analyze » the environment of the player. I’m making a 3D game using voxel graphics, all of them being made with MagicaVoxel.















Magicavoxel to unity grey palette