Archive 17/01/2023.

Flat shading a model

burgreen

I converted an STL to MDL format. Once I import the model, how do I render with flat shading instead of the smoothed shading?

godan

Use AssetImporter with -h switch? Haven’t tested it…

AssetImporter model Path/To/Stl MyMDL.mdl -h

More generally, you can get the flat shaded effect by duplicating the vertices of each triangle (i.e. index buffer and vertex buffer are parallel) OR messing around with shaders.

Modanung

You could use Blender to split the edges and export to MDL using the reattiva plugin.

And welcome to the forums! :slight_smile:

burgreen

-h worked perfectly. I did not want to mess around with shaders.