Skip to main content
Question

Obj to gltf conversion issues in latest fme

  • September 5, 2019
  • 6 replies
  • 33 views

Hi

Im unable to convert Obj to gltf in the latest update.I have downloaded some sample obj files from this site.

Im always getting this warning Geometries which cannot be converted to a triangulated mesh will not be written.

How to avoid this and achieve the conversion.

In the previous versions of fme im able to convert these obj files but now its not working. What is the reason.Some sample file https://free3d.com/3d-model/alien-ship-from-battleship-37326.html which i used.Most of the obj im converting getting this error.Previous version this issue was not there.

FME version : FME(R) 2019.1.0.0 (20190710 - Build 19608 - WIN64 ).

OS : windows 10.

6 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • September 5, 2019

Hi @san,

The OBJ file in question has a mesh with parts that have bad geometries, which is what is preventing it from writing to glTF.

I am attaching a workspace that uses a GeometryCoercer to convert the OBJ mesh to a composite surface, then uses a GeometryValidator to fix the surfaces. The glTF writer will convert the fixed surface back to a mesh when it writes.

 

Fix_OBJ.fmw


  • Author
  • September 6, 2019
daveatsafe wrote:

Hi @san,

The OBJ file in question has a mesh with parts that have bad geometries, which is what is preventing it from writing to glTF.

I am attaching a workspace that uses a GeometryCoercer to convert the OBJ mesh to a composite surface, then uses a GeometryValidator to fix the surfaces. The glTF writer will convert the fixed surface back to a mesh when it writes.

 

Fix_OBJ.fmw

Thank you so much for the reply dave. But I'm trying to create a automated environment to convert multiple obj files.So i tried creating one workspace and using it for all conversions.But sometimes its failing how to tackle this kind of issues.How can i create a workspace that can convert any obj file to glTF. I even tried using your workspace for conversions but it didnt worked.

But in previous fme version 2018.1.0.3 the conversion of the obj file was successful without any errors.It is failing in 2019 version.What could be the reason.

How can i create one single workspace that can convert any obj file to glTF without any Errors.

 


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • September 9, 2019
san wrote:

Thank you so much for the reply dave. But I'm trying to create a automated environment to convert multiple obj files.So i tried creating one workspace and using it for all conversions.But sometimes its failing how to tackle this kind of issues.How can i create a workspace that can convert any obj file to glTF. I even tried using your workspace for conversions but it didnt worked.

But in previous fme version 2018.1.0.3 the conversion of the obj file was successful without any errors.It is failing in 2019 version.What could be the reason.

How can i create one single workspace that can convert any obj file to glTF without any Errors.

 

Hi @san,

I get the same error from that file when I do the conversion in FME 2018.1 as well. Would you mind sending me the log file form the successful conversion, so that I can try to find the reason it succeeded?


  • Author
  • September 11, 2019
daveatsafe wrote:

Hi @san,

I get the same error from that file when I do the conversion in FME 2018.1 as well. Would you mind sending me the log file form the successful conversion, so that I can try to find the reason it succeeded?

battleship.zipobj2gltffmesupport.zip

Actually i meant conversion of the other file i didn't attached.Please find in the attachments.I also kept the log files of both versions of fme. Old version the conversion is successful and in the new version it failed.


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • September 11, 2019
san wrote:

battleship.zipobj2gltffmesupport.zip

Actually i meant conversion of the other file i didn't attached.Please find in the attachments.I also kept the log files of both versions of fme. Old version the conversion is successful and in the new version it failed.

Hi @san,

I see what you mean now. I have passed the problem file to our dev team. In the meantime, I am attaching an updated workspace that will fix this file as well.


  • December 27, 2019

hi, maybe you should try this free 3d models, vray materials, cad blocks


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings