- Home /
Blender's Set Solid in Unity
I made my mesh in Blender. Im not sure how it works in other 3D apps but Blender has two rendering choices: "set smooth" and "set solid". When I import my mesh I believe Unity's shaders are only set to "Set Smooth". I like the way my mesh looks using "set solid". Is there a way to use "set solid" in Unity?
For anyone else not familiar with the features mentioned above:
Answer by Eric5h5 · Jul 22, 2011 at 06:49 PM
For some meshes you can set the smoothing angle in the mesh import settings. For more complex meshes, use the edge split modifier in Blender to indicate which edges should be hard (select edges and use the "mark sharp" item in the edge specials menu). Alternately, for non-animated meshes, exporting from Blender as .obj honors the smooth/solid faces.
The edge split modifier + make sharp seem to be working. Couldn't find the smoothing angle setting in Unity's mesh import settings but I guess its no problem. Thanks for the answer, I was beginning to think hard edges were impossible in Unity. Now I guess I have to do some research to find out how the edge split modifier and make sharp modify the mesh's data. Thanks.
Also, setting normals in the import settings to "Import" ins$$anonymous$$d of "Calculate" should preserve the normals as they appear in blender.
@AnotherYeti: no, that will have no effect. You need to split vertices in order to have hard edges.
@jb777: marking an edge as sharp causes the vertices to be split on those edges.
@jb777: Each vertex has a normal for each triangle that shares that vertex. When you have a smooth mesh all the normals for that vertex point in the same direction. When you have a hard edged mesh(solid) the normals point in the direction of the triangle that they corresponds to.
The edge split modifier changes the vertex normals based on the angles between triangles that share a particular edge.
That was an over simplified explanation. I'm quite poor at explaining things but I hope it helped. You should probably look into surface, vertex and per pixel normals to get a better understanding.
Your answer
Follow this Question
Related Questions
U5 shader coming out solid black on newer iOS devices (iPad 2 Air / iPhone 6) 1 Answer
Custom shaders cause objects to render behind other objects from certain angles 1 Answer
How to write an additive HDRP shader without glow 0 Answers
Universal Render is stuck applying Cyan 1 Answer
Scene Color Node in Shader Graph not working with Unity's 2D Renderer and URP 5 Answers