Alpha test ? depth test issue?

We are using playcanvas, but sometime we feel curious.

We are creating horse race game, and using horse models for it.
(Models were made by in studio.)

But sometime models are not rendered, that we originally want to render.

We thought this was some setting issue and we researched for it.
But I think not so…

I attached one screenshot.
It is same URL, it means same scene and same settings and exactly same.
But rendered Horse face was different.
Left window, horse was rendered correctly.
Right window horse was not correct. (Because of opacity and rendering order issue?)

Anyway, is there same issues on other projects, or only our teams?

1 Like

It’s a difficult one as you have alpha-ed meshes-instances interweaved with non alpha-ed. I think the order of the mesh instances are decided by distance from the camera.

You can try to set the sort order of the layer (you may need to create a new layer for this) to work better with your meshes? Potentially setting it to manual so you can set the drawOrder correctly yourself in code.

2 Likes

Thanks.

You can try to set the sort order of the layer (you may need to create a new layer for this) to work better with your meshes? Potentially setting it to manual so you can set the drawOrder correctly yourself in code.

I understood what you said, but so sadly that horse is now one fbx file… (materials are different)
If there is no good way, we recreate that horse models.

If you break the mane with the alpha off from the main model and export on it’s own, so the one export (horse) has no alphas, and then any thing with alpha is exported on it’s own, you should be able to control it better.

1 Like

If you’re curious about the order in which your scene is being rendered, check out SpectorJS. It’s very cool:

Are you able to share a link to a scene that just contains the horse perhaps? It would be interesting to take a closer look.

2 Likes