Bl
Bl
Bl
Bl
Bl
You are here:   Home »  Products »  PolyTrans|CAD+DCC  
Bl

Home > Supported File Formats > glTF to OpenGL C Code


How to convert glTF to OpenGL C Code (.cpp)?


PolyTrans|CAD+DCC performs mathematically precise CAD, DCC/Animation, GIS and BIM 3D file conversions into all key downstream 3D packages and file formats. Okino software is used and trusted throughout the world by many tens of thousands of 3D professionals in mission & production critical environments, backed by respectable personal support directly from our core development team.

     

glTF

As described more extensively on Okino's dedicated glTF converter page, glTF is a newer 3D file format designed for the "last mile" of efficient, real-time delivery of 3D assets for Web-based browsers, AR/VR applications and gaming applications, amongst others. It is generally not to be considered as a long term and high fidelity 3D data storage format (such as FBX, COLLADA or VRML2) but rather an efficient transmission and viewing 3D file format. It has begun to gain good traction in recent years.

glTF stands for Graphics Language Transmission Format. glTF is intended as a vendor-neutral distribution format for 3D content, bridging the gap between 3D content creation tools and applications displaying 3D graphics. It is fully graphics API and operating system-independent.

Okino has one of the most extensively developed and refined implementations of glTF for both import and export.

     

OpenGL C Code

OpenGL is a cross-platform application programming interface (API) for rendering 2D and 3D vector graphics. The API is typically used to interact with a graphics processing unit (GPU), to achieve hardware-accelerated rendering.

Okino's OpenGL export converter writes out the scene database as a C code program in the Open GL scene description language. The resulting program can then be compiled and used to draw the 3D database directly using OpenGL. The database is output as a series of polygons with vertex positions, normals, colors and texture coordinates. In addition, the surface definitions (materials) associated with each polygon is used to set up the OpenGL shading parameters. Please note that each object is output as a separate C code function in the resulting file.