Search Unity

Inside rendering

Discussion in 'General Discussion' started by trollgadol123, Apr 8, 2021.

  1. trollgadol123

    trollgadol123

    Joined:
    Apr 8, 2021
    Posts:
    1
    Hi,

    I'm new to Unity and I'm trying to make a simple cube without box collider so my character can pass through the cube but the moment I step into the cube I can see everything outisde the box, it's like the box disappeared and I see the cube once again when I step out of the cube.
    I'm interested to see the texture inside as well, like if I need that my character will be inside water or any fluid, I need to be able to see the texture inside the water surface not just the surface.
    I hope you understood What i'm trying to say here.
     
  2. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,982
    You want to disable backface culling on the parts that are disappearing
     
  3. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    You need a double sided shader., Or make sure the mesh have normals in both directions
     
  4. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,639
    This is just normal behavior for a graphics engine- Only one side of each polygon is rendered. In the case of the Unity cube, all of the polygons are facing outward. If you want a cube where the polygons face inward, you can create such a thing in Probuilder or Blender.