Re: [osg-users] Leak in StateSet

2007-03-07 Thread Robert Osfield

Hi Anders,

I suspect this is a similar problem that has already been reported by
a couple of other users.  The problems look to stem from changes to
RenderBin that I made last month in support of osgShadow.  I haven't
yet tracked down the exact cause or proper fix for it yet.

It nice to have another test model though.

Robert.

On 3/7/07, Anders Backman <[EMAIL PROTECTED]> wrote:

Hi.

I have discovered a rather serious problem regarding a potential "leak?" in
StateAttribute.
Im using a rather new svn version of OpenSceneGraph (checked out 17
february).

The files illustrating the problem is available at:

http://www.hpc2n.umu.se/staff/andersb/osg/state_problem/


j.jpg
a.jpg
state_problem.osg

The problems I can see is:

 1. The texture r.jpg is applied to parents of textured geometry with
OVERRIDE on.
Still nodes below this parent is using v.jpg which is what is visible. So no
r.jpg to be seen in the scene.

   A (texture unit 0 = r.jpg with
osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON)
|
|
G (texture unit 0 = v.jpg With only osg::StateAttribute::ON)


2. Look what happens when the thin box at the bottom is culled, then
suddenly the middle box is rendered non-textured.


/Anders

--



 Anders Backman   Email:[EMAIL PROTECTED]
 HPC2N/VRlab  Phone:+46 (0)90-786 9936
 Umea university  Cellular: +46 (0)70-392 64 67
 S-901 87 UMEA SWEDEN Fax:  +46 90-786 6126
   http://www.cs.umu.se/~andersb
___
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


___
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


[osg-users] Leak in StateSet

2007-03-07 Thread Anders Backman

Hi.

I have discovered a rather serious problem regarding a potential "leak?" in
StateAttribute.
Im using a rather new svn version of OpenSceneGraph (checked out 17
february).

The files illustrating the problem is available at:

http://www.hpc2n.umu.se/staff/andersb/osg/state_problem/


j.jpg
a.jpg
state_problem.osg

The problems I can see is:

1. The texture r.jpg is applied to parents of textured geometry with
OVERRIDE on.
Still nodes below this parent is using v.jpg which is what is visible. So no
r.jpg to be seen in the scene.

  A (texture unit 0 = r.jpg with
osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON)
   |
   |
   G (texture unit 0 = v.jpg With only osg::StateAttribute::ON)


2. Look what happens when the thin box at the bottom is culled, then
suddenly the middle box is rendered non-textured.


/Anders

--



Anders Backman   Email:[EMAIL PROTECTED]
HPC2N/VRlab  Phone:+46 (0)90-786 9936
Umea university  Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN Fax:  +46 90-786 6126
  http://www.cs.umu.se/~andersb
___
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/