- Home /
Shader not load in HoloLens 1
currently I am developing an application for HoloLens 1. I have a 3d format file (collada) which I saved in the Resources folder The collada file consist of 3d coordinates and the rgb values. So in order to showing the color for each 3d-coordinates I use a Shader for that. The shader has been attach to a material, which then attach into the 3d collada-file
the 3d-collada file then will be drop in hierarchy and it displays in the game and scene-view with colors.
So far so good. Now the problem is: Since I want to load the 3d model and apply the material with the specific shader at runtime. Its only work in the unity editor. When I deploy it to the HoloLens 1, I only received the 3d-view of the collada file. but no Shader(no color) has been attach to the file
The workaround for this problem so far is: (let say I have a 3d-file call "ABC": I drop the ABC-file to the hierachy and apply the material with shader. I disable the ABC-file I load the ABC-File at Runtime and apply the shader / material programmatically.
Now in HoloLens I can see the ABC-File with color
But this workaround is pretty bad because since I have a bunch of 3d-Files, I need now to drop all files manually into the hierachy and apply for each one of them the material with shader and disable them. This affect the dynamic of the programm and calling an 3d-file at runtime is no more rellevant.
So I would like to know, what I can do to solve this problem?
Thanks
Your answer
Follow this Question
Related Questions
Object doesn't export correctly from Blender to Unity 2 Answers
Editor Can't Able to Import 3D Model Textures 1 Answer
Textures not transferring when importing models 0 Answers
problems when adding animations to .dae Collada model 0 Answers
How to make your player health subtract when enemies come into contact with you 3 Answers