Error when importing assembly stream
- Dominant language
- C#
- Stars
- 218
- Forks
- 83
- PR merge metrics
- No merged PRs in 30d
Description
Heya,
If this problem has been solved once, I am very sorry.
I have an assembly, where I store a "glb"-file (had the same issue, with "obj", too) with some primitives.
The problem is, when I import the stream over "ImportFileFromStream", I get the following error message:
`Assimp.AssimpException: 'Error importing file: BLEND: BLENDER magic bytes are missing, couldn't find GZIP header either`
If I open it over paths, it's importing as it should.
I use `Assembly.GetExecutingAssembly().GetManifestResourceStream("SMRenderer.Base.Models.Objects.SMDefaultObjects.glb")`
to import the stream. At other importer, like SharpGLTF, I had no problems with the stream.
I am on Assimp-5.0.0-beta1 (latest currently)
I am happy for everyone, who attempts to help me.
Michel
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure by obtaining the embedded GLB with Assembly.GetExecutingAssembly().GetManifestResourceStream and passing it to ImportFileFromStream; compare that with importing the same asset by path. Trace how ImportFileFromStream identifies GLB and OBJ streams, and consider the reported BLEND/GZIP detection error. Done means embedded GLB and OBJ streams import successfully as their paths do.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100