Mario_Fiestelmann Posted March 14, 2022 Share Posted March 14, 2022 Hi everyone, I am loading stl meshes into unigine which are flat shaded (triangle normals only). Is it possible to use interpolated vertex normals for smooth shading with an editor option, or do I have to calculate them in code and provide them in the mesh file beforehand? Thanks in advance and best regards Mario Link to comment
silent Posted March 15, 2022 Share Posted March 15, 2022 Hi Mario, I think you can create normals on your own by calling Mesh::createNormals(angle, surface). In 2.16 we will add automatic LODs generation for CAD Importer, so you would be able configure it to calculate normals when creating LODs (similar to current FBX / OBJ importer). With this option enabled you can generate only a single LOD that will contain 100% of original triangles and will contain normals. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts