Seanba / Tiled2Unity

Export Tiled Map Editor (TMX) files into Unity
Other
495 stars 120 forks source link

Having Issues with Shader Import #144

Open GunnySensei opened 6 years ago

GunnySensei commented 6 years ago

From Research it seems to be maybe the same issue as #90, but that was quite awhile ago, not sure if maybe this is a new problem. When importing into Unity 2017.1.1f1 I get the following console errors:

Compiling Vertex program with DUMMY Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME

(Filename: Tiled2Unity/Depth (Instanced) Line: 55)

Shader error in 'Tiled2Unity/Depth (Instanced)': not enough actual parameters for macro 'UNITY_ACCESS_INSTANCED_PROP' at line 66 (on d3d11)

Compiling Vertex program with DUMMY Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME

(Filename: Tiled2Unity/Depth (Instanced) Line: 66)

Shader error in 'Tiled2Unity/Depth (Instanced)': unrecognized identifier 'UNITY_INSTANCING_BUFFER_START' at line 55 (on d3d11)

Compiling Vertex program with DUMMY Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME

(Filename: Tiled2Unity/Depth (Instanced) Line: 55)

Shader error in 'Tiled2Unity/Depth (Instanced)': not enough actual parameters for macro 'UNITY_ACCESS_INSTANCED_PROP' at line 66 (on d3d11)

Compiling Vertex program with DUMMY Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME

(Filename: Tiled2Unity/Depth (Instanced) Line: 66)

And after this all of the imported prefab appears pink. The colliders and shapes all import, but I can't see what they are. Last time you mentioned it being an issue with Unity updating the files? Is this the same thing?

Bear with me I'm still pretty new to all this. Thanks SeanBa!

image

Seanba commented 6 years ago

Can you send me your shader at Assets/Tiled2Unity/Shaders/shaDepth-Instanced.shader? It sounds like it somehow got mutated? (You can find my email at www.seanba.com)

GunnySensei commented 6 years ago

Sent it off to you! Thank you sir.

mp-pinheiro commented 3 months ago

I have the same issue on an old project of mine 😢

Seanba commented 3 months ago

Hi, @mp-pinheiro. I mostly only support Super Tiled2Unity these days when I have time but if your old project is on github I can take a look at it for you if you're willing to share it with me.

mp-pinheiro commented 3 months ago

Hi, @mp-pinheiro. I mostly only support Super Tiled2Unity these days when I have time but if your old project is on github I can take a look at it for you if you're willing to share it with me.

Hey, thanks for the reply!

I actually got it to work by switching to Unity version 2018.4.31f1 (even though my project was made on 5.6.3p1 which is really weird).

Here's the link anyway if you wanna take a stab at it: https://github.com/mp-pinheiro/riderquest (disclaimer: it's a very silly project).

Thanks again!