Re: [osg-users] Issue with texturing label
Hi Robert, The issue was with our image loader and not with the GUI itself. Once we managed to track that down the fix was pretty straight forward. Thanks. On Mon, Oct 26, 2015 at 1:02 PM, Robert Osfieldwrote: > Hi Sam, > > On 26 October 2015 at 17:52, sam wrote: > >> What is the best way to send a small example through the mailing list? >> Pastebin? Inline? I'm not very familiar with how the mailing lists formats. >> > > One can normally just attach a .cpp file to post. > > Robert. > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Issue with texturing label
Hi Sam, It's hard to know what is wrong without more concrete information on exactly how you are setting things up, so I can only provide general thoughts. First up, could well be blending as you suspect. Have a look at making sure the texture quad doesn't have blending enabled somewhere, or blending being enabled further up in the scene graph which is overriding the local state. Another issue might be texture clamping of the texture. Clamp to border, or setting the border colour of the texture. This is just clutching at straws though, really don't know enough about the specifics of how you are doing things to know what it might be. Robert. On 25 October 2015 at 19:56, samwrote: > Hi All, > > I'm struggling with finding out why I have some discrepancy between my > texture and what my osg is drawing. I have setup a label and put a texture > against it as follows: > > [image: Inline image 1] > > But unfortunately I get that thin white bar at the bottom of the label. It > seems to change color based on what is below it. I have tried to turn off > blending and change the blend function but no luck thus far. Any help would > be greatly appreciated. Here is the original texture image: > > [image: Displaying b_gui_cmn_button5_center_up.png] > > Thanks, Sam > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Issue with texturing label
Hi Sam, On 26 October 2015 at 17:52, samwrote: > What is the best way to send a small example through the mailing list? > Pastebin? Inline? I'm not very familiar with how the mailing lists formats. > One can normally just attach a .cpp file to post. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Issue with texturing label
Hi Robert, What is the best way to send a small example through the mailing list? Pastebin? Inline? I'm not very familiar with how the mailing lists formats. Thanks, Sam On Mon, Oct 26, 2015 at 4:25 AM, Robert Osfieldwrote: > Hi Sam, > > > It's hard to know what is wrong without more concrete information on > exactly how you are setting things up, so I can only provide general > thoughts. > > First up, could well be blending as you suspect. Have a look at making > sure the texture quad doesn't have blending enabled somewhere, or blending > being enabled further up in the scene graph which is overriding the local > state. Another issue might be texture clamping of the texture. Clamp to > border, or setting the border colour of the texture. This is just > clutching at straws though, really don't know enough about the specifics of > how you are doing things to know what it might be. > > Robert. > > On 25 October 2015 at 19:56, sam wrote: > >> Hi All, >> >> I'm struggling with finding out why I have some discrepancy between my >> texture and what my osg is drawing. I have setup a label and put a texture >> against it as follows: >> >> [image: Inline image 1] >> >> But unfortunately I get that thin white bar at the bottom of the label. >> It seems to change color based on what is below it. I have tried to turn >> off blending and change the blend function but no luck thus far. Any help >> would be greatly appreciated. Here is the original texture image: >> >> [image: Displaying b_gui_cmn_button5_center_up.png] >> >> Thanks, Sam >> >> ___ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Issue with texturing label
Hi All, I'm struggling with finding out why I have some discrepancy between my texture and what my osg is drawing. I have setup a label and put a texture against it as follows: [image: Inline image 1] But unfortunately I get that thin white bar at the bottom of the label. It seems to change color based on what is below it. I have tried to turn off blending and change the blend function but no luck thus far. Any help would be greatly appreciated. Here is the original texture image: [image: Displaying b_gui_cmn_button5_center_up.png] Thanks, Sam ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org