Nasty drawing error

So I’ve been experimenting with Unity for a few days and have run into a pretty nasty issue that I can’t seem to figure out.

I’m not a game dev, and am seeing how Unity could work for me in the medical sim arena. To that end I modeled a simply vessel branch in C4D R11. Initially it was a hypernurb but I converted that to a standard mesh. To show the detail of what’s going on, the mesh is cut in half so you can see the inside.

Bringing it into Unity and placing it on screen, it looks fine from the back, and from the side, but if I swing around to look at it from the open side (where I need to be viewing it from) all you see is a tiny edge. The model looks ok in the little preview thing at the lower right, and has just a simple red texture on it.

Thoughts?

Normals on the front side are reversed. Use an align normals command inside your 3d graphics program.

Duh, forgot about that. Had to reverse them all, actually.

But that brings up another point. What if I need to show the other side of a model like this at some point? No matter which way I align my normals, the opposite side is going to be screwed up if I have to swing around the back.

Seems like backface culling is always on, with no way to disable…

Yep, you can’t have two-sided faces. You’d need to actually create inner and outer faces if you wanted to see both the outside and the inside at some point.

Unless I’m misunderstanding, and you’re having the problem that half of your model is not visible from the outside… in that case, it’s still a normals issue, but it means that your normals are all pointing the same direction, no matter what direction your face is pointing.

Fixing that depends on which 3D graphics program you’re using, as every program does it in a different way. There may be some kind of “recalculate normals” button that will do some of the job for you.

Use “cull off” in a custom shader. (This has been brought up probably dozens of times; a search should find many examples.) Keep in mind that lighting will be the same on both sides, but it doesn’t look like an issue in this case.

–Eric

Best way is to:

1). Copy your mesh as a separate object.

2). Select one of the objects object and reverse it’s normals.

3). Make sure both models are in the exact same place and combine the two objects into one.

This will double the polygon count, but it’s necessary.

Here’s the cull off shader Eric5h5 was talking about :wink:

201841–7450–$diffuse_culloff_221.shader (7.91 KB)