Skip to main content
Solved

Problem with texture images (.skp)


Hello everybody. I added texture images to building walls in sketchup, and then I tried to transform .skp file to CityGML using FME. Transformation went successful, HOWEVER, FME doesn't save pictures the way I set them to fit the wall, it just saves the original picture as if I didn't do all the work with fitting and rotating the picture. Can anybody help me? Thank you!

Best answer by daveatsafe

Hi @ljubisajurosevi,

The Sketchup file you supplied has u, v and q texture coordinates, while CityGML only supports u and v texture coordinates. The CityGML writer is supposed to automatically convert these coordinates, but doesn't appear to doing so. I have created a problem report for the writer, and will notify you as soon as it is fixed.

In the meantime, I am attaching a workspace that will convert the coordinates before writing to CityGML.

 

skp2citygml.fmw
View original
Did this help you find an answer to your question?

8 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35

Hi @ljubisajurosevi,

 

 

Does the output CityGML look correctly textured in the FME Data Inspector? When you inspect the input sketchup file do the textures look correct?

virtualcitymatt wrote:

Hi @ljubisajurosevi,

 

 

Does the output CityGML look correctly textured in the FME Data Inspector? When you inspect the input sketchup file do the textures look correct?

FME Inspector is where I've seen that the texture isn't ok. Sketchup input is correct, though.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
ljubisajurosevi wrote:

FME Inspector is where I've seen that the texture isn't ok. Sketchup input is correct, though.

So the data inspector shows the skp file looking good but the output file looks bad in the inspector?

 

Or does the skp file look bad in the inspector from the start?

  • February 1, 2019
virtualcitymatt wrote:

So the data inspector shows the skp file looking good but the output file looks bad in the inspector?

 

Or does the skp file look bad in the inspector from the start?

I'm working with @ljubisajurosevi at the project.

And yes, the data inspector shows the sketchup file correctly. When the file is exported to cityGML, the textures are not positioned correctly.

The .skp file and exported CityGML file in FME Data Inspector.

I checked the appearance folder, and it basically just copies the Images from the Materials (in sketchup), but it does not crop them/fit them onto the surface. (Because we have taken pictures of the object, and then corrected their position for each surface).


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
danmurtin wrote:

I'm working with @ljubisajurosevi at the project.

And yes, the data inspector shows the sketchup file correctly. When the file is exported to cityGML, the textures are not positioned correctly.

The .skp file and exported CityGML file in FME Data Inspector.

I checked the appearance folder, and it basically just copies the Images from the Materials (in sketchup), but it does not crop them/fit them onto the surface. (Because we have taken pictures of the object, and then corrected their position for each surface).

Ahhh I see, that doesn't look like much fun!

 

Something seems to be going wrong here. If you could share the skp file I could take a quick look to see if I see the same thing. I think this should be something which FME just handles, so it could be some kind of shortcoming

  • February 1, 2019
virtualcitymatt wrote:

Ahhh I see, that doesn't look like much fun!

 

Something seems to be going wrong here. If you could share the skp file I could take a quick look to see if I see the same thing. I think this should be something which FME just handles, so it could be some kind of shortcoming

It was fun until it stopped going smoothly :D

Yeah, I have it on my drive:

https://drive.google.com/file/d/1tQslEtdv-Kz1NiSG-tIF2Nrk0VtgdATe/view?usp=sharing

Thank you for looking into it!


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • Best Answer
  • February 2, 2019

Hi @ljubisajurosevi,

The Sketchup file you supplied has u, v and q texture coordinates, while CityGML only supports u and v texture coordinates. The CityGML writer is supposed to automatically convert these coordinates, but doesn't appear to doing so. I have created a problem report for the writer, and will notify you as soon as it is fixed.

In the meantime, I am attaching a workspace that will convert the coordinates before writing to CityGML.

 

skp2citygml.fmw

daveatsafe wrote:

Hi @ljubisajurosevi,

The Sketchup file you supplied has u, v and q texture coordinates, while CityGML only supports u and v texture coordinates. The CityGML writer is supposed to automatically convert these coordinates, but doesn't appear to doing so. I have created a problem report for the writer, and will notify you as soon as it is fixed.

In the meantime, I am attaching a workspace that will convert the coordinates before writing to CityGML.

 

skp2citygml.fmw

Dave, this workspace solved the problem. Thank you very much!!!


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