Clipping textures to exact coordinates possible? #45
-
Hello, First of all thank you for providing this amazing toolset! I want to clip the textures of the model to the exact wall coordinates so that I have a perfectly aligned front view of a wall, roof etc. like they are visualized when loading the model in any viewer (1st image is an example). The textures that are bundled with the 3D model are distorded images, and running the clip-textures function just returns the the same images again (2nd image example), with no clipping done at all. Is it possible to do that with this toolset? If I understand the schema of CityGML correctly, there should be texture coordinates associated with every image, so that they can be at least displayed correctly. From my understanding, the clip-textures function should exactly do what I want, but it seems I did something wrong? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @denisreiter, as far as I understand, you want to rectify your oblique images. Unfortunately, the If no clipping is applied to a texture image (like in your example), this means all pixels are needed for texturing the surface. |
Beta Was this translation helpful? Give feedback.
Hi @denisreiter, as far as I understand, you want to rectify your oblique images. Unfortunately, the
clip-textures
command of citygml-tools will not help you with this task. This command is rather meant for scenarios where a large texture image is assigned to a surface but only a small portion of the texture space is actually used for texturing this surface. Based on the texture coordinates in the CityGML file, theclip-textures
command identifies that part of the texture image that is really needed for texturing the surface and cuts off the rest. Thus, the texture images are reduced in size but no other image operation is applied.If no clipping is applied to a texture image (like in you…