I’m building a basic configurator: show a model, change colors and textures. I’m having an issue with setting up the background color. I’m using the clearcolor to set the background color to white.
My client reports that he sees the background color flicker between white and black when orbiting the camera. He has tried in several browsers and they all have this issue in different degrees. I’m unable to reproduce this on my PC though, so I’m unable to create a playground with this issue.
Here’s a video of the issue:
Does anyone have an idea where I can look to start solving this?
I have a backgroundMaterial on the square plane underneath the shirt. The rest of the background uses a clearcolor. Besides that I use a DefaultRenderingPipeline and a SSAO2RenderingPipeline.
This is what I use for the clearcolor
scene.clearColor = new Color4(1, 1, 1, 1);
scene.autoClear = true
Exactly. Somehow it seems the clearcolor alternates between its regular color (white) and black, or completely transparent. And it depends on the angle of the camera.
I was thinking that you are clipping out of your environment box from what I am seeing, but after thinking about where it disappears though @sebavan might be spot on because those would be the longest continuous lines to the edge from those positions.
I’ll change the maxZ and make a new release for the client.
I could also add an inverted box around my scene. Perhaps it will help.
The client reports no errors in the console by the way.
Increasing the maxZ didn’t help. I added an inverted white cube around the scene which does help.
So, I couldn’t find out the original issue. I couldn’t reproduce it myself either. But I’ve worked around it with the inverted cube.
In any case, thanks everyone for the very fast responses.