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

2020-01-14 Thread JILJITH JOHN
Hi Laurens, The answer is so great. I am getting the texture applied. But it is in the osgviewer.exe only. Problematically I tried to add the option. Its not working. osgDB::Options* opt = new osgDB::Options; opt->setOptionString("DIFFUSE=0"); osg::ref_ptr model1=

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

2020-01-14 Thread 'Tom Pollok' 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

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

2020-01-14 Thread Robert Osfield
On Tuesday, 14 January 2020 14:18:21 UTC, Voerman, L. wrote: > > To answer my own question, not that I've joint the google group my replies > by e-mail to osg-us...@lists.openscenegraph.org show up in the google > group as well > I wonder if googegroups is testing the from w.r.t accepting or

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

2020-01-14 Thread 'Tom Pollok' 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

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

2020-01-14 Thread Robert Osfield
I have checked in a workaround for the invalid indices to the 3.6 branch and master: https://github.com/openscenegraph/OpenSceneGraph/commit/2b9c501e18b6eded7375c0e272aff401ad9793a2 -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.

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

2020-01-14 Thread 'Tom Pollok' 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,

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

2020-01-14 Thread 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 have my own open source projects to manage I'll leave it to others to fix OpenMVS.

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

2020-01-14 Thread Robert Osfield
On Tue, 14 Jan 2020 at 15:26, 'Tom Pollok' via OpenSceneGraph Users < osg-users@googlegroups.com> wrote: > 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 >

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

2020-01-14 Thread 'Tom Pollok' 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

[osg-users] OpenSceneGraph-3.6.5 release candidate 1 tagged, please test

2020-01-14 Thread Robert Osfield
Hi All, I have checked in all fixes for the reproducible bugs/build issues that have been reported and tag the first release candidate in prep for the up coming 3.6.5 stable release: https://github.com/openscenegraph/OpenSceneGraph/tree/OpenSceneGraph-3.6.5-rc1 I have tested under

Re: [osg-users] OpenSceneGraph-3.6.5 release candidate 1 tagged, please test

2020-01-14 Thread Paul Leopard
Using my 3.6-4 procedure, no visual studio files are generated by the cmake system >mkdir release_build >cd release_build >cmake ../ -DCMAKE_INSTALL_PREFIX=../ -DCMAKE_BUILD_TYPE=Release No .sln, no .vcxproj is generated On Tue, Jan 14, 2020 at 10:54 AM Robert Osfield wrote: > Hi All, > > I

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

2020-01-14 Thread JILJITH JOHN
[image: Capture.PNG] [image: Capture.PNG] Hi, I am developing a tool for editing 3D models using openscenegraph. When I tried to load an .obj file, the texture is not applied. I am getting only black shade. The model is imported using the below code. osg::ref_ptr model1=

Re: [osg-users] DepthPartition

2020-01-14 Thread Robert Osfield
On Tuesday, 14 January 2020 04:47:32 UTC, Infinite Reality wrote: > > What is the principle of Depth Partition? > Depth buffer precision is dependent upon the near/far distance ratio, the lower this ratio the lower the precision and more z fighting you have - where pixels of polygons that are

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

2020-01-14 Thread L. Voerman
repost in google group; It seems like my reply to the mailing list does not show up in google groups. Hi Jiljith, The material has both an ambient and a diffuse texture (both refer to the same file) while this can be made to work with a shader, using the fixed function pipeline means you'll

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

2020-01-14 Thread 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 reference normal "0" and 1> no normals are provided 2> normal indices start at 1 (according to wikipedia

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

2020-01-14 Thread Robert Osfield
On Tue, 14 Jan 2020 at 13:09, L. Voerman wrote: > repost in google group; It seems like my reply to the mailing list does > not show up in google groups. > I did think I had the two working together at the end of last year but current mailing lists are appearing, will look into it. -- You

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

2020-01-14 Thread Robert Osfield
I have looked at the model with the 3.6 branch and get the crash and concur with Luarens - the model is broken, it has normal indices assigned to the faces but no normal array. The crash occurs because the OSG's obj plugin is assuming that if normal indices are provided they are valid normal