tinygltf
cgltf
Our great sponsors
tinygltf | cgltf | |
---|---|---|
8 | 9 | |
1,882 | 1,373 | |
- | - | |
7.9 | 6.7 | |
about 1 month ago | about 2 months ago | |
C++ | C | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tinygltf
-
gLTF Tangent space normals with DirectX 11
Hey. I am trying to adopt gLTF 2.0 in my "engine". I am using tinyGLTF library. I have troubles with reconstruction of tangent normals. When I try to convert sampled normal vNt from normal map into world space by multiplying by TBN matrix I get a wrong result:
-
Can USDZ, glTF and GLB files contain a virus?
Here's an example of a recently patched remote code execution vulnerability in a library that parses gltf: https://github.com/syoyo/tinygltf/issues/368
-
Redefinition of ... previously defined despite using #pragma once
I'm playing around with my own OpenGL rendering engine and I'm encountering an error when trying to include the tiny_gltf.h library found here. Every definition in the tiny_gltf.h header is throwing an error similar to the following:
-
Where, online, can I download the .tar.gz file for tinygltf?
I searched for tinygltf in Google and found https://github.com/syoyo/tinygltf. I'm on mobile and didn't see the download link, but I switched the browser to desktop mode and there the green Code button is visible. And uf you click on it, you see the Download Zip link.
-
Want to draw outlines on mesh using Geometry Shader, can't get mesh to render anything when using triangles_adjacency
If so, what if I'm using tiny_gltf, I don't get vectors of vertices so I can't sort them different. As far as I know.
-
Good entry-level model format with animation
Or, alternatively https://github.com/syoyo/tinygltf
- Any opensource lib for loading gitf files? Something lightweight if possible
-
Is there a simple and reliable static object loader out there?
If you want a file format that is much more featureful and much more shippable, look at https://github.com/syoyo/tinygltf
cgltf
-
Confused in terms of where to start with framework/technology etc. Need help picking between learning ShaderToy v/s OpenGL v/s WebGL
If you want to go all the way, https://learnopengl.com/ is a favorite around here. You could build a glTF viewer from scratch starting from that tutorial and https://github.com/jkuhlmann/cgltf and eventually building towards https://google.github.io/filament/Filament.html or whatever wacky artsy direction you like.
-
Best courses for learning graphics programming?
Use https://github.com/jkuhlmann/cgltf to parse the files. https://github.com/ocornut/imgui for your UI. Maybe https://www.libsdl.org/ just to set up a window, handle mouse clicks and initialize the GL context in that window.
-
I was learning OpenGL and, I needed a suggestion : Which are the best 3D model formats (In terms of ease of loading)
Use glTF and https://github.com/jkuhlmann/cgltf Or, looks like you are using C#, so https://github.com/vpenades/SharpGLTF
-
What is the best FBX loader for modern OpenGL? (C++)
Do you really have to use fbx? An open format like gltf is better supported, and there are bazillions loaders(I use cgltf without any issues, which is also used by raylib, Unigine and bgfx). It's also a perfect fit for OpenGL.
-
PortableGL: An implementation of OpenGL 3.x-ish in clean C
I recently discovered this pattern in cgltf (https://github.com/jkuhlmann/cgltf), and I agree, it makes deployment so much nicer.
-
Good entry-level model format with animation
Use https://github.com/jkuhlmann/cgltf It’s the most popular loader.
- Any opensource lib for loading gitf files? Something lightweight if possible
-
Is it worth writing a software raytracer before going into hardware accelerated RTX?
It's easy to generate a BVH for a generated triangle set (like a fractal pyramid or a dense cube). But, quickly generating a high quality BVH for a loaded model requires some research. Use https://github.com/jkuhlmann/cgltf to load models.
-
How to become a tools/graphics/engine programmer
Write a simple glTF viewer in OpenGL. This is a throw-away warm-up. So, don't fret over the code. Don't do anything complicated. Shoot for a simple, forward renderer for a simple, animated character with trivial Phong lighting, diffuse map, normal map and a basic directional shadow map. Use OpenGL ES 3.0/GL 4.3 API with no crazy features. Don't worry about performance. Use https://github.com/jkuhlmann/cgltf to load the files. KTX is a great container for textures.
What are some alternatives?
3DWorld - 3D Procedural Game Engine Using OpenGL
assimp - The official Open-Asset-Importer-Library Repository. Loads 40+ 3D-file-formats into one unified and clean data structure.
yocto-gl - Yocto/GL: Tiny C++ Libraries for Data-Driven Physically-based Graphics
FBX2glTF - A command-line tool for the conversion of 3D model assets on the FBX file format to the glTF file format.
OpenGL-4-Shading-Language-Cookbook-Third-Edition - OpenGL 4 Shading Language Cookbook - Third Edition, published by Packt
SharpGLTF - glTF reader and writer for .NET Standard
WickedEngine - 3D engine with modern graphics
gdx-gltf - GLTF 2.0 3D format support and PBR shader implementation for LibGDX
meshoptimizer - Mesh optimization library that makes meshes smaller and faster to render
learn-wgpu - Guide for using gfx-rs's wgpu library.
single_file_libs - List of single-file C/C++ libraries.
LZ4 - Extremely Fast Compression algorithm