[osg-users] Uniform set and callback

2016-04-12 Thread Dario Minieri
Hi, Simple question: set a uniform value via set() method is thread-safe or we have to set the value via Uniform callback? Apparently, set() works fine, but thread interactions are devious :D Thank you! Cheers, Dario -- Read this topic online here: http://forum.openscenegraph

Re: [osg-users] Uniform set and callback

2016-04-12 Thread Robert Osfield
Hi Dario, On 12 April 2016 at 09:58, Dario Minieri wrote: > Simple question: set a uniform value via set() method is thread-safe or we > have to set the value via Uniform callback? Apparently, set() works fine, > but thread interactions are devious :D > osg::Uniform::set() is not thread safe.

Re: [osg-users] Uniform set and callback

2016-04-12 Thread Dario Minieri
Hi, ok, interesting, thanks. I'm using SingleThreaded model right now. I take this opportunity to speak about the problem using another thread model, like DrawThreadPerContext. In this case I have an error like: TextureRectangle::apply(..) failed, texture rectangle is not support by your OpenG

[osg-users] Dumb Screen Resolution Question

2016-04-12 Thread Paul McIntosh
Hi All, I am getting back into OSG after a long absence - I am now on a Windows 10 Surface Pro 4/Visual Studio 2015 and fighting changes in these as well as trying to work out why I can't get screen resolution to work properly. It always comes up about twice the size it should (centre screen is

Re: [osg-users] Dumb Screen Resolution Question

2016-04-12 Thread Björn Blissing
Hi Paul, This is the DPI-aware scaling you are seeing. Since Windows 8.1, the operating system will scale your application to this DPI-scaling setting, unless you explicitly declare the application as “DPI-aware”. Declaring your application as “DPI-aware” tells the operating system that you wil

[osg-users] osgText alignment

2016-04-12 Thread Sebastian Schmidt
Hi, What is general approach to set the text alignment of osg::Widget::Label to left ? I try to set it with setAlignment(), but the text is always aligned to the center. (OSG 3.0.1) ... Thank you! Cheers, Sebastian -- Read this topic online here: http://forum.openscenegraph.

[osg-users] osg::Texture or osg::Image from custom data pointer

2016-04-12 Thread Bruno Oliveira
Hello, is it possible to create an osg::Image or even osg::texture from custom user data pointer? For instance, I have a void* data_ptr pointing to a flat data vector of pixels and want to create a texture to use with OSG. Can this be done? ___ osg-users

[osg-users] image is not being freed

2016-04-12 Thread Bruno Oliveira
Hello, I am creating an image from custom data pointer as follows, however, this does not result in freeing my memory after I delete the node and texture. How could this be? image->setImage(src->tileSize(), src->tileSize(),1, GL_RGBA8, GL_RG

Re: [osg-users] image is not being freed

2016-04-12 Thread Sebastian Messerschmidt
Hi Bruno, Hello, I am creating an image from custom data pointer as follows, however, this does not result in freeing my memory after I delete the node and texture. How could this be? image->setImage(src->tileSize(), src->tileSize(),1, GL_RGBA8,