Jump to content

STL-mesh smooth shading


photo

Recommended Posts

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

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:

Link to comment
×
×
  • Create New...