[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
Posts: 2982
Joined: Wed May 04, 2016 3:58 pm

[MERGED] glTF format support?

Postby paullee » Sat Oct 20, 2018 2:42 am

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
Posts: 2982
Joined: Wed May 04, 2016 3:58 pm

Re: glTF format support?

Postby paullee » Thu Oct 25, 2018 10:47 pm

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
Site Admin
Posts: 12145
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels, Belgium
Contact:

Re: glTF format support?

Postby yorik » 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 ;)
paullee
Posts: 2982
Joined: Wed May 04, 2016 3:58 pm

Re: glTF format support?

Postby paullee » Fri Oct 26, 2018 7:05 pm

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 3027 times
User avatar
hardeeprai
Posts: 176
Joined: Sun May 23, 2010 2:41 pm
Location: Ludhiana, Punjab, India
Contact:

Re: glTF format support?

Postby hardeeprai » Sat Mar 23, 2019 4:30 am

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?

Postby rzr » Wed Jun 12, 2019 1:29 pm

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

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

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

Re: glTF format support?

Postby lilal » Sat Nov 21, 2020 1:55 am

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')
User avatar
Kunda1
Posts: 9209
Joined: Thu Jan 05, 2017 9:03 pm

Re: glTF format support?

Postby Kunda1 » 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?
Alone you go faster. Together we go farther
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
jeno
Posts: 868
Joined: Sun Jun 29, 2014 10:41 am

Re: glTF format support?

Postby jeno » Sat Nov 21, 2020 1:44 pm

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
Posts: 9209
Joined: Thu Jan 05, 2017 9:03 pm

Re: glTF format support?

Postby Kunda1 » Sat Nov 21, 2020 2:00 pm

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
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features