On Thu, Apr 11, 2019 at 5:46 PM Rowley, Marlin R <marlin.r.row...@lmco.com> wrote:
> Sebastian, > > I have written the shaders for GL 3.3 so that’s done. When RenderDoc > runs, I’m assuming it’s only checking that window context. I am NOT > assuming that it can comb through my code and determine that I’ve used a > fixed-function GL call somewhere and therefore spits out the message. > Well, it's not just the GLSL version, you need to create a context that either can or can not handle non-core FFP functions. So, outside of your shaders, even other pieces of OSG code could be requiring non-core features. You'd need to build OSG and osgEarth with the proper build options to completely remove their utilization of any non-core abilities, and then make sure you (or OSG) create a core-only Context. > In general, I’d like to have a working GPU debugger. Right now, we are > struggling to find out values of local variables in the shaders that aren’t > uniform. We would also love to be able to pinpoint bottlenecks in the code > from the GPU side to optimize performance. > Debugging shader local variables in-situ is a pretty weak point of GLSL. My recommendation is to try to create a toy program that replicates the critical part of your code, as debugging there will be a lot easier, and then you can apply the fix to your larger environment. Working within OSG and osgEarth can be very daunting when things aren't working the way you expect. > > > ---------------------------------------- > > Marlin Rowley > > Software Engineer, Staff > > [image: cid:image002.jpg@01D39374.DEC5A2E0] > > *Missiles and Fire Control* > > 972-603-1931 (office) > > 214-926-0622 (mobile) > > marlin.r.row...@lmco.com > > > -- 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 Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android @alphapixel <https://twitter.com/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