2

I am working on a game where there will be two different planes and the player will move between the two planes (1st person perspective).

I put the main camera in between two different planes that have equal x and z values and the y values differ by 10. Right now the camera has a y value of 5 (right in between the two planes).

No matter where I move the camera below the top plane I cannot see it. I guess technically it’s the bottom of the top plane.

Here is what everything looks like:

Here is an image of the scene view

2
  • You could also try to create a double sided shader or Take one from the AssetStore
    – derHugo
    May 22, 2019 at 17:13
  • look up "backface culling" thats the "problem" you have. if you just flip the top plane around you will see it. but look up "backface culling" anyway. no easy way out, we are here to understand things ;)
    – yes
    May 22, 2019 at 23:46

1 Answer 1

2

Planes are rendered only in one direction. So if you see the bottom you won't be able to see it.

If you want to see both sides you could use a cube primitive and shrink the y scale component to be really thin, or you can make two planes, putting them back-to-back.

In the case you want to set them back to back you can just (1) duplicate the plane (with CTRL + D) and then set the scale of this new plane to 1,-1,1 with the same position of the other. All the other values will stay the same of the other original plane.
Like this:

enter image description here

You see only one face of the plane because because the normals of that plane are pointing upwards, and the default shader only renders surfaces where the normal of that surface (usually an average of the vertices of that surface) is facing the camera.

Most of the shaders are set to cull backfaces. To have a more advanced solution you can simply set CULL OFF in the shader to render both sides.

See also: Render both sides of a plane - Unity Answers

3
  • Adding a box collider lets you see it from below?
    – Ruzihm
    May 22, 2019 at 16:41
  • 1
    Yes, but if you have both plane and box they would most likely conflict in some way. You could add a box collider, but make sure it doesn't touch the plan. Maybe the best solution is just to copy the plane and just reverse it. May 22, 2019 at 16:43
  • 1
    I see, like one of these? Colliders are invisible without a renderer attached to them
    – Ruzihm
    May 22, 2019 at 16:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.