Skip to main content
Solved

Is it possible to export .obj file with multiple tiles with desire tile size (eg. 4096 x 4096) instead one giant texture file?

  • September 30, 2020
  • 6 replies
  • 38 views

Is it possible to export .obj file with multiple tiles with desire tile size (eg. 4096 x 4096) instead one giant texture file?

Best answer by daveatsafe

chmielewskamag wrote:

Can you elaborate @daveatsafe​ how workflow should look like?

 

Basically I have aerial image that I want to drape it over DEM. I'm using AppearanceSetter transformer and it does the job but texture file is huge.

 

After adding RasterTiler transformer before AppearanceSetter (set Texture mapping mode: Top Down Georeferenced) translation failed.

Hi @chmielewskamag​ ,

The OBJ writer in FME 2019 and beta versions of FME 2020 did have a problem with multiple texture files. If you can, please update your FME to 2020.2 or 2021.0, which can be found at www.safe.com/download.

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

6 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • October 2, 2020

Hi @chmielewskamag​ ,

 

It is possible, by tiling the texture image in FME before applying it to the surfaces.

 

If you could provide more information on your present export process, I may be able to provide more detailed instructions.


daveatsafe wrote:

Hi @chmielewskamag​ ,

 

It is possible, by tiling the texture image in FME before applying it to the surfaces.

 

If you could provide more information on your present export process, I may be able to provide more detailed instructions.

Can you elaborate @daveatsafe​ how workflow should look like?

 

Basically I have aerial image that I want to drape it over DEM. I'm using AppearanceSetter transformer and it does the job but texture file is huge.

 

After adding RasterTiler transformer before AppearanceSetter (set Texture mapping mode: Top Down Georeferenced) translation failed.


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • March 30, 2021
chmielewskamag wrote:

Can you elaborate @daveatsafe​ how workflow should look like?

 

Basically I have aerial image that I want to drape it over DEM. I'm using AppearanceSetter transformer and it does the job but texture file is huge.

 

After adding RasterTiler transformer before AppearanceSetter (set Texture mapping mode: Top Down Georeferenced) translation failed.

Hi @chmielewskamag​ ,

After the RasterTiler, please use the RasterOnSurfaceOverlayer transformer from FME Hub to apply the tiles to the surface.

 

On second thought, the RasterTiler output may not be suitable, since some faces may span two tiles, which will result in an incomplete texture. We want an overlapping tile set instead. The best way to do this is the following:

  • Send the original image to a BoundingBoxReplacer
  • Send the bounding box to a Tiler to create tile boundary set
  • Use Bufferer to expand tile boundaries so they overlap. Buffer distance should be larger than face size.
  • Use Clipper to clip copy of original image by tile boundaries

The overlapping image tiles will increase the output size, but there should be no faces without a texture.


chmielewskamag wrote:

Can you elaborate @daveatsafe​ how workflow should look like?

 

Basically I have aerial image that I want to drape it over DEM. I'm using AppearanceSetter transformer and it does the job but texture file is huge.

 

After adding RasterTiler transformer before AppearanceSetter (set Texture mapping mode: Top Down Georeferenced) translation failed.

Hi @daveatsafe​  and thanks for getting back to me.

 

I actually manage to prepare raster tiles and apply it to the surface (drape it over DEM). All l looks good in Inspector (see below ) AppearanceSetter_Inspectorbut texture on exported OBJ file is not correctOBJ_in_CloudCompareThis is screenshot from exported .mtl file. As you can see it does contain information about all available texture map

list_of_created_textureMapHowever when I search for one of the texture name (for example noname01.png) in .obj file it can't find it. So it looks like only one texture map called noname.png is actually used for entire surface and other (like noname00.png, noname01.png etc.) are missing.searching_for_textureMap_called_noname01Those are the OBJ parameters that I've used.

OBJ_SettingsMagda.


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • Best Answer
  • April 1, 2021
chmielewskamag wrote:

Can you elaborate @daveatsafe​ how workflow should look like?

 

Basically I have aerial image that I want to drape it over DEM. I'm using AppearanceSetter transformer and it does the job but texture file is huge.

 

After adding RasterTiler transformer before AppearanceSetter (set Texture mapping mode: Top Down Georeferenced) translation failed.

Hi @chmielewskamag​ ,

The OBJ writer in FME 2019 and beta versions of FME 2020 did have a problem with multiple texture files. If you can, please update your FME to 2020.2 or 2021.0, which can be found at www.safe.com/download.


chmielewskamag wrote:

Can you elaborate @daveatsafe​ how workflow should look like?

 

Basically I have aerial image that I want to drape it over DEM. I'm using AppearanceSetter transformer and it does the job but texture file is huge.

 

After adding RasterTiler transformer before AppearanceSetter (set Texture mapping mode: Top Down Georeferenced) translation failed.

Updating FME to new version fixed problem. Thanks @daveatsafe​ 


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