Sky sphere not display when camera is a child of a mesh

I put a star texture to a doublesides( BABYLON.Mesh.DOUBLESIDE) sphere to simulate the night sky.
The sky could be renndered with any camera without parent. It displayed as below:

And the camera was set as a child use “camera.parent = mesh”, the night sky background dispeared like below:

I tried camera.maxZ with a big number but nothing went better.
What’s wrong with it?

Hello! Can you provide us with a Playground Babylon.js Playground (babylonjs.com) repro so we can take a better look at it? :slight_smile:

The code is a little comlex. But world try it.

1 Like

There’s no need to replicate everything, just the important parts like the sphere, material, camera, etc :slight_smile:

1 Like

All right. I just gave up using parent.
With coordinate transformattion, I solved the problem.
Thank you for the replay.
And if needed, I would use playground next time.

1 Like