Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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,035
    You want to disable backface culling on the parts that are disappearing
     
  3. MDADigital

    MDADigital

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

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    2,627
    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.
     
unityunity