Re: [osg-users] "Cross-compiling" from XP64 for Windows 7 64: Crashing when rendering with shaders

2013-01-11 Thread Johannes Scholz
Hi Sebastian,

great, that's it. I love bugs that are already fixed.

Thank you!

Cheers,
Johannes


---
Johannes Scholz
Software Engineer
P3 Voith Aerospace GmbH, Bremen, Germany

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51910#51910





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] "Cross-compiling" from XP64 for Windows 7 64: Crashing when rendering with shaders

2013-01-11 Thread Sebastian Messerschmidt

Hi Johannes,

IIRC there was a bug in the 3.1.2 int osgProgram.cpp in Line 772 which 
can be fixed like this:


if (_extensions->isShaderAtomicCounterSupported())
->
if (_extensions->isShaderAtomicCounterSupported() && 
!atomicCounterMap.empty())



cheers
Sebastian


Hi Chris,

good idea, but actually but does tell me much about the actual problem:


Code:
OpenGL extension 'GL_ARB_vertex_program' is supported.
OpenGL extension 'GL_EXT_secondary_color' is supported.
OpenGL extension 'GL_EXT_fog_coord' is supported.
OpenGL extension 'GL_ARB_multitexture' is supported.
OpenGL extension 'GL_NV_occlusion_query' is supported.
OpenGL extension 'GL_ARB_occlusion_query' is supported.
OpenGL extension 'GL_EXT_timer_query' is supported.
OpenGL extension 'GL_ARB_timer_query' is supported.
GraphicsCostEstimator::calibrate(..)
GraphicsWindowWin32::setSyncToVBlank on
Viewer::startThreading() - starting threading
Viewer::startThreading() - contexts.size()=1
Making scene thread safe
Doing add
Doing add
Doing add
   gc->getGraphicsThread()->startThread() 02CAEAD0
Set up threading
View::init()
cull()
cull() got SceneView 02C2AA50
ShaderComposer::~ShaderComposer() 02C27CA0
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
end cull() 02C2A8E0
Doing run 02CAEAD0 isRunning()=1
draw() 02C2A8E0
draw() got SceneView 02C2AA50
Renderer::compile()
OpenGL extension 'GL_ARB_shader_objects' is supported.
OpenGL extension 'GL_ARB_vertex_shader' is supported.
OpenGL extension 'GL_ARB_fragment_shader' is supported.
OpenGL extension 'GL_ARB_shading_language_100' is supported.
OpenGL extension 'GL_EXT_geometry_shader4' is supported.
OpenGL extension 'GL_EXT_gpu_shader4' is supported.
OpenGL extension 'GL_ARB_tessellation_shader' is supported.
OpenGL extension 'GL_ARB_uniform_buffer_object' is supported.
OpenGL extension 'GL_ARB_get_program_binary' is supported.
OpenGL extension 'GL_ARB_gpu_shader_fp64' is supported.
OpenGL extension 'GL_ARB_shader_atomic_counters' is supported.
glVersion=4.3, isGlslSupported=YES, glslLanguageVersion=4.3

Compiling VERTEX source:
 1: void main()
 2: {
 3: gl_Position = ftransform();
 4: }


Compiling FRAGMENT source:
 1: void main()
 2: {
 3: gl_FragColor = vec4(0.5, 1, 1, 1);
 4: }

Linking osg::Program "" id=3 contextID=0

E:\OSG-3.1.2\bin>



After compiling OSG 3.1.0, 3.1.1, 3.1.2, 3.1.3 over night I found that 3.1.2 
seems to be the only version crashing with shaders. I will upgrade my 
development system to OSG 3.1.3 now to see if the crash bug is gone.

Thank you!

Cheers,
Johannes[/code]


---
Johannes Scholz
Software Engineer
P3 Voith Aerospace GmbH, Bremen, Germany

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51903#51903





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] "Cross-compiling" from XP64 for Windows 7 64: Crashing when rendering with shaders

2013-01-10 Thread Johannes Scholz
Hi Chris,

good idea, but actually but does tell me much about the actual problem:


Code:
OpenGL extension 'GL_ARB_vertex_program' is supported.
OpenGL extension 'GL_EXT_secondary_color' is supported.
OpenGL extension 'GL_EXT_fog_coord' is supported.
OpenGL extension 'GL_ARB_multitexture' is supported.
OpenGL extension 'GL_NV_occlusion_query' is supported.
OpenGL extension 'GL_ARB_occlusion_query' is supported.
OpenGL extension 'GL_EXT_timer_query' is supported.
OpenGL extension 'GL_ARB_timer_query' is supported.
GraphicsCostEstimator::calibrate(..)
GraphicsWindowWin32::setSyncToVBlank on
Viewer::startThreading() - starting threading
Viewer::startThreading() - contexts.size()=1
Making scene thread safe
Doing add
Doing add
Doing add
  gc->getGraphicsThread()->startThread() 02CAEAD0
