Re: [osg-users] obscure state bug

2007-04-16 Thread Wojciech Lewandowski
, April 13, 2007 7:18 PM Subject: Re: [osg-users] obscure state bug If users want AlphaFunc on by default for the opaque bin then they can simply attached an osg::AlphaFunc to the topmost StateSet in the scene graph and get back the old functionality. Are we certain that this will work? I.e

Re: [osg-users] obscure state bug

2007-04-13 Thread Marc Bernatchez
If users want AlphaFunc on by default for the opaque bin then they can simply attached an osg::AlphaFunc to the topmost StateSet in the scene graph and get back the old functionality. Are we certain that this will work? I.e., that it will remain turned on in the course of the traversal etc? I

Re: [osg-users] obscure state bug

2007-04-13 Thread Robert Osfield
On 4/13/07, Marc Bernatchez [EMAIL PROTECTED] wrote: If users want AlphaFunc on by default for the opaque bin then they can simply attached an osg::AlphaFunc to the topmost StateSet in the scene graph and get back the old functionality. Are we certain that this will work? I There are no

Re: [osg-users] obscure state bug

2007-04-12 Thread Tugkan Calapoglu
Hi Robert, Unless we have alpha blending we do not need to sort objects from back to front hence we can save some performance by not putting such objects to the transparent bin. Lets say we have a few hundred trees which are rendered with alpha test but not alpha blending. Putting them to the

Re: [osg-users] obscure state bug

2007-04-12 Thread Robert Osfield
Hi Tugkan, If users want AlphaFunc on by default for the opaque bin then they can simply attached an osg::AlphaFunc to the topmost StateSet in the scene graph and get back the old functionality. Robert. On 4/12/07, Tugkan Calapoglu [EMAIL PROTECTED] wrote: Hi Robert, Unless we have alpha

Re: [osg-users] obscure state bug

2007-04-12 Thread Wojciech Lewandowski
: Thursday, April 12, 2007 10:40 AM Subject: Re: [osg-users] obscure state bug Hi Marc, This isn't a bug, rather it looked like it was working before because the problem was masked out, quite literally. Originally the OSG set turned on glAlphaFunc (osg::AlphaFunc) for both transparent and opaque

Re: [osg-users] obscure state bug

2007-04-12 Thread Wojciech Lewandowski
Bad timing, I just saw the answers for my questions - Original Message - From: Wojciech Lewandowski [EMAIL PROTECTED] To: osg users [EMAIL PROTECTED] Sent: Thursday, April 12, 2007 12:09 PM Subject: Re: [osg-users] obscure state bug I will join this discussion because it looks

Re: [osg-users] obscure state bug

2007-04-12 Thread Tugkan Calapoglu
Robert Osfield wrote: Hi Tugkan, If users want AlphaFunc on by default for the opaque bin then they can simply attached an osg::AlphaFunc to the topmost StateSet in the scene graph and get back the old functionality. Robert. I misunderstood the change then. I thought that OSG prevents

Re: [osg-users] obscure state bug

2007-04-12 Thread Marc Bernatchez
Hi Robert, Here is what I tried in the code: osg::AlphaFunc *TurnOnAlphaFuncbyDefault = new osg::AlphaFunc(); osg::StateSet *NewStateSet = SceneGraphRoot-getOrCreateStateSet(); NewStateSet-setAttribute(TurnOnAlphaFuncbyDefault, osg::StateAttribute::ON); I still see the artifacts. Does the

Re: [osg-users] obscure state bug

2007-04-12 Thread Robert Osfield
Hi Marc, You'll need to set the AlphaFunc's parameters. i.e. osg::AlphaFunc* alphafunc = new osg::AlphaFunc; alphafunc-setFunction(osg::AlphaFunc::GREATER,0.0f); Robert. On 4/12/07, Marc Bernatchez [EMAIL PROTECTED] wrote: Hi Robert, Here is what I tried in the code:

