problem reading texture

Feel free to ask any question here
Post Reply
geolux
Posts: 43
Joined: Thu Sep 03, 2015 5:06 pm

problem reading texture

Post by geolux »

Hi Guy
Hi Guys
sometime, some .ply files with jpg texture not are read correctly
In Other words in CC the model is without texture. Why?
OMG20Centz
Posts: 18
Joined: Wed Sep 25, 2013 1:33 pm

Re: problem reading texture

Post by OMG20Centz »

Hi Geolux,

You might want to give us a link towards a file that can't be correctly loaded.
In my experience, i've had troubles to load some files on Windows if there was something weird in the path to tifle (éèà, a space, ...).
If you haven't, you can try to put your file at C:\ and rename it test.ply
geolux
Posts: 43
Joined: Thu Sep 03, 2015 5:06 pm

Re: problem reading texture

Post by geolux »

Thank you OMG20Centz,
nothing of it. Nothing special characters.
Try this link
https://we.tl/WrqDQGAErG
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: problem reading texture

Post by daniel »

Yes the support for textures for PLY files is not something that was specified from the start. Therefore textures are described in the 'comments' section of the file! And the file is always external (the 'comments' section only contains its name).

In the zip file you sent, there's no image file next to the PLY files... If you look at the beginning of the 'mesh' file, you'll see that it needs the 'Altare_ZephyrMesh.png' file.
Daniel, CloudCompare admin
geolux
Posts: 43
Joined: Thu Sep 03, 2015 5:06 pm

Re: problem reading texture

Post by geolux »

Sorry Daniel, I forgot to attach the file png. But in my PC it is and is in the same directory of the ply.
If you want give me your addres, I can send you an email (52MB)
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: problem reading texture

Post by daniel »

Ok I understand now. It's because the texture coordinates are not saved as a 2D array (like "texture_uv" - as usual) but as 2 separate arrays (texture_u and texture_v). I really wonder what the people developing these software are thinking about ...

I'll see if it's possible to handle such organization, but anyway it will take time!
Daniel, CloudCompare admin
Post Reply