Skip to main content
Solved

Errors while converting obj to gltf

  • October 4, 2018
  • 3 replies
  • 70 views

conversion log:

OBJ Reader: Token Unsupported: 'Ni' - Ignored

OBJ Reader: continue reading with next good feature

OBJ Reader: Token Unsupported: 'illum' - Ignored

OBJ Reader: continue reading with next good feature

Failed to read texture: 'C:\\test\\collada_data\\Sedan_W3_Destroyed\\sedan\\sedan_metro_orng_pan_burn_w3_d.tga'

OBJ Reader: Token Unsupported: 'Ni' - Ignored

OBJ Reader: continue reading with next good feature

OBJ Reader: Token Unsupported: 'illum' - Ignored

OBJ Reader: continue reading with next good feature

Failed to read texture: 'C:\\test\\collada_data\\Sedan_W3_Destroyed\\sedan\\sedan_bottom_w3_burn_d.tga'

OBJ Reader: Token Unsupported: 'Ni' - Ignored

OBJ Reader: continue reading with next good feature

OBJ Reader: Token Unsupported: 'illum' - Ignored

OBJ Reader: continue reading with next good feature

Failed to read texture: 'C:\\test\\collada_data\\Sedan_W3_Destroyed\\sedan\\sedan_w3_decals_d.tga'

OBJ Reader: Token Unsupported: 'Ni' - Ignored

OBJ Reader: continue reading with next good feature

OBJ Reader: Token Unsupported: 'illum' - Ignored

OBJ Reader: continue reading with next good feature

Failed to read texture: 'C:\\test\\collada_data\\Sedan_W3_Destroyed\\sedan\\sedan_glass_destroyed_d.tga'

OBJ Reader: Token Unsupported: 'Ni' - Ignored

OBJ Reader: continue reading with next good feature

OBJ Reader: Token Unsupported: 'illum' - Ignored

OBJ Reader: continue reading with next good feature

Failed to read texture: 'C:\\test\\collada_data\\Sedan_W3_Destroyed\\sedan\\sedan_interior_w3_burn_d.tga'

i'm converting this obj file.What could be the reason for these errors.

Best answer by geosander

Hi! These aren't errors. It's exactly what the messages say: the FME OBJ Reader does not support certain material/shader properties, like illum(ination) for example. The reason for this, is that FME's appearance model only supports a limited set of properties as well.

Furthermore, FME cannot read Targa (*.tga) images, so if your model contains these textures, you should replace them for another image format that FME does support, like TIFF, JPG, PNG etc. Fortunately, for OBJ, this is quite easy to achieve, since you can save the textures to another format (e.g. with IrfanView) and change the extensions in the *.mtl file using a text editor.

By the way, I have mentioned this idea once, which would help reading all properties and textures that aren't supported by FME (so you can still convert them using a PythonCaller for instance).

Sander

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

geosander
Forum|alt.badge.img+7
  • Best Answer
  • October 4, 2018

Hi! These aren't errors. It's exactly what the messages say: the FME OBJ Reader does not support certain material/shader properties, like illum(ination) for example. The reason for this, is that FME's appearance model only supports a limited set of properties as well.

Furthermore, FME cannot read Targa (*.tga) images, so if your model contains these textures, you should replace them for another image format that FME does support, like TIFF, JPG, PNG etc. Fortunately, for OBJ, this is quite easy to achieve, since you can save the textures to another format (e.g. with IrfanView) and change the extensions in the *.mtl file using a text editor.

By the way, I have mentioned this idea once, which would help reading all properties and textures that aren't supported by FME (so you can still convert them using a PythonCaller for instance).

Sander


  • Author
  • October 5, 2018

Hi! These aren't errors. It's exactly what the messages say: the FME OBJ Reader does not support certain material/shader properties, like illum(ination) for example. The reason for this, is that FME's appearance model only supports a limited set of properties as well.

Furthermore, FME cannot read Targa (*.tga) images, so if your model contains these textures, you should replace them for another image format that FME does support, like TIFF, JPG, PNG etc. Fortunately, for OBJ, this is quite easy to achieve, since you can save the textures to another format (e.g. with IrfanView) and change the extensions in the *.mtl file using a text editor.

By the way, I have mentioned this idea once, which would help reading all properties and textures that aren't supported by FME (so you can still convert them using a PythonCaller for instance).

Sander

Does fme support these formats in future updates.

 

 


geosander
Forum|alt.badge.img+7
  • October 5, 2018
Does fme support these formats in future updates.

 

 

I don't know... I don't work for Safe...

 

You could post an idea yourself (you'd have my vote!) for a Targa Reader (and optionally Writer). If enough people need it as well, Safe will most likely add support for it in the future.