Comments (8)
@jirisamek I am working on a fix for this problem, thanks for reporting this. See PR #59. I think I may have to split the elements into smaller buffers internally, as this fix works for #56, but right now not for #58; but this is the correct fix with more implementation tweaks required for your case.
Are you OK with me using the model you have provided as part of AssimpKit test cases? The AssimpKit licenses explicitly mention the usage of such files only for testing purpose. Let me know. Thanks!
from assimpkit.
@dmsurti thank you very much for quick response. The model is not mine. I have downloaded it from https://free3d.com/3d-model/cyprys-house-23761.html, and the licence tag says: "Commercial use License". I didn't find actual text of license so I don't know if it is possible to use it in open source as model in test cases. Also this specific dae seems to have broken textures/materials.
from assimpkit.
Fixed in #59. In addition to mallocing scene buffers, it also requires ignoring the faces which are not triangulated!
This model contains material colors and/or embedded textures, which is being fixed in #62 and #64.
from assimpkit.
With #64, the house now has textures as well.
Also this specific dae seems to have broken textures/materials.
@jirisamek Actually this file has all colors for material properties, #64 ensure correct texture and colors are applied to material properties.
from assimpkit.
Hi, I've same issue with newest code in master branch .
It's throw exc_bad_access in the makeTangentGeometrySourceForNode:
SCNGeometrySource *tangentSource = [SCNGeometrySource geometrySourceWithData:[NSData dataWithBytes:scnTangents length:nVertices * 3 * sizeof(float)] semantic:SCNGeometrySourceSemanticTangent vectorCount:nVertices floatComponents:YES componentsPerVector:3 bytesPerComponent:sizeof(float) dataOffset:0 dataStride:3 * sizeof(float)];
But this crash is only happen on iOS8, if I running it in iOS11, everything work fine
from assimpkit.
I'm using a model by obj+mtl+jpg
from assimpkit.
oh, I found the reason why it would crash on iOS 8, because in , it using a constant that only available after iOS 10, it is SCNGeometrySourceSemanticTangent
, here is the define:
FOUNDATION_EXTERN SCNGeometrySourceSemantic const SCNGeometrySourceSemanticTangent API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0));
from assimpkit.
@azolyoung AssimpKit
minimum iOS requirement is iOS 10.0 or later, which is listed in the README.md
and in the project home page.
from assimpkit.
Related Issues (20)
- AssimpKit can not display all the animations of the FBX model HOT 10
- duration, this property does not take effect
- removeAnimationSceneForKey, this method does not take effect
- Swift Example similar to ObjC HOT 3
- How can I apply scaling, translation and rotation for a model HOT 1
- Problem with import of a dxf file HOT 1
- The problem with the import of external textures for the 3ds model HOT 1
- [UIView setScene:]: unrecognized selector sent to instance 0x101906830 HOT 4
- [SCNScene assimpSceneWithURL: unrecognized selector sent to class
- Scene importing failed for filePath DAE
- Xcode project won't build RE: ld: library not found for -lassimp-fat HOT 2
- .fbx model might loss textures
- Xcode run crash. HOT 1
- App size increase about 16M HOT 1
- Loading fail .ply file for point cloud. HOT 2
- Add support for Swift Package Manager HOT 2
- carthage update --platform iOS --use-xcframeworks Task failed with exit code 65:
- Does the framework intend to continue to be updated? HOT 4
- Thread 1: EXC_BAD_ACCESS standard C memory issue HOT 1
- Texture issue in FBX file HOT 10
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 assimpkit.