warrenm / gltfkit Goto Github PK
View Code? Open in Web Editor NEWAn Objective-C glTF 2.0 loader and Metal-based renderer
License: ISC License
An Objective-C glTF 2.0 loader and Metal-based renderer
License: ISC License
At the end of April, after the latest version of Apple submitted for review, Apple restored a warning email, which does not block the review at present. According to the official warning, it will be used as a condition for blocking the review around May. We hope to deal with the warning problem before May.
According to Apple's May 1 Privacy Policy, if you use the API in your app's code, you need to report the API in the app's privacy manifest file. If you use the API in the code of a third party SDK, you will need to report the API in the privacy manifest file of the third party SDK.
Since we use Swift packages to reference the GLTFKit2 framework in our app, but I can't see which interfaces need to handle Apple's privacy policy in the dynamic library, I hope the author can check the interfaces in the implementation code. Then add the PrivacyInfo.xcprivacy file.
v0.5.7
Swift packages
Although submission for App Store review was successful, you may want to correct the following issues in your next submission for App Store review. Once you've corrected the issues, upload a new binary to App Store Connect.
ITMS-91053: Missing API declaration - Your app’s code in the “FOURTRY” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryDiskSpace. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.
ITMS-91053: Missing API declaration - Your app’s code in the “FOURTRY” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategorySystemBootTime. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.
ITMS-91053: Missing API declaration - Your app’s code in the “FOURTRY” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryFileTimestamp. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.
ITMS-91053: Missing API declaration - Your app’s code in the “FOURTRY” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryUserDefaults. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.
Apple Developer Relations
We hope to get a clear reply and solution as soon as possible, so that we can deal with the review of Apple's shelves in May. Thank you.
Hi, when trying to import this library using CocoaPods I get this error:
[!] Error installing GLTF
[!] /usr/bin/git clone https://github.com/warrenm/GLTFKit.git /var/folders/26/6jnb3c8577d4l4lc08vv19gc0000gn/T/d20180629-39482-ekkeka --template= --single-branch --depth 1 --branch 0.5.1
Cloning into '/var/folders/26/6jnb3c8577d4l4lc08vv19gc0000gn/T/d20180629-39482-ekkeka'...
warning: Could not find remote branch 0.5.1 to clone.
fatal: Remote branch 0.5.1 not found in upstream origin
In the mean time, a workaround that worked for me is to use the latest version directly from git, like so:
pod 'GLTF', :git => "https://github.com/warrenm/GLTFKit.git"
pod 'GLTFSCN', :git => "https://github.com/warrenm/GLTFKit.git"
Hi
Im working on a Metal application which has to load models form .gltf files, but I will have to modify some vertex attributes of the model meanwhile. Could someone point me which part of the code processes the loaded data, and loads it into Metal buffers? Im new to objective-C, and could not find the place where this happens in the code.
Any help appreciated.
I have been trying to look into how to run a predefined glTF asset provided via a local url and load it on main start instead of going through the menu options every time. Is there an easy way of doing that? Sorry not very familiar with Mac OS windowing programming, been looking into NSDocuments and what not but struggling to do this easily.
I am experiencing a crash in SCNScene+GLTF.m
with this model. Address Sanitiser is reporting "detected out-of-memory". The crash happens intermittently – around 1 in 5.
The screenshot below shows the stack trace:
Any ideas on the cause?
Details
iPhone 7 Plus
iOS 13.1.2
Xcode 11.1
Hello. I dont have any informations because no log and its not crashing but this model doesn't want to be displayed:
https://sketchfab.com/models/2d79c585b5404a23b7bcc0be06068283
Error
NotSupported: loadMesh: user defined semantic is not supported: TEXCOORD_2
I've had to revert a whole bunch of clang module use in order to enable C++20 support in Xcode. I had to turn off GLTFKit as a result, but will see about adding it back with regular includes.
None of my Objective-C++ files would compile once C++17 was changed to C++20.
I want to build a opengl project on my iphone,I want to know whether this project can run on my iphone after a series of configurations.
Hello!
I am using GLTFMTL framework in iOS application, is works great on iphone XS (A12 chip). GLTFMTLLightingEnvironment and GLTFKHRLight works with any combinations. But on iphone 7 and 6s (A10 chip and lower) lighting don't work and the model is absolutely black. I tried many models and situation is the same. The problem was on the lines
_equirectToCubePipeline = [_device newComputePipelineStateWithFunction:equirectFunction error:error]; _irradiancePipeline = [_device newComputePipelineStateWithFunction:irradianceFunction error:error]; _specularPipeline = [_device newComputePipelineStateWithFunction:specularFunction error:error];
all the pipelines returned are nil.
The first suggestion is some parameter inside metal function is not compatible with a10 chip and lower. But I am not sure. Any suggestions?
Just open any model with bones in SCN viewer.
@warrenm take a look please.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.