Re: [osg-users] obscure state bug

2007-04-11 Thread Marc Bernatchez
Any progress on this bug? I don't know if it is the bug I'm seeing but it roughly started when I went to OSG 1.2 and appears to only show up with OpenFlight models. I noticed some strange transparency bugs as I went 1.2. Some objects that were totally transparent got half visible while other

Re: [osg-users] obscure state bug

2007-03-14 Thread Paul Speed
takes you back to version 1.46. The way you're doing things now looks smarter and faster, so I wish I knew why it didn't work. - Terry Message: 11 Date: Fri, 23 Feb 2007 09:47:00 +0100 From: Tugkan Calapoglu [EMAIL PROTECTED] Subject: Re: [osg-users] obscure state bug To: osg users

Re: [osg-users] obscure state bug

2007-03-14 Thread Farshid Lashkari
it didn't work. - Terry Message: 11 Date: Fri, 23 Feb 2007 09:47:00 +0100 From: Tugkan Calapoglu [EMAIL PROTECTED] Subject: Re: [osg-users] obscure state bug To: osg users osg-users@openscenegraph.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii; format

Re: [osg-users] obscure state bug

2007-03-14 Thread Robert Osfield
Hi Frashid, On 3/14/07, Farshid Lashkari [EMAIL PROTECTED] wrote: Hi Paul, I'm pretty sure it's a render bin problem. I did some debugging and discovered that each geometry is being placed into a different RenderBin, although their bin number and names are the same during the cull traversal.

Re: [osg-users] obscure state bug

2007-03-14 Thread Farshid Lashkari
Hi Robert, On 3/14/07, Robert Osfield [EMAIL PROTECTED] wrote: Normally they will go into the same RenderBin, but if you nest a subgraph within a RenderBin then all internal RenderBin references within this RenderBin will be nested as well using new RenderBin's. I hope that makes sense,

Re: [osg-users] obscure state bug

2007-03-13 Thread Farshid Lashkari
: Tugkan Calapoglu [EMAIL PROTECTED] Subject: Re: [osg-users] obscure state bug To: osg users osg-users@openscenegraph.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii; format=flowed Terry Welsh wrote: I have a really weird bug that shows up in one of my

Re: [osg-users] obscure state bug

2007-03-13 Thread Robert Osfield
Hi Terry, On 3/13/07, Terry Welsh [EMAIL PROTECTED] wrote: Any progress on this bug or should I look for a workaround? I can't for the life of me figure out the real cause of problem, and I think it's going to get in my way pretty badly soon I spent a couple of hours recreating and

Re: [osg-users] obscure state bug

2007-02-23 Thread Robert Osfield
Hi Terry, On 2/22/07, Terry Welsh [EMAIL PROTECTED] wrote: I have a really weird bug that shows up in one of my apps. Sometimes objects get the wrong StateSet applied to them. I have not been able to produce a simple enough test case to send in yet, but I wanted to know if anyone else has

Re: [osg-users] obscure state bug

2007-02-23 Thread Tugkan Calapoglu
Terry Welsh wrote: I have a really weird bug that shows up in one of my apps. Sometimes objects get the wrong StateSet applied to them. I have not been able to produce a simple enough test case to send in yet, but I wanted to know if anyone else has seen this problem in the last month. The

Re: [osg-users] obscure state bug

2007-02-23 Thread Terry Welsh
+0100 From: Tugkan Calapoglu [EMAIL PROTECTED] Subject: Re: [osg-users] obscure state bug To: osg users osg-users@openscenegraph.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii; format=flowed Terry Welsh wrote: I have a really weird bug that shows up in one of my apps

[osg-users] obscure state bug

2007-02-22 Thread Terry Welsh
I have a really weird bug that shows up in one of my apps. Sometimes objects get the wrong StateSet applied to them. I have not been able to produce a simple enough test case to send in yet, but I wanted to know if anyone else has seen this problem in the last month. The problem was introduced