[osg-users] TBN Matrix for Normal Mapping - OSG and GLSL

2017-11-07 Thread Rômulo Cerqueira
Hi, I have used normal mapping using GLSL and OSG for my application (an imaging sonar simulation) and I got problems by calculating the TBN matrix on shaders. The normal vectors contain lower resolution on border in comparison with the center of image. Follows my vertex code: Code:

Re: [osg-users] Warning: Error in reading to jpg images

2017-11-07 Thread Rômulo Cerqueira
Hi Christian and Robert, I solved in an alternative way: converting my images to PNG. I did not change anything in the source code and it worked! ... Thank you! Cheers, Rômulo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72323#72323

[osg-users] Get RGB Values from Textrue

2017-11-07 Thread Maxim Stere
Hi, I have a osg::Texture2D that I'm using as a render to texture target. I can see that it is working on the screen, but I need to have access to the RGB values of the texture itself so I can also copy them to another API. How can I access the RGB values? After rendering a frame, if I