M.Kumaran
M.Kumaran

Reputation: 883

How to load 3D model from a 3ds file using AssimpNet in C# (SharpDX)?

I want to load and display a 3ds file in C# using SharpDX. To load 3ds file I found a tool 'Assimp' and got a wrapper for C# AssimpNet.

How to load 3ds using AssimpNet? I don't see any importer available in assimpnet.

Upvotes: 0

Views: 2224

Answers (1)

J T
J T

Reputation: 11

Assimp.Scene model;
Assimp.AssimpContext importer = new Assimp.AssimpContext();
importer.SetConfig(new Assimp.Configs.NormalSmoothingAngleConfig(66.0f));
model = importer.ImportFile(filename, Assimp.PostProcessPreset.TargetRealTimeMaximumQuality);

Upvotes: 1

Related Questions