Hersir Posted September 11, 2017 Share Posted September 11, 2017 Hi, I created material, based on Simple material (diffuse map, bump, specular map). Worked fine till point I tried to reuse one material for instance and non instance meshes. Can it be done from technical side? I have mesh that I use to create instances and I have other mesh that just use same material, as soon I add material to non instance mesh my instance meshes disappear on camera movement. Similar as in this tread but my material is not frozen. Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 11, 2017 Share Posted September 11, 2017 Hi @Hersir, care to reproduce it on the playground? Would be great to see it live. Apart from that - my suggestions regarding material use is - use cloning (instead of instancing) if you plan to reuse materials. But what you are describing sounds a bit odd, so I would be happy to first see it before saying this would be the right way to go. Quote Link to comment Share on other sites More sharing options...
Hersir Posted September 11, 2017 Author Share Posted September 11, 2017 @RaananW I havent managed to reproduce exactly same issue in PG(so it could be error in my custom material), but I described scenario here. In my game when I set same material to instances and cloned meshes only cloned meshes are visible, instances start to disappear randomly on camera move. Trying to understand what could cause it, to know where to dig Quote Link to comment Share on other sites More sharing options...
Hersir Posted September 11, 2017 Author Share Posted September 11, 2017 Ok checked other materials, and looks like Simple and Standard materials are working in same conditions, so issue is really in fragment shader of my material. Quote Link to comment Share on other sites More sharing options...
Hersir Posted September 11, 2017 Author Share Posted September 11, 2017 Traced issue, it started to appear when I added specular map support, from standard material to my material Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 11, 2017 Share Posted September 11, 2017 Good luck Please keep us posted Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.