Ab3d.DXEngine.Wpf.Samples.net80 compilation errors with AssimpPbrHelper - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Ab3d.DXEngine (https://forum.ab4d.com/forumdisplay.php?fid=11) +--- Thread: Ab3d.DXEngine.Wpf.Samples.net80 compilation errors with AssimpPbrHelper (/showthread.php?tid=4448) |
Ab3d.DXEngine.Wpf.Samples.net80 compilation errors with AssimpPbrHelper - mjtrainor - 04-30-2024 I pulled the latest DXEngine sample project from Github yesterday with the intent of looking at the new functionality in 7.0. I also pulled the PowerToys sample project for 11.1. I'm registered for both DXEngine and PowerToys and have 7.0.8865 and 11.1.8864, both updated from Nuget, VS2022 (all patches applied) and I'm using the .net80 versions of each project. The PowerToys project compiled and ran without issues. The DXEngine project does not compile as-is. The problems are in AssimPbrHelper.cs in functions SetupPbrMaterials() and UpdatePbrMap() There are four errors, each stemming from assimpWpfImporter, and all for misisng fields/properties/functions. assimpWpfImporter.LastImportedFileName assimpWpfImporter.AssimgWpfConverter assimpWpfImporter.LastUsedTexturesPath assimpWpfImporter.GetEmbeddedTexture() I was able to compile the DXEngine sample but commenting out the majority of the two above mentioned functions. The Pbr samples don't run, but I expected that. Everything else seems fine. Any suggestions? It's not critical, I don't need those particular samples, I just prefer to minimize the number of changes I have to github samples, so I need to reapply changes if I pull a new version (I'm already adding in my licensing info to both apps so I can keep a running version available to look at, at need - as well as let some of our engineers see what capabilities your libraries make easy). I examined the Ab3D.DXEngine.Wpf.Samples\lib folder (as references in the .csproj) and the date on Ab3D.PowerToys.Assimp.dll is 2024/04/29, as is Assimp32.dll and Assimp64.dll. Assimpnet.dll is 2023/10/28 RE: Ab3d.DXEngine.Wpf.Samples.net80 compilation errors with AssimpPbrHelper - abenedik - 04-30-2024 Thank you for your information. The distribution process for Ab3d.PowerToys and Ab3d.DXEngine is quite complex because the libraries are distributed in installers and as NuGet packages. There are also GitHub samples for multiple .Net versions. So it is possible that there are some problems. I really appreciate any feedback if this happens. But, after your information, I have downloaded the zip version of the Ab3d.DXEngine samples, extracted it, and it started without any problems. The file that seems problematic for you is Ab3D.PowerToys.Assimp.dll from the libs folder. The previous version of this assembly did not had the properties and methods that you mentioned. But the zip file fom GitHub had the new version of the Ab3D.PowerToys.Assimp - version 11.1.8864. The same version is also used in the net60 folder. And also the Ab3D.PowerToys.Assimp.dll that comes with Ab3d.PowerToys samples has the same version. The AssimpNet.dll is older and there we no changes from the previous release. So, I really do not know how it is possible that your project was using an older version of Ab3D.PowerToys.Assimp. |