Question

Convert Openlight To OBJ / Change the name of textures


Badge
HI,

 

I want to convert an Openflight in OBJ files 3D but i can't get the textures and rename them. I want to relate the name of the cadastral parcel with the name of the texture of the model 3D.

 

 

This the message i had :

 

 

OBJ Writer: Duplicate Material Name found: 'noname'  Changed to: 'noname00'

 

OBJ Writer: Duplicate Material Name found: 'noname'  Changed to: 'noname01'

 

OBJ Writer: Duplicate Material Name found: 'noname'  Changed to: 'noname02'

 

OBJ Writer: Duplicate Material Name found: 'noname'  Changed to: 'noname03'

 

 

My output textures has got these names noname00, noname01 ... when i convert openflight to obj

 

 

How can i get the material of my openflight in FME?

 

 

Cheers

 


3 replies

Badge +3
have you tried using the AppearanceExtractor ?   Not sure if the flt reader supports appearance:

 

http://docs.safe.com/fme/html/FME_Transformers/Default.htm#geometry/appearance.htm%3FTocPath%3DFME%20Transformers%7C3D%20Support%7C_____3

 

 

But if it does you should be able to get/set the appearance with some of the sevice tools.

 

http://docs.safe.com/fme/html/FME_Transformers/Default.htm#Transformers/appearanceextractor.htm%3FTocPath%3DFME%20Transformers%7CSurfaces%7C_____1

 

 

http://docs.safe.com/fme/html/FME_Transformers/Default.htm#Transformers/appearancesetter.htm%3FTocPath%3DFME%20Transformers%7CSurfaces%7C_____4

 

 

Hope this helps.   Let us know how it goes.

 

 

Badge +3
Better links:

 

 

http://docs.safe.com/fme/html/FME_Transformers/Default.htm#geometry/appearance.htm

 

 

http://docs.safe.com/fme/html/FME_Transformers/Default.htm#Transformers/appearanceextractor.htm

 

 

http://docs.safe.com/fme/html/FME_Transformers/Default.htm#Transformers/appearancesetter.htm

 

Badge
Hi,

 

 

I tried the appearance extractor and it don't get the material name of my openflight reader, so i cannot relate my texture, for example i would like to rename my texture with the fme_basename of my geometry.

 

 

I try appearance setter but dont understand how it works. Does the port geometry needs the reader openflight and the port appearance needs the textures coming from "appearance extractor"?

 

 

Thanks for the help.

 

 

ps : with an obj reader,i have the fme_appearance_style name, in the openflight reader i have the attribute but blank, can i fill the attribute material with an attribute renamer for example?

 

Reply