BrunoLevy / geogram

a programming library with geometric algorithms
Other
1.87k stars 126 forks source link

Support for GLTF File Format #181

Open BrunoLevy opened 2 months ago

BrunoLevy commented 2 months ago

Discussed in https://github.com/BrunoLevy/geogram/discussions/158

Originally posted by **rooomFelix** July 1, 2024 ### Feature Request: Support for GLTF File Format #### Summary I would like to request the addition of support for the GLTF (GL Transmission Format) file format in the Geogram. This enhancement would greatly benefit users by expanding the versatility and usability of the library in modern 3D graphics workflows. #### Detailed Description The GLTF file format, developed by the Khronos Group, has rapidly become the standard for 3D model transmission and interchange. Its efficient, compact representation and compatibility with modern web technologies make it an ideal choice for a wide range of applications, including virtual reality (VR), augmented reality (AR), and real-time rendering. Key benefits of supporting GLTF in the Geogram include: 1. **Enhanced Compatibility**: Many 3D content creation tools and engines (such as Blender, Unity, and Unreal Engine) natively support GLTF. By integrating GLTF support, the library would seamlessly fit into existing pipelines, reducing the need for additional conversion steps. 2. **Performance Optimization**: GLTF is designed for efficient transmission and loading, enabling faster model delivery and improved performance in web and mobile applications. The library can leverage this efficiency to optimize 3D models without sacrificing quality. 3. **Wide Adoption**: As an open standard, GLTF is widely adopted in the industry. Supporting it would attract a broader user base to the Geogram, fostering a more extensive and active community. 4. **Rich Feature Set**: GLTF supports PBR (Physically Based Rendering) materials, animations, skins, morph targets, and more. Incorporating these features into the optimization process would enhance the visual fidelity and functionality of the resulting models. Best regards, Felix
dyollb commented 2 months ago

https://github.com/syoyo/tinygltf nicely maps the GLTF format to simple data-structures for reading/writing.