-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotImplementedException: The requested feature is not implemented. #1376
Comments
Could you provide the file please?
neosca <notifications@github.com> schrieb am Mi., 9. Aug. 2017, 13:49:
… I am using the latest AssimpNet 3.1.1. And I ma getting the following
error when loading a fbx file:
NotImplementedException: The requested feature is not implemented.
System.Runtime.InteropServices.Marshal.GetHRForLastWin32Error () (at
/Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs:412)
Assimp.Unmanaged.AssimpLibraryWindowsImplementation.NativeLoadLibrary
(System.String path)
Assimp.Unmanaged.AssimpLibraryImplementation.LoadAssimpLibrary
(System.String path)
Assimp.Unmanaged.AssimpLibrary.LoadLibrary ()
Assimp.Unmanaged.AssimpLibrary.LoadIfNotLoaded ()
Assimp.Unmanaged.AssimpLibrary.CreatePropertyStore ()
Assimp.AssimpContext.CreateConfigs ()
Assimp.AssimpContext.PrepareImport ()
Assimp.AssimpContext.ImportFile (System.String file, PostProcessSteps
postProcessFlags)
Loaded.Start () (at Assets/Scripts/Loaded.cs:26)
Below is the C# script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
using Assimp;
using Assimp.Configs;
public class Loaded : MonoBehaviour {
public string filepath = @"D:/DynamicLoadPOC/10001.fbx";
private Scene m_model;
// Use this for initialization
void Start () {
string filename = Path.GetFileName (filepath);
string rootpath = Path.GetDirectoryName (filepath);
Assimp.AssimpContext import = new Assimp.AssimpContext ();
// MeshVertexLimitConfig m = new MeshVertexLimitConfig (65000);
// import.SetConfig (m);
Assimp.PostProcessSteps flags = (Assimp.PostProcessSteps.OptimizeMeshes |
Assimp.PostProcessSteps.OptimizeGraph |
Assimp.PostProcessSteps.SortByPrimitiveType |
Assimp.PostProcessSteps.SplitLargeMeshes |
Assimp.PostProcessSteps.Triangulate);
m_model = import.ImportFile (rootpath + "/" + filename, flags);
if (m_model == null) {
Debug.Log ("cannot read file");
} else {
Debug.Log (m_model.MeshCount + "mesh count");
}
}
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1376>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACNy1JE7tnlBeCjqZ_RBwRbbBrPSXdKAks5sWZzXgaJpZM4Ox9_C>
.
|
Sorry I did a typo earlier, I was using the AssimpNet.3.3.1 library. And got the above error, I was able to get the error resolved by following the below thread, and placing the Assimp64.dll in my project folder: However, than I started getting a null reference error: I did some research and on this thread, someone was able to get rid of that by using 3.0 or 3.2 version: So, now I am using AssImpNet3.2 and started getting the below error: You can download the fbx I am using from the below link: Sorry for troubling you this much, any help is appreciated. |
I am using the latest AssimpNet.3.3.1 (edited: there was a typo earlier,). And I am getting the following error when loading a fbx file:
NotImplementedException: The requested feature is not implemented.
System.Runtime.InteropServices.Marshal.GetHRForLastWin32Error () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs:412)
Assimp.Unmanaged.AssimpLibraryWindowsImplementation.NativeLoadLibrary (System.String path)
Assimp.Unmanaged.AssimpLibraryImplementation.LoadAssimpLibrary (System.String path)
Assimp.Unmanaged.AssimpLibrary.LoadLibrary ()
Assimp.Unmanaged.AssimpLibrary.LoadIfNotLoaded ()
Assimp.Unmanaged.AssimpLibrary.CreatePropertyStore ()
Assimp.AssimpContext.CreateConfigs ()
Assimp.AssimpContext.PrepareImport ()
Assimp.AssimpContext.ImportFile (System.String file, PostProcessSteps postProcessFlags)
Loaded.Start () (at Assets/Scripts/Loaded.cs:26)
Below is the C# script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
using Assimp;
using Assimp.Configs;
public class Loaded : MonoBehaviour {
// MeshVertexLimitConfig m = new MeshVertexLimitConfig (65000);
// import.SetConfig (m);
Assimp.PostProcessSteps flags = (Assimp.PostProcessSteps.OptimizeMeshes | Assimp.PostProcessSteps.OptimizeGraph |
Assimp.PostProcessSteps.SortByPrimitiveType | Assimp.PostProcessSteps.SplitLargeMeshes |
Assimp.PostProcessSteps.Triangulate);
}
The text was updated successfully, but these errors were encountered: