#Inside of Mesh transparent?

11 messages · Page 1 of 1 (latest)

grim barn
#

Is there a way to make the inside of a mesh transparent? Like, if the camera ends up inside a cube, it shows black... but is there a simple way to just make the inside faces of the cube be transparent instead?

#

actually, what I'm seeing might be because of a shader 🤔

remote sleet
#

Don't quote me, but I think that's the default behaviour

#

A triangle won't normally render when you look at it from the back, and if you're inside a cube you're looking at the back of all the triangles

grim barn
#

right, that makes sense.. but if I wanted to make the inside of the cube transparent... the faces would need to be double-sided, right?

#

I know I can go into blender and solidify a mesh and then make the inside faces transparent... but then the camera would just show the backside of the outside faces..

the thing I want to achieve is if the camera goes inside an object that the object becomes transparent... but it seems the way to do that is actually have code that switches the material if the camera ends up inside of it 🤔

#

ah, actually, that doesn't work because it's still the backface. I have to actually hide the object

remote sleet
#

It's probably best to specifically hide it yeah

young gulch
grim barn
#

i think what I'm seeing might be because of a shader I'm using

agile musk
#

if you are making a custom shader, you need to change some things on the specialize function to say to do backface culling