Comments (7)
I've given this some thought and I'll be going ahead with AnyCPU support. I
intend on going a different route though, similar to how OpenTK does it via
loading the library dynamically / collecting function pointers and marshalling
managed delegates.
Original comment by nicholas.woodfield
on 16 Nov 2012 at 6:02
- Changed state: Accepted
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from assimp-net.
Sure , whatever you believe is best , but just to clarify something in case you
didn't see the patch ... the native assimp library IS loaded dynamically using
LoadLibrary() from kernel32.dll , just like in OpenTK. I tried not to change
the rest of your code with the dll entrypoint functions.
Unless of course i am missing something and you are talking about a different
method of loading.
Original comment by [email protected]
on 16 Nov 2012 at 9:17
from assimp-net.
I saw the dynamic loading, I was just stating that for completeness. The idea
is rather than to bastardize the "AssimpMethods" static library to implement a
factory based interop initialization that will load the correct native DLL
(including upfront user-configrations), get the addresses of the C-API methods
we use, marshal the delegates and manage it all. As well as properly
disposing/freeing the library.
Original comment by nicholas.woodfield
on 16 Nov 2012 at 9:27
from assimp-net.
that sounds interesting.. looking forward to it :)
Original comment by [email protected]
on 16 Nov 2012 at 9:36
from assimp-net.
After a hiatus due to the holidays, I've finished this spot of work and its
been committed. Still need to do testing, so any feedback would be appreciated.
You can also load the unmanaged library with a custom path:
AssimpLibrary.Instance.LoadLibrary(relative path to DLL)
Do this prior to calling any methods in AssimpImporter. Otherwise, things will
behave as exactly as before. You can also unload the unmanaged library if
necessary as well.
Original comment by nicholas.woodfield
on 31 Dec 2012 at 5:09
- Changed state: Done
from assimp-net.
I just checked the code and it seems to work great !
(I didn't check the freelibrary.)
just a quick note here .. i added an overload for LoadLibrary() to autodetect
the platform... i think that will make it easier (especially for people who
don't know the pointer size check trick) ...
https://github.com/VirusFree/AssimpNet/commit/043ca12ce0863460726c1beb838f903bce
a78771
I also noticed some code of this project being ported in SharpDX toolkit ..
which makes the anycpu feature even more useful :)
Original comment by [email protected]
on 31 Dec 2012 at 10:01
from assimp-net.
Good suggestion, I'll add it
Original comment by nicholas.woodfield
on 2 Jan 2013 at 2:43
from assimp-net.
Related Issues (20)
- Help with scene creation HOT 1
- Custom IO System doesnt work when Importing from stream HOT 2
- blender 2.7.9 .obj file has blank names. (using 3.3.1 Release) HOT 1
- Problem importing OBJ files (probably assimp problem, not assimpNet)
- Is there a EmbededTexture property from which I can get the texture image reference ? HOT 2
- Sample uses GL.Begin/GL.End
- exceptions when reading ifc files.
- Observed incorrect DurationInTicks when loading .GLB models.
- New version needed HOT 3
- IMPORT_COLLADA_USE_COLLADA_NAMES
- Error when importing assembly stream
- I get an error when I try to build
- I got problem with serialization
- Indices not in a multiple of three
- Exploded ifc in example project
- AssimpContext.ExportFile broken HOT 3
- Issue with glb2 export
- Wierd/Wrong import of COLLADA (.dae ) files
- ApplyPostProcessing after Scene.ToUnmanagedScene() returns IntPtr.Zero
- How can I get texture data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assimp-net.