Re: [osg-users] Unexpected different lightening

2017-12-01 Thread Florian GOLESTIN
Hi Tang, You should be right has the normals are incorrect anyway. I've maybe messed up my copy-past debug and have to dig it more. Thanks for you answer :) Cheers, Florian -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72503#72503

[osg-users] Collada Importer with Blender

2017-12-01 Thread Florian GOLESTIN
Hello everyone, I've built OSG 3.5.7 with the Collada Plugin, however when I try to import a .dae file exported by Blender it fails with the following message: Code: $ bin/osgconvd ~/Téléchargements/BLEND/Player2.dae Player2.osgt I/O error : Is a directory Error: Extra content at the end of

[osg-users] Displaying the normals of your models

2017-12-01 Thread Florian GOLESTIN
Hi everyone, I have to debug a normal issue with my model, so I made a code to display them (transform normals in a bunch of gl_lines and create a resulted geometry). I share the gist in case it may help: https://gist.github.com/fulezi/95a9ac319fd1cbeca1b18a4cde3986dc Have a nice day,

Re: [osg-users] Displaying the normals of your models

2017-12-01 Thread Sebastian Messerschmidt
Hi, alternatively you can setup a geometry shader to run a second pass [1]: layout(triangles) in; layout(line_strip, max_vertices=6) out; // (projection * view * model) matrix uniform mat4 proj_view_model; // length of the normal (object space) uniform float normal_length; in vec3 normal;

Re: [osg-users] Displaying the normals of your models

2017-12-01 Thread Florian GOLESTIN
Thanks! I forgot about EmitVertex. It's a nice solution! Cheers, Florian -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72506#72506 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] createVertexArrayState gives unresolved external symbol

2017-12-01 Thread Andreas Ekstrand
Hi, When linking with 3.5.9 in Visual Studio 2013, I get a an unresolved external symbol for Drawable::createVertexArrayState: error LNK2001: unresolved external symbol "protected: virtual class osg::VertexArrayState * __cdecl osg::Geometry::createVertexArrayState(class osg::RenderInfo

Re: [osg-users] DisplaySettingds and ShaderHints

2017-12-01 Thread Philippe Renon
There was a typo in my provious message. OSG will default to OSG_GL2_AVAILABLE being defined. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72509#72509 ___ osg-users mailing list

Re: [osg-users] createVertexArrayState gives unresolved external symbol

2017-12-01 Thread Andreas Ekstrand
Hi Robert, It was in the linking of my application with OSG. But I found the reason just now, I needed to copy the include folder to the build folder for some reason, and didn't update it between 3.5.8 and 3.5.9. So I guess the method had a slight change in its signature. It's fine now, sorry

Re: [osg-users] createVertexArrayState gives unresolved external symbol

2017-12-01 Thread Robert Osfield
Hi Andreas, Is this linking of the OSG itself. or your application with the OSG? Robert. On 1 December 2017 at 13:15, Andreas Ekstrand wrote: > Hi, > > When linking with 3.5.9 in Visual Studio 2013, I get a an unresolved > external symbol for

Re: [osg-users] createVertexArrayState gives unresolved external symbol

2017-12-01 Thread Robert Osfield
Hi Andreas, On 1 December 2017 at 13:53, Andreas Ekstrand wrote: > It was in the linking of my application with OSG. But I found the reason > just now, I needed to copy the include folder to the build folder for some > reason, and didn't update it between 3.5.8