Meshes going invisible ingame

What are you attempting to achieve?

I’m trying to import meshes from Blender with UV maps and SurfaceAppearance textures.

What is the issue?

Randomly some meshes vanish and appear invisible (but they are still there, as the character can collide with them) while playing in Roblox player.

For example, this is what you should see (and do sometimes):

But instead, you get this (which if you look very carefully - and only really visible when it moves - you can still actually see the model, but it’s almost 100% transparent).

The above image was taken after reloading the game a couple of times, but nothing was changed in the game (it wasn’t re-saved or republished). You can see both the large tree and a set of rocks have vanished.

There are no errors that appear when the mesh disappears (the only error is one that I get on all experiences - Placelauncher: Teleport failed because join script failed to load).

What solutions have you tried so far?

I’ve looked through all the wikis I can find, and while there are a few people who have mentioned meshes behaving oddly and vanishing, there don’t appear to be any resolutions that work.

I’ve tried:

  • re-importing the meshes
  • re-importing the texture
  • changing the meshes “double-sided” setting
  • moving the meshes so they don’t intersect with other meshes
  • changed the gfx settings in-game and in studio
  • removing the surface appearance
  • turning shadow casting on and off

None of these permanently or consistently fix the issue.

My game has quite a few meshes (although it it runs on my gaming PC at the max 60FPS). I’ve also tested it with another lower-end PC (which can also manage 45FPS) and I get the same inconsistent results with meshes disappearing occasionally and tried it with other people who also experience this.

Interestingly it appears to be a couple of specific models that this happens with but all of them were created in blender and exported to FBX in the same way (and as mentioned above re-importing them doesn’t solve the issue).

I would appreciate any advice on other things I could try or that could cause this.

3 Likes

Yeah I noticed this in my game… I think it’s a bug though

1 Like

It appears to happen on either meshes that have PBR surface appearance, or a mesh (without PBR surface appearance) that is the same ID as one in the place that has PBR surface appearance.

1 Like

My mesh is just a plain old mesh, no textures or colours, except studio stuff

1 Like

So I may have solved this - it appears to be the Camera Occlusion setting in the StarterPlayer despite the camera being set as scriptable.

Here’s settings when the error occurs:

image

As you can see, Invisicam is set for the CameraOcclusion. But it’s disabled because I’m using Orbital.

What appears to be happening is that despite the camera being scriptable, it’s starting by using the Invisicam before it enables the camera manipulation through scripting.

To fix this, I changed the TouchCameraMovementMode to classic and switched the CameraOcclusion to Zoom.

image

I then switched back to Orbital.

image

Since doing this I’m yet to get a random invisible mesh - after 20 attempts. So if you’re having this issue I suggest checking what occlusion mode you have set (even if it’s disabled and you’re using a scripted camera manipulation).