error adding Assimp64.dll reference
#7
I would advise you to read the 3D model in code with using ReadModel3D method on AssimpWpfImporter class (see the AssimpWpfImporterSample.xaml.cs sample).

This will give you a WPF's Model3D object. If you are not familiar with WPF 3D object check the internet - (some useful links can be found on https://www.ab4d.com/Links.aspx).

After that you can go through the hierarchy of read 3D models and change the material on each GeometryModel3D.

As shown in the sample, you can show the loaded Model3D with first creating a ModelVisual3D object, assign Model3D to its Content and then adding the ModelVisual3D object to Viewport3D.Children collection (the above sample shows the model with using WireframeVisual3D, but there are also many other samples that show you on how to show a loaded 3D model).

I would also advise you to check also other samples and check what part of the samples you can also use.
Andrej Benedik
  


Messages In This Thread
RE: error adding Assimp64.dll reference - by abenedik - 11-05-2019, 03:17 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)