Hersir Posted May 25, 2017 Share Posted May 25, 2017 Hi, I have exported model from 3dmax and loaded in babylon and meshes are cloned after load (also tried instance). But sometimes some meshes appear in scene with default color not with texture, but after changing angle of camera (ArcRotateCamera) some of them get texture back. I will try to isolate problem but meanwhile maybe someone seen similar behaviour? I use alpha version of babylon from npm. Thanks. Quote Link to comment Share on other sites More sharing options...
gamefan Posted May 25, 2017 Share Posted May 25, 2017 I really don't know but sounds like a z - fighting case. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 29, 2017 Share Posted May 29, 2017 I think so..A repro case in the PG could help Quote Link to comment Share on other sites More sharing options...
Hersir Posted June 1, 2017 Author Share Posted June 1, 2017 Ok I found something. I load meshes from babylon file exported from 3d max. Original meshes are used just to make child instances (it has jpg diffuse texture, shared by all meshes). Could it be so that original mesh needs to be in camera viewport for instance meshes to have texture? I tried to wait for mesh to be ready but it didn't helped much. material.isReady(mesh) && mesh.isReady(); Also I found hack to fix this if I change coordinatesMode of diffuse texture to any other value texture shows up and never disappears again. (looks like it is revalidated after that). Quote Link to comment Share on other sites More sharing options...
Hersir Posted June 1, 2017 Author Share Posted June 1, 2017 For now switched from createInstance to clone, that works Quote Link to comment Share on other sites More sharing options...
adam Posted June 1, 2017 Share Posted June 1, 2017 Have you tried reproducing the issue in the playground? 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.