Jump to content

Material reuse for instance and non instance meshes


Hersir
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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 :D

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...