DiscussionsIssue archiveDraw Harness and Samples

Archived discussion

GLTF and GLB import in open cascade

Draw Harness and SamplesTue, 06/02/2020 - 17:293 replies

Browse this forum
QuestionAuthor

Hello,

I would like to evaluate the import for some gltf and glb files in open cascade. I saw that in TKRWMesh module there is an interface for reading gltf (not sure if glb is suported). Is there any example in open cascade sources of its usage? Can you provide some code snippet for that?  Looking at the ImportExport mfc sample it looks like a good hook to test the gltf import there (the example already support BREP, STEP and IGES import). Thanks in advance.

Author

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

If you need just evaluating glTF reader - you may check CAD Assistant or Draw Harness:

pload XDE VISUALIZATION
ReadGltf D PathToGltf.glb
vinit
XDisplay -dispMode 1 D
vfit

And yes, glb files are supported.

02Commenter-2

Hi Kirill , i'm searching for the gltf writer class , did you guys drop it ? i can't find it in the package 

03Commenter-1

glTF writer is relatively a new feature - it was available in OCCT development branch for a while, and now available in OCCT 7.5.0 release.