Set up threading
View::init()
cull()
cull() got SceneView 02C2AA50
ShaderComposer::~ShaderComposer() 02C27CA0
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
end cull() 02C2A8E0
Doing run 02CAEAD0 isRunning()=1
draw() 02C2A8E0
draw() got SceneView 02C2AA50
Renderer::compile()
OpenGL extension 'GL_ARB_shader_objects' is supported.
OpenGL extension 'GL_ARB_vertex_shader' is supported.
OpenGL extension 'GL_ARB_fragment_shader' is supported.
OpenGL extension 'GL_ARB_shading_language_100' is supported.
OpenGL extension 'GL_EXT_geometry_shader4' is supported.
OpenGL extension 'GL_EXT_gpu_shader4' is supported.
OpenGL extension 'GL_ARB_tessellation_shader' is supported.
OpenGL extension 'GL_ARB_uniform_buffer_object' is supported.
OpenGL extension 'GL_ARB_get_program_binary' is supported.
OpenGL extension 'GL_ARB_gpu_shader_fp64' is supported.
OpenGL extension 'GL_ARB_shader_atomic_counters' is supported.
glVersion=4.3, isGlslSupported=YES, glslLanguageVersion=4.3

Compiling VERTEX source:
1: void main()
2: {
3: gl_Position = ftransform();
4: }


Compiling FRAGMENT source:
1: void main()
2: {
3: gl_FragColor = vec4(0.5, 1, 1, 1);
4: }

Linking osg::Program "" id=3 contextID=0

E:\OSG-3.1.2\bin>



After compiling OSG 3.1.0, 3.1.1, 3.1.2, 3.1.3 over night I found that 3.1.2 
seems to be the only version crashing with shaders. I will upgrade my 
development system to OSG 3.1.3 now to see if the crash bug is gone.

Thank you!

Cheers,
Johannes[/code]


---
Johannes Scholz
Software Engineer
P3 Voith Aerospace GmbH, Bremen, Germany

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51903#51903





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] "Cross-compiling" from XP64 for Windows 7 64: Crashing when rendering with shaders

2013-01-10 Thread Chris Hanson
If you turn up the OSG notification level to DEBUG_FP, do you get any
useful information before/at the crash?


On Thu, Jan 10, 2013 at 10:55 AM, Johannes Scholz
wrote:

>
> Chris Hanson wrote:
> > You're just using the AlphaPixel 3rdparty library binaries then?
>
>
> Yes, Alphapixel only.
>
> 
> ---
> Johannes Scholz
> Software Engineer
> P3 Voith Aerospace GmbH, Bremen, Germany
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=51891#51891
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio •
LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] "Cross-compiling" from XP64 for Windows 7 64: Crashing when rendering with shaders

2013-01-10 Thread Johannes Scholz

Chris Hanson wrote:
> You're just using the AlphaPixel 3rdparty library binaries then?


Yes, Alphapixel only.


---
Johannes Scholz
Software Engineer
P3 Voith Aerospace GmbH, Bremen, Germany

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51891#51891





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] "Cross-compiling" from XP64 for Windows 7 64: Crashing when rendering with shaders

2013-01-10 Thread Chris Hanson
You're just using the AlphaPixel 3rdparty library binaries then?




On Thu, Jan 10, 2013 at 8:36 AM, Johannes Scholz wrote:

> Hi,
>
> Jesus. I'm now compiling any OSG release from 3.0.1 to trunk to see where
> the error occurs first.
>
> Hopefully tomorrow I'll find something.
>
> Meanwhile I'd be glad for recommendations...
>
> Thank you!
>
> Cheers,
> Johannes
>
> 
> ---
> Johannes Scholz
> Software Engineer
> P3 Voith Aerospace GmbH, Bremen, Germany
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=51886#51886
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio •
LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] "Cross-compiling" from XP64 for Windows 7 64: Crashing when rendering with shaders

2013-01-10 Thread Johannes Scholz
Hi,

Jesus. I'm now compiling any OSG release from 3.0.1 to trunk to see where the 
error occurs first.

Hopefully tomorrow I'll find something.

Meanwhile I'd be glad for recommendations...

Thank you!

Cheers,
Johannes


---
Johannes Scholz
Software Engineer
P3 Voith Aerospace GmbH, Bremen, Germany

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51886#51886





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] "Cross-compiling" from XP64 for Windows 7 64: Crashing when rendering with shaders

2013-01-10 Thread Johannes Scholz
Hi,

I just tried the following:

Build a naked OSG-3.1.2 using VS2008 Express with Alphapixel binaries on Xp-64
Ran it on Win7-64: osgviewer test_geometry.osg -> Crash

Build a naked OSG-3.0.1 using VS2008 Express with Alphapixel binaries on Xp-64
Ran it on Win7-64: osgviewer test_geometry.osg -> Renders as expected.

So what might be the difference?

Thank you!

Cheers,
Johannes


---
Johannes Scholz
Software Engineer
P3 Voith Aerospace GmbH, Bremen, Germany

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51885#51885





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org