Re: [osg-users] Textured ply file is black when loaded.

2020-01-24 Thread 'Tom Pollok' via OpenSceneGraph Users
While i agree that it makes no sense for ply to support any application specific formats, I still support the idea of allowing for importing a small subset of possibilities. If the plugin is called osgdb_ply.dll, how should one know that it only supports the semantic of equalizergraphics. Is

Re: [osg-users] Textured ply file is black when loaded.

2020-01-23 Thread julienvalentin51
PLY is a meta format. It means its interpretation is application specific...The simple fact to assign its data to osg attribute semantic is a nonsense, but it's the most probable application semantic Le lundi 20 janvier 2020 11:38:08 UTC+1, Tom Pollok a écrit : > > I converted the repaired obj

Re: [osg-users] Textured ply file is black when loaded.

2020-01-23 Thread Robert Osfield
On Tuesday, 21 January 2020 15:03:12 UTC, Tom Pollok wrote: > > I converted it to ascii using MeshLab > > https://owncloud.iosb.fraunhofer.de/owncloud/s/KpZFxn5SCm0JFmN > > pw: osg > Thanks. For future reference this might be useful. At this point in time I don't feel confident about

Re: [osg-users] Textured ply file is black when loaded.

2020-01-21 Thread 'Tom Pollok' via OpenSceneGraph Users
I converted it to ascii using MeshLab https://owncloud.iosb.fraunhofer.de/owncloud/s/KpZFxn5SCm0JFmN pw: osg Yes, using another format is probably a better idea. Do you know which format is typically used that supports binary encoding? Am Dienstag, 21. Januar 2020 15:41:34 UTC+1 schrieb

Re: [osg-users] Textured ply file is black when loaded.

2020-01-21 Thread Robert Osfield
On Tuesday, 21 January 2020 14:07:35 UTC, Tom Pollok wrote: > > I investigated a little. > > So it seems that the comment for texture files is actively used: > > comment TextureFile YourTexture_material_0_map_Kd.jpg > > So that needs to be parsed, and not ignored as just being a comment. > > The

Re: [osg-users] Textured ply file is black when loaded.

2020-01-21 Thread 'Tom Pollok' via OpenSceneGraph Users
Also it seems that its not the method void VertexData::readVertices( PlyFile* file, const int nVertices, const int fields ) see https://github.com/openscenegraph/OpenSceneGraph/blob/32566420c9d68a640996d741d13852e8d1229f3e/src/osgPlugins/ply/vertexData.cpp#L48 that needs to be adapted, but

Re: [osg-users] Textured ply file is black when loaded.

2020-01-21 Thread 'Tom Pollok' via OpenSceneGraph Users
Hi Robert, oh i didnt mean you to do a deep investigation, i just thought it was a bug or at least you might know if im doing sth wrong. I investigated a little. So it seems that the comment for texture files is actively used: comment TextureFile YourTexture_material_0_map_Kd.jpg So that

Re: [osg-users] Textured ply file is black when loaded.

2020-01-21 Thread Robert Osfield
Hi Tom, FYI, it's was a community submission back in 2009, I don't personally know the ply format or have done anything more than cosmetic work on this plugin. I basically in the same boat as yourself in terms of ability to debug the format, I just have to look at the code and see what it's

[osg-users] Textured ply file is black when loaded.

2020-01-20 Thread 'Tom Pollok' via OpenSceneGraph Users
I converted the repaired obj meshmodel from https://groups.google.com/forum/#!topic/osg-users/BBUYMYiWGl8 using MeshLab to a ply file. https://owncloud.iosb.fraunhofer.de/owncloud/s/fF6tLLgDCu2xwZk Pw: osg I can load the ply file using MeshLab and CloudCompare, but when loading the ply file