Steve,
Just be aware that GL_LUMINANCE is long since deprecated and only available
in compatibility context.
GL_RED is the only 1-channel option available in modern OpenGL.
Glenn Waldron / osgEarth
On Tue, Nov 5, 2019 at 12:49 PM Steve Hardy wrote:
> Hi,
>
> Thanks for the responses. I tried
Hi,
Thanks for the responses. I tried Robert's initial suggestions, but they get
Code:
Warning: detected OpenGL error 'invalid value' at after RenderBin::draw(..)
on my system.
Glenn's suggestion basically worked, although the image was literally shades of
red. So I looked at the
Sandy,
Try this instead. You probably want normalized [0..1] data on the GPU, not
[0..255] integers.
img->setImage(w, h, 1, GL_R8, GL_RED, GL_UNSIGNED_BYTE, data,
osg::Image::USE_MALLOC_FREE);
Glenn Waldron / osgEarth
On Tue, Nov 5, 2019 at 2:14 AM Steve Hardy wrote:
> Hi,
>
> I am trying
Hi Steve,
Using a monochrome texture should be as simple as using GL_ALPHA or GL_RED
as the pixel format. The OpenSceneGraph/src/osgText/DefaultFont.cpp
provides an example of a setting up a monochrome image.
Robert.
___
osg-users mailing list
Hi,
I am trying to render a monochrome camera image to a 2d texture, but without
success unless I first convert it to BGR.
After reading
http://forum.openscenegraph.org/viewtopic.php?t=16236
I got closer, but still no cigar as the result is a boring uniform black. Here
is some code:
Code:
5 matches
Mail list logo