Re: [osg-users] what should I dirty when I change ColorArray on the fly?

2019-10-14 Thread Trajce Nikolov NICK
Hi Claudio, it depends how your Geometry is setup. You might need to call osg::Geometry->dirtyDisplayList() or if you use VertexBufferObjects you might need to call colorArrays->getBufferObject()->dirty() On Mon, Oct 14, 2019 at 11:16 PM Claudio Benghi wrote: > Hello All, > > I have

Re: [osg-users] what should I dirty when I change ColorArray on the fly?

2019-10-14 Thread Claudio Benghi
Hi again, I think I've solved my issue. I've worked out that BufferObject::dirty() does not yield a result because _glBufferObjects[i].valid() is false. This is probably because I was not using VBOs on those geometries. If I create the geometry with setUseVertexBufferObjects(true) the code

Re: [osg-users] what should I dirty when I change ColorArray on the fly?

2019-10-14 Thread Claudio Benghi
Hello All, I have implemented a colour change visitor along the lines of the class found at: http://www.vis-sim.com/osg/code/osgcode_color1.htm While debugging I note that the following code is executed, including the colorArrays->dirty(), but the colour in the render is not affected. Could

[osg-users] Problem reading unclamped float values and non-standard internal formats PBO

2019-10-14 Thread Omar Álvarez
Hi, I am trying to render to texture and read the results with an osg::Image. When I use standard internal formats like GL_RGB it works ok. The problem appears when I try to for example use GL_FLOAT with GL_RGB16, etc. When I get my image back the internal format is not what I want (the one that