Comments (6)
Which version of SharpGLTF are you using?
Which framework are you targeting? I suspect NetFramework 4.6 or 4.7?
Is your csproj old style, or the new SDK style?
You can try one of those solutions:
https://github.com/dotnet/corefx/issues/30106#issuecomment-395185748
Let me know if it solves your issue
from sharpgltf.
Thank you for such a quick reply!
SharpGLTF version 1.0.0-alpha007
Framework 4.7.1 also just reproduced the difficulty with 4.7.2
old style of the csproj
Thank you for the solutions link, I've tried them previously I will double check them again now.
Keep you updated
from sharpgltf.
I've just created a console app test project, old style, targeting net471 and it seems to be working fine.
I've seen similar issues when the main application, or another dependency, is also using System.Numerics.Vectors, or even worse, a different version of system.Numerics.Vectors.... in that case, the first dependency that needs System.Numerics.Vectors loads it successfully, and all others fail.
This all happens because old style csproj arranges the dependencies to require the exact version match.
New SDK csproj is more friendly about dependencies, so, if it's possible for you to switch to new SDK csproj style, it might solve your problem.
from sharpgltf.
vpenades,
Thank you very much for the useful link and for the extensive explanation.
In my specific case, I needed to include a dependent assembly configuration in the starting project.
If the same configuration is applied in a newly created library with SharpGltf referenced that was part of the solution - it didn't work.
So in case somebody experiences something similar - make sure that dependendAssembly is configured correctly in your starting project inside. App.config file
Use this example:
<dependentAssembly> <assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" /> </dependentAssembly>
from sharpgltf.
Hi @Imaver
I've just uploaded new packages of SharpGLTF. I while ago I realized that Net.Standard 2,0 allows for implicit System.Numeric.Vectors dependency, so there's no need to explicitly reference system.numerics vectors.
You can try the latest packages (Alpha0008) and see if it solves your problem.
from sharpgltf.
Hi @vpenades,
Thank you very much for keeping me up to date!
I will check the new version
from sharpgltf.
Related Issues (20)
- [QUESTION] Is there a more propper way to generate a mesh which contains primitives that have different vertex fragment types? HOT 3
- [QUESTION] Any reason morph targets count is sometimes 0 on a mesh? HOT 6
- Reflection Problems for Trimming HOT 15
- AttenuationDistance incorrect default value HOT 1
- [BUG] Extras data lost during load HOT 3
- Satellite image file name incorrect when the gltf file contains extra dot HOT 1
- [Question] Vertex Normals HOT 1
- [Feature request] Export image with its name rather than just the GLTF's name + number HOT 1
- Automaticaly Generate Normals HOT 1
- Expose accessor bounds
- FileLoadException in Navisworks plug-in HOT 3
- [enhancement] make LogicalBufferIndex field public in file gltf.BufferView.cs
- Use generated C# files from CodeGen HOT 6
- [Question] Mesh Vertex with UVW are exploded HOT 2
- CodeGen Tool generates JsonNode not the object itself HOT 1
- No tag for the alpha0031 release from nuget.org HOT 2
- [Questions] Some questions regarding correct procedure for reading HOT 6
- [BUG] VerifyAccessorBounds does not support component type other than FLOAT HOT 3
- Use FileStream to write json gltf HOT 5
- Mesh Extras not supporting custom encodersettings, to avoid special character serialization
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 sharpgltf.