Hi,

I tried the patch and now it's even worse : it's as if it didn't take my
SHLParameter into account : now, the opacity doesn't reduce, unlike before.
Before, the opacity was OK, but the shader was not applied everywhere in the
scene : when I moved the camera, objects appeared and disappeared, as if it
took the parameter into account somewhere and not elsewhere.
Any other idea?

Jo

Selon Dirk Reiners <[EMAIL PROTECTED]>:

>
>       Hi Jonathan, hi Andreas,
>
> On Thu, 2005-03-24 at 16:24 +0100, Andreas Zieringer wrote:
> > Hi Jonathan,
> >
> > I also tried it on a other windows machine with a fx 5900 and it looks
> > fine but on a linux machine with a fx 1100 I can reproduce the render
> > bug. Looks like a linux related driver problem?
>
> Andreas sent me the file, so I could reproduce the problem. It's a
> problem that doesn't show up on Windows, but it's not a driver problem.
>
> The SHLParameterChunk depends on the Program being active, otherwise
> parameter setting fails (and throws an OpenGL error). In the current
> setup that depends on the initialization order of the StateChunks and is
> therefore platform-dependent and unreliable. I fixed the problem with
> the following patch:
>
> diff -u -3 -p -r1.3 OSGSHLParameterChunk.inl
> --- OSGSHLParameterChunk.inl    2 Sep 2004 13:43:54 -0000       1.3
> +++ OSGSHLParameterChunk.inl    24 Mar 2005 17:38:15 -0000
> @@ -53,7 +53,7 @@ void SHLParameterChunk::updateParameters
>          return;
>      }
>
> -    shl->updateParameters(win, getParameters(), false, true);
> +    shl->updateParameters(win, getParameters(), true, true);
>  }
>
>  OSG_END_NAMESPACE
>
> That might have some performance implications, but I'm not worried about
> that very much right now.
>
> Jonathan, can you try that fix? If it works for you I'll submit it.
>
>       Dirk
>
> --
> -- Dirk Reiners               OpenSG Forum             [EMAIL PROTECTED]
> -- The OpenSG Open Source Scenegraph:            http://www.opensg.org
> -- Announcements:   http://lists.sf.net/lists/listinfo/opensg-announce
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to