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
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.
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
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'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 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 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.
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"
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
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.