Sounds like a fillrate issue. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466
-----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Riccardo Corsi Sent: Thursday, May 21, 2009 9:21 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Problem with drawInstanced Hi Robert, that's it, with 2.8.1 it works like a charm! I have one more concern about the performance boost though. When I do instance a thousand of the box I attached in the previous email, I have very good performance until they are at a certain distance from the camera. When they get closer, I start to drop frames. I added the stats handler to check on possible causes, and the culprit seems to be the draw time - which explodes when the objects get closer to the camera. Check the attached screenshots. Also GPU time increases, but that's probably due to a poor fill-rate of my graphics board - and it's not as killing as the draw time. What does it depend on? Thank you, Ricky On 21/05/2009 13.04, Robert Osfield wrote: > HI Riccardo, > > One of the bug fixes in 2.8.1 was to the draw instanced support, it > could be that your tripping over this bug. Could you try 2.8.1? > > Robert. > > On Thu, May 21, 2009 at 11:49 AM, Riccardo Corsi > <riccardo.co...@vrmmp.it> wrote: >> Hi All, >> >> I'm experiencing a problem with the drawInstanced extension when a >> geometry contains TRIANGLE_STRIPS as PrimitiveSet type: the >> geometries rendered with the instancing mechanism are corrupted. >> >> I attach a modified version of the "drawinstanced" example which is >> able to load the geometry from a file (--loadFile option). >> In my case it works fine with the pyramid.osg model - which contains >> simple triangles, but not with the box.osg model, which contains several strips. >> >> I also wondered if the problem was related to the multiple >> PrimitiveSets, but that's not the case - several primitiveSet made of >> simple triangles work fine. >> >> Am I missing something? >> Is there any known limit with the instancing and the stripped geometries? >> >> I'm on osg 2.8.0, WinXP, nVidia 8600GT. >> >> Thank you, >> Ricky >> >> _______________________________________________ >> 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