Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Help Wanted Nested transparent spheres - Can't visible the core

Discussion in 'General Graphics' started by yuemco, Jul 28, 2021.

  1. yuemco

    yuemco

    Joined:
    Jul 1, 2018
    Posts:
    28
    Hi all,

    I'm trying to create layered spheres around a cube. Normally it should be transparent for each layer, but as the layers increase, the cube is not visible. How do I ensure the transparency of each layer equally? I just want the layers to be clearly visible but at the same time, I want to increase the visibility of the centre.

    The button you see in the picture adds a layer each time and the central cube loses its visibility a little more each time.

    Thanks. Sphere1.JPG Sphere2.JPG
     
  2. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    2,903
    If you make the spheres inside-out, then it would look about the same, but the cube would be perfectly visible.

    Also, normally transparent objects render after opaque, but I think you can change when it renders in the material, so you might be able to set the cube's material to render later in the queue. Then the cube will render in front of the spheres.
     
unityunity