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:
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
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
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
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
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 =
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,
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
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
___
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
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
11 matches
Mail list logo