You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to create a new Scene using a custom 3D model format not supported by Assimp. The issue is, is I am not very knowledgeable when it comes to unsafe/unmanaged code in c#.
My issue is that when I try to create a new Scene(), the scene is read-only. This is intentional, and I've read that there is a different way to do this. However I'm unsure of my interpretation of how to work this into my project.
From my understanding, I must first create an AiScene, and assign to the AiScene, pointers which reference the structures housing all the data, then pass a pointer to the AiScene reference into the method Scene.FromUnmanagedScene(AiScene*). Is this correct?
I am very confused about this, and any help at all would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
The managed Scene data structure is not read only. Once imported, it can be manipulated in however manner you want. You can create a new scene structure from scratch. In either scenario, the scene can then be exported. And really, the only time you need to create a new scene from scratch is when you're exporting.
In the export scenario, the library will use that "FromManagedScene" function to create a representation of the data that native assimp can work with. As an end-user you do not need mess with anything in the Assimp.Unmanaged namespace. All you need to do is work with the .net classes in the main namespace.
I'm currently trying to create a new Scene using a custom 3D model format not supported by Assimp. The issue is, is I am not very knowledgeable when it comes to unsafe/unmanaged code in c#.
My issue is that when I try to create a new Scene(), the scene is read-only. This is intentional, and I've read that there is a different way to do this. However I'm unsure of my interpretation of how to work this into my project.
From my understanding, I must first create an AiScene, and assign to the AiScene, pointers which reference the structures housing all the data, then pass a pointer to the AiScene reference into the method Scene.FromUnmanagedScene(AiScene*). Is this correct?
I am very confused about this, and any help at all would be greatly appreciated.
The text was updated successfully, but these errors were encountered: