[MERGED] glTF format support?

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
paullee
Veteran
Posts: 5130
Joined: Wed May 04, 2016 3:58 pm

[MERGED] glTF format support?

Post by paullee »

Recently noted the glTF format...

Arch has Web Export, any plan to support glTF?

https://www.khronos.org/gltf/
Last edited by Kunda1 on Sun Nov 22, 2020 3:39 pm, edited 2 times in total.
Reason: Updated thread title
paullee
Veteran
Posts: 5130
Joined: Wed May 04, 2016 3:58 pm

Re: glTF format support?

Post by paullee »

Dropped into this article :-

Why we should all support glTF 2.0 as THE standard asset exchange format for game engines https://godotengine.org/article/we-shou ... me-engines

... glTF 2.0: What makes it great?


Don't understand the technicality, seem useful at all?
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: glTF format support?

Post by yorik »

gltf indeed seems very cool, it's under my radar for some time... However, all apps I have seen that import/use gltf also take more common mesh formats such as obj or stl. Since FreeCAD won't export any UV / texturing stuff anyway, there wouldn't be any real advantage to export gltf directly.

Better to wait until there is a nice gltf i/o library out there that we can use ;)
paullee
Veteran
Posts: 5130
Joined: Wed May 04, 2016 3:58 pm

Re: glTF format support?

Post by paullee »

yorik wrote: Fri Oct 26, 2018 2:13 pm gltf indeed seems very cool, it's under my radar for some time... However, all apps I have seen that import/use gltf also take more common mesh formats such as obj or stl. Since FreeCAD won't export any UV / texturing stuff anyway, there wouldn't be any real advantage to export gltf directly.

Better to wait until there is a nice gltf i/o library out there that we can use ;)
Indeed, I only note IfcOpenShell can convert to Collada and then to glTF.

For usecase, only thinking it may be easier to have a FC model, with ArchTexture Fruti works on probably, shown on a mobile / smartphone easier:)

Would wait to see!
FlatLines.png
FlatLines.png (101.64 KiB) Viewed 5733 times
User avatar
hardeeprai
Posts: 177
Joined: Sun May 23, 2010 2:41 pm
Location: Ludhiana, Punjab, India
Contact:

Re: glTF format support?

Post by hardeeprai »

yorik wrote: Fri Oct 26, 2018 2:13 pm Better to wait until there is a nice gltf i/o library out there that we can use ;)
Any update on this?
--
H.S.Rai
rzr
Posts: 1
Joined: Wed Jun 12, 2019 11:58 am

Re: glTF format support?

Post by rzr »

Meanwhile maybe at try to export to blender and then export to GLTF ?

https://github.com/KhronosGroup/glTF-Blender-Exporter

Feedback welcome
lilal
Posts: 2
Joined: Sat Nov 21, 2020 1:35 am

Re: glTF format support?

Post by lilal »

As long as FreeCAD has no native export, one of these methods:

1. Export as STEP -> Import into CAD Assistant from Opencascade -> Export glTF
2. Use the python library cqparts :

Code: Select all

>>> import cqparts
>>> cqparts.Assembly.importer('step')('myfile.stp').exporter('gltf')('myfile.gltf')
windkit - an open source hardware small windturbine build with FreeCAD
https://twitter.com/Windkit_cc
https://git.erni-kollektiv.org/erni/windkit
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: glTF format support?

Post by Kunda1 »

lilal wrote: Sat Nov 21, 2020 1:55 am As long as FreeCAD has no native export, one of these methods:
I created a wiki page to document this: gITF

Is there anyway to import gITF in to FC yet, using a workaround?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
jeno
Veteran
Posts: 1854
Joined: Sun Jun 29, 2014 10:41 am

Re: glTF format support?

Post by jeno »

Kunda1 wrote: Sat Nov 21, 2020 2:54 am
lilal wrote: Sat Nov 21, 2020 1:55 am As long as FreeCAD has no native export, one of these methods:
I created a wiki page to document this: gITF

Is there anyway to import gITF in to FC yet, using a workaround?
Use OCC 7.5 ;) There is support for reading and writing glTF 2.0 The name implies only writing but here it is mentioned occt also reads glTF

Regards
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: glTF format support?

Post by Kunda1 »

jeno wrote: Sat Nov 21, 2020 1:44 pm Use OCC 7.5 ;) There is support for reading and writing glTF 2.0 The name implies only writing but here it is mentioned occt also reads glTF
Nice. Maybe we can open a FR to add gITF native support in FreeCAD ?
Thoughts?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply