[osg-users] AutoTransform can't leave unchanged the form of graphic item

2015-08-23 Thread Vitaliy Polyakov
Hi, I trying to draw the plus symbol on the view using osg::AutoTransform This is my code http://pastebin.com/Jzpgz376 The problem is that, when I move the symbol it's form changed. Is it osg::AutoTransform problem? Thank you! Cheers, Vitaliy -- Read this topic online here:

Re: [osg-users] fixed size texture

2015-08-04 Thread Vitaliy Polyakov
Also I tryed lspci -v -s 00:02.0 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3 Processor Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller]) Subsystem: Hewlett-Packard Company Device 1906 Flags: bus master, fast devsel, latency 0, IRQ 43

Re: [osg-users] fixed size texture

2015-08-04 Thread Vitaliy Polyakov
This is full compilable code that shows the problem http://pastebin.com/nZLBBjb0 texture https://drive.google.com/file/d/0BwW5jdIPyBuRNm5vYmxSdDAtam8/view?usp=sharing -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64620#64620

Re: [osg-users] fixed size texture

2015-08-03 Thread Vitaliy Polyakov
I tryed NVIDIA Quadro 600 - no results too -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64602#64602 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] fixed size texture

2015-08-03 Thread Vitaliy Polyakov
robertosfield wrote: My best guess is that the hardware is rounding down the tex coords when sampling the texture so that it's not always picking out the right hand set of pixels due to numerical precision issues.  Try setting the Border of the

Re: [osg-users] fixed size texture

2015-08-03 Thread Vitaliy Polyakov
robertosfield wrote: Try changing the Texure type to Texture2D and the tex coordinates to 0 to 1.0. New code, but old behaviour.. Code: osg::ref_ptrosg::Node createFixedSizeTexture() { osg::ref_ptrosg::Image image = osgDB::readImageFile(8x8.png); float width = image-s(); float height =

Re: [osg-users] fixed size texture

2015-08-03 Thread Vitaliy Polyakov
robertosfield wrote: My guess there is a numerical precision issue on the texture coordinates.  Try setting the Texture wrap mode to CLAMP_TO_EDGE, via:    texture-setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE);    texture-setWrap(osg::Texture::WRAP_T,

Re: [osg-users] fixed size texture

2015-08-03 Thread Vitaliy Polyakov
robertosfield wrote: Hi Vitaliy, Is the border part of the 8x8.png image? Does the current behaviour have the icon displayed at the correct size? Yes, border is part of image. When the application started the image has correct view and size. But if I changed position of the icon by

Re: [osg-users] fixed size texture

2015-08-03 Thread Vitaliy Polyakov
Just after program started [Image: http://i57.tinypic.com/2wevw5s.png ] After camera moved [Image: http://i62.tinypic.com/2j1vthw.png ] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64569#64569 ___

Re: [osg-users] fixed size texture

2015-08-03 Thread Vitaliy Polyakov
robertosfield wrote: It may be worth trying different hardware. OK, I will try after work. Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64583#64583 ___ osg-users mailing list

[osg-users] fixed size texture

2015-07-29 Thread Vitaliy Polyakov
Hi, I want to draw an icon using texture. My texture image is an image of 8x8 pixel size. It looks like quadrate without center (center is transparent). Border width of this quadrate is one pixel. When I moving camera with the mouse - border size of icon changed. It can also disappear. How can