EliteUnity
EliteUnity

Reputation: 3

(Unity3D) When the Camera is in a object, Camera will stop rendering the object

I'm using unity 2018.4.14f1 personal (I don't use 2019 or 2020 because it lags my computer)

I'm using the Unity Standard Assets Player Prefab and Cinemachine Freelook for the camera. I have some water, and when my player walks into it, its fine. However, when the camera comes into the water, it stops rendering the water. Is there anyway I can fix it?

Update: I've somewhat got it working, however its hollow when your inside. Is there anyway to fix that?

Video : https://easyupload.io/2b0p3a

(I'm quite a noob so if you need any screenshots please ask.)

Upvotes: 0

Views: 348

Answers (1)

ChilliPenguin
ChilliPenguin

Reputation: 715

The problem here is that the water will only rendered when looking from the outside as the normalized are modeled so. The program renders outs objects that it thinks is not in view. You can load the model into a 3d program and then copy and invert the model to allow your camera to see the water, or I believe there are some shader option to stop this optimization. You can also look in this Reddit thread.

Upvotes: 1

Related Questions