Re: [osg-users] floating point pbuffers - not supported by current PixelBufferWin32 implementation

2016-07-22 Thread Robert Osfield
Hi Christian, I haven't looked into the topic but my inclination would be to add an option into osg::GraphicsContext::Traits for requesting the data type (signed, unsigned, float, double) of the colour and depth buffers as well as the existing number of bits than have the creation of the graphics

Re: [osg-users] floating point pbuffers - not supported by current PixelBufferWin32 implementation

2016-07-22 Thread Christian Buchner
I am finding that with the following modification to PixelBufferWin32.cpp I can get my floating point PBuffer easily (no nvidia specific extensions required) fAttribList.push_back(WGL_PIXEL_TYPE_ARB); if (_traits->red == 32 && _traits->green == 32 && _traits->blue == 32) #define

[osg-users] floating point pbuffers - not supported by current PixelBufferWin32 implementation

2016-07-22 Thread Christian Buchner
Hi all, I spent the last 3 hours trying to coerce OSG to give me a floating point pbuffer. Just setting the required bits for color components to 32 bits in the graphicscontext traits isn't working. Turns out, on nVidia cards you also have to give the WGL_FLOAT_COMPONENTS_NV flag as "true" to