PicaVoxel icon indicating copy to clipboard operation
PicaVoxel copied to clipboard

Compatibility with URP

Open lcnvdl opened this issue 2 years ago • 2 comments

Hi! I'm trying to use PicaVoxel in a Unity URP project.

All the PicaVoxel materials looks magenta.

How can I fix this problem?

Thanks in advance. Captura de pantalla 2022-12-31 122234

lcnvdl avatar Dec 31 '22 15:12 lcnvdl

Hi,

PicaVoxel was last tested compatible with Unity 2019, when URP wasn't really much of a thing. However, there is a URP-compatible shadergraph in the Shaders/LWRP folder.

The easiest way to get up and running is to change the shader on the Materials/PicaVoxel PBR material like so:

Unity_2022-12-31_16-23-49

It looks like there are lots of editor errors happening in 2021 LTS, so that's probably going to be more of an issue from a usability standpoint. However, if you use an external editor like MagicaVoxel and import, I imagine most functionality is still okay.

GarethIW avatar Dec 31 '22 16:12 GarethIW

Thanks for your quick answser!

Yes, I've also tried with that material. With that material I can't directly see the texture. As if it were totally transparent. I tried everything but couldn't get it to work.

The model is a .vox imported from MagicaVoxel.

The version of unity is 2021.3.10f1.

lcnvdl avatar Dec 31 '22 20:12 lcnvdl