Hi Carsten,

I incorporated the patch!
For me it works like a charm ..

Thanks,
Christoph


On 04.07.2012 01:20, Carsten Neumann wrote:
>    Hello Christoph,
>
> On 07/03/2012 04:00 AM, "Christoph Fünfzig" wrote:
>> thanks a lot, I have it working now.
>> Actually, read back has been the problem.
>> In "OSGRenderBuffer.cpp", it uses "pImg->getPixelFormat()" as the format,
>> (which should be GL_DEPTH_COMPONENT for the depth buffer)
> [SNIP]
>> Can you please consider adding a format GL_DEPTH_COMPONENT to "OSGImage.cpp" 
>> ?
>> "OSGImage.cpp", line 110:
>>       { GL_DEPTH_COMPONENT,             1 },
>> With this addition, it works with RenderBuffer and TextureBuffer as well.
>
> I think the attached patch should do it.
>
> Gerrit: could you eyeball it, I'll probably forever be confused by OpenGL's 
> format, internal format and data type specifications for textures/buffers ;)
>
>     Cheers,
>         Carsten 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to