[osg-users] Alpha blending not working on IOS

2011-03-28 Thread Thomas Hogarth
Hi All This may be a slightly dumb question but I can't seem to get alpha blending to work on IOS. I've just finished porting my windows code (which works fine) over to IOS but now my Hud Objects alpha doesn't seem to work. The code I use to enable alpha blending on my hud objects is osg::Bl

Re: [osg-users] Alpha blending not working on IOS

2011-03-29 Thread Stephan Huber
Hi Thomas, Am 28.03.11 22:40, schrieb Thomas Hogarth: > Has anyone used alpha blending on IOS successfully? I could have sworn I > have in the past but I've been at this for about two hours now with no luck. I had alpha blending working on IOS, but I used vertex-colors, not materials, and everyth

Re: [osg-users] Alpha blending not working on IOS

2011-03-29 Thread Sergey Polischuk
Hi, Thomas Try setting BlendFunc to stateset also. I think you'll want something like osg::BlendFunc(ONE_MINUS_SRC_ALPHA, SRC_ALPHA); Cheers,Sergey. 29.03.2011, 00:40, "Thomas Hogarth" :Hi All This may be a slightly dumb question but I can't seem to get alpha blending to work on IOS. I've just fini

Re: [osg-users] Alpha blending not working on IOS

2011-03-29 Thread Thomas Hogarth
Hi Stephan Problem solved, I created a .osg file in 3DS Max with a transparent material and that worked. The only difference I could see between that files stateset and my hud objects stateset was that Lighting was enabled. So I re enabled lighting on my hud object and now the alpha blending is wo

Re: [osg-users] Alpha blending not working on IOS

2011-03-29 Thread Thomas Hogarth
Hi Sergey Thanks for the tip, I did try that but still no luck, turned out to be that lighting was disabled. I just sent another message with a bit more info. Thanks again Tom PS I'll quickly test if it was a combination of the two. On 29 March 2011 10:32, Sergey Polischuk wrote: > Hi, Thoma

Re: [osg-users] Alpha blending not working on IOS

2011-03-29 Thread Thomas Hogarth
Just to confirm It was only the Lighting issue, although Sergey's tip is still a good one Tom On 29 March 2011 10:35, Thomas Hogarth wrote: > Hi Sergey > > Thanks for the tip, I did try that but still no luck, turned out to be that > lighting was disabled. I just sent another message with a bi