Re: [osg-users] Rendering a Depthmap

2020-01-25 Thread 'Tom Pollok' via OpenSceneGraph Users
Is there a way to do this directly with osg or does it need a custom implementation? If no, is anybody able to share code for how to render a depthmap with intrinsic camera parameters as a 3d pointcloud using shaders? Am Mittwoch, 12. Juni 2019 21:18:38 UTC+2 schrieb Trajce Nikolov NICK: > > Hi

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 the

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 Robert

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 vo

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 nee

[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 u

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-15 Thread 'Tom Pollok' via OpenSceneGraph Users
do i need to take extra care when loading a textured model? >> >> For loading, im using only: >> >> osgDB::Options* opt = new >> osgDB::Options;opt->setOptionString("noRotation");osg::ref_ptr >> node = osgDB::readNodeFile(pathToObjFile, opt);

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-15 Thread 'Tom Pollok' via OpenSceneGraph Users
:readNodeFile(pathToObjFile, opt); Best, Tom Am Dienstag, 14. Januar 2020 17:25:27 UTC+1 schrieb Robert Osfield: > > On Tue, 14 Jan 2020 at 15:26, 'Tom Pollok' via OpenSceneGraph Users < > osg-...@googlegroups.com > wrote: > >> Thank you for the workaround. >>

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-14 Thread &#x27;Tom Pollok&#x27; via OpenSceneGraph Users
Thank you for the workaround. So as far as i understand you only add the texture coordinate and normal, if there exists one with a index greater than 0 and less then the number of normals or texture coordinates. So that means that openscenegraph now will be able to display the textured mesh, ev

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-14 Thread &#x27;Tom Pollok&#x27; via OpenSceneGraph Users
Am Dienstag, 14. Januar 2020 15:23:15 UTC+1 schrieb Robert Osfield: > > > On Tuesday, 14 January 2020 13:54:37 UTC, Tom Pollok wrote: >> >> I used OpenMVS to create it: >> >> https://github.com/cdcseacave/openMVS >> > > The model isn't a valid .obj file, I am not familiar with OpenMVS and as I >

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-14 Thread &#x27;Tom Pollok&#x27; via OpenSceneGraph Users
Hello Laurens, thank you for your investigation! Best, Tom Am Dienstag, 14. Januar 2020 14:10:27 UTC+1 schrieb L. Voerman: > > repost in google group; It seems like my reply to the mailing list does > not show up in google groups. > > Hi Tom, > I think your obj file is invalid, as the faces all

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-14 Thread &#x27;Tom Pollok&#x27; via OpenSceneGraph Users
I used OpenMVS to create it: https://github.com/cdcseacave/openMVS I can also view the model using MeshLab or other tools. Is it possible to fix the invalid references in openscenegraph? Am Dienstag, 14. Januar 2020 14:36:29 UTC+1 schrieb Robert Osfield: > > I have looked at the model with the

Re: [osg-users] Imported .obj file not showing textures.

2020-01-14 Thread &#x27;Tom Pollok&#x27; via OpenSceneGraph Users
Which version of openscenegraph are you using? Would you mind trying my obj model with mtl and jpg texture file. https://owncloud.iosb.fraunhofer.de/owncloud/s/dc8dkbXrQz3gTuh

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-13 Thread &#x27;Tom Pollok&#x27; via OpenSceneGraph Users
Hello Robert, I added a minimal reproducer and a stracktrace (release). Unfortunately i only have release builds on this machine, but I could provide debug stack trace from another system later... Best, Tom Am Montag, 13. Januar 2020 12:12:48 UTC+1 schrieb Tom Pollok: > > I added a zip file

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-13 Thread &#x27;Tom Pollok&#x27; via OpenSceneGraph Users
I added a zip file with the mesh. It happens when loading that obj file. https://owncloud.iosb.fraunhofer.de/owncloud/s/dc8dkbXrQz3gTuh Pw: osg I have to check for the stack trace again. osgDB::Options* opt = new osgDB::Options;opt->setOptionString("noRotation");osg::ref_ptr node = osgDB::rea

[osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-10 Thread &#x27;Tom Pollok&#x27; via OpenSceneGraph Users
When loading a textured mesh from an obj file with mtl + texture file, openscenegraph crashes. I use openscenegraph 3.4.1. Does anybody know if that issue has been fixed in newer versions? -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" grou