Re: [osg-users] simplifier tristripifier

2012-03-28 Thread Robert Osfield
Hi Cedric,

The TriStripVisitor is really something that was valuable 5+ years
ago, these days modern graphics cards prefer larger primitive batches
using index triangle meshes, with the index ordering optimized to make
the best use of the vertex cache on the GPUs.  The problem with
tri-stripping is that it creates a large number of PrimtiveSet's which
creates more OpenGL calls than a smaller number of larger
PrimitiveSet.

Use of the MeshOptimizer would probably be a the best default for
Simplifer now.  Right now you can use the
Simplifier::setDoTriStrip(bool) method to switch off the use of
tristripping, but I now inclined to think we should have an enum that
tells the Simplifer what post processing it should do on the data.

Thoughts?
Robert.

On 27 March 2012 00:57, Cedric Pinson cedric.pin...@plopbyte.com wrote:
 Hi Robert and all users,

 I was wondering if it still makes sense to use the stripifier like in the
 osgUtils::simplifier, in the end it generates a lot of draw calls and make
 the geometry slow. To fix this I disabled the stripifier in my osgconv bin
 when using simplifier.
 I was curious if it makes sense for some other usage ? in the osgjs I use it
 but at the end I generate dummy vertexes to make one big strip without that
 it just drains performance.

 I mean if everybody feels the same we could start to submit patch to avoid
 it or as a standalone operation.
 Any other thoughts about it ?


 Cedric Pinson
 Provide OpenGL, WebGL services
 +33 659 598 614 -
 http://cedricpinson.com - http://osgjs.org - http://showwebgl.com


 ___
 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


Re: [osg-users] simplifier tristripifier

2012-03-27 Thread Sergey Polischuk
Hi Cedric Cant say bout intel\ati as i didnt tested them, but on nvidia drivers with display lists enabled it works great (in worst case about same speed as single draw call with indexed triangle list) Without display lists draw speed is awful though. 27.03.2012, 03:57, "Cedric Pinson" cedric.pin...@plopbyte.com:Hi Robert and all users,I was wondering if it still makes sense to use the stripifier like in the osgUtils::simplifier, in the end it generates a lot of draw calls and make the geometry slow. To fix this I disabled the stripifier in my osgconv bin when using simplifier.I was curious if it makes sense for some other usage ? in the osgjs I use it but at the end I generate dummy vertexes to make one big strip without that it just drains performance.I mean if everybody feels the same we could start to submit patch to avoid it or as a standalone operation.Any other thoughts about it ?Cedric PinsonProvide OpenGL, WebGL services+33 659 598 614 - http://cedricpinson.com - http://osgjs.org - http://showwebgl.com___osg-users mailing listosg-users@lists.openscenegraph.orghttp://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


Re: [osg-users] simplifier tristripifier

2012-03-27 Thread Cedric Pinson
Hi,

So I guess we should make it optional to build tristrip or not. It's completely 
insane the performance difference I have.

Cedric Pinson
Provide OpenGL, WebGL services
+33 659 598 614 - 
http://cedricpinson.com - http://osgjs.org - http://showwebgl.com

On Mar 27, 2012, at 09:23 , Sergey Polischuk wrote:

 Hi Cedric
  
 Cant say bout intel\ati as i didnt tested them, but on nvidia drivers with 
 display lists enabled it works great (in worst case about same speed as 
 single draw call with indexed triangle list)
  
 Without display lists draw speed is awful though.
  
 27.03.2012, 03:57, Cedric Pinson cedric.pin...@plopbyte.com:
 Hi Robert and all users,
 I was wondering if it still makes sense to use the stripifier like in the 
 osgUtils::simplifier, in the end it generates a lot of draw calls and make 
 the geometry slow. To fix this I disabled the stripifier in my osgconv bin 
 when using simplifier.
 I was curious if it makes sense for some other usage ? in the osgjs I use it 
 but at the end I generate dummy vertexes to make one big strip without that 
 it just drains performance.
 I mean if everybody feels the same we could start to submit patch to avoid 
 it or as a standalone operation.
 Any other thoughts about it ?
 Cedric Pinson
 Provide OpenGL, WebGL services
 +33 659 598 614 - 
 http://cedricpinson.com - http://osgjs.org - http://showwebgl.com
 
 ___
 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


Re: [osg-users] simplifier tristripifier

2012-03-27 Thread Sergey Polischuk
 Hi,Currently, you can run optimizer with INDEX_MESH | VERTEX_PRETRANSFORM | VERTEX_POSTTRANSFORM (you can do this with osgconv and OSG_OPTIMIZER env) afterwards to make indexed triangles list from it.With tristripping being optional it'll be easier though 27.03.2012, 17:39, "Cedric Pinson" cedric.pin...@plopbyte.com:Hi,So I guess we should make it optional to build tristrip or not. It's completely insane the performance difference I have.Cedric PinsonProvide OpenGL, WebGL services+33 659 598 614 - http://cedricpinson.com - http://osgjs.org - http://showwebgl.comOn Mar 27, 2012, at 09:23 , Sergey Polischuk wrote:Hi Cedric Cant say bout intel\ati as i didnt tested them, but on nvidia drivers with display lists enabled it works great (in worst case about same speed as single draw call with indexed triangle list) Without display lists draw speed is awful though. 27.03.2012, 03:57, "Cedric Pinson" cedric.pin...@plopbyte.com:Hi Robert and all users,I was wondering if it still makes sense to use the stripifier like in the osgUtils::simplifier, in the end it generates a lot of draw calls and make the geometry slow. To fix this I disabled the stripifier in my osgconv bin when using simplifier.I was curious if it makes sense for some other usage ? in the osgjs I use it but at the end I generate dummy vertexes to make one big strip without that it just drains performance.I mean if everybody feels the same we could start to submit patch to avoid it or as a standalone operation.Any other thoughts about it ?Cedric PinsonProvide OpenGL, WebGL services+33 659 598 614 - http://cedricpinson.com - http://osgjs.org - http://showwebgl.com___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org___osg-users mailing listosg-users@lists.openscenegraph.orghttp://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