Hi Andrew Thanks for the tip on the simplifier, lower the sample ratio is, lower the vertex number is. (I get a crash under 0.6 but I'm not sure this is an osg crash) Concerning the optimiser, this do not reduce the vertex number but the inverse... on a 460k vertices model, the optimizer returns me a 480k vertices model ...
I'm looking for a destructive optimizer/simplifier for my model... Do you have any other tips or idea ? Thanks. Regards, Vincent. 2009/9/21 Andrew Burnett-Thompson <[email protected]> > Hi there, > > I've experimented with the simplifier, but am not using it. > > I found the setSampleRatio() method affects how coarse or fine a result you > get. The simplification with a sample ratio less that 1.0 appears to be > destructive (i.e. Geometry out does not equal Geometry in). So far I've not > found the right settings to be beneficial for my needs (which is reduction > of memory consumption while keeping the mesh the same or similar). > > Another way of reducing the vertex count in your scene is to use the > Optimizer. Here I have found that using the Optimizer with the options > MERGE_GEOMETRY, CHECK_GEOMETRY and TRISTRIP_GEOMETRY can significantly > reduce the number of vertices/primitives in each Geometry object, while > giving you essentially the same mesh out. > > > On Mon, Sep 21, 2009 at 10:10 AM, Vincent Bourdier < > [email protected]> wrote: > >> Up ? >> >> No one does osg simplifications ? >> >> Thanks, >> Vincent. >> >> 2009/9/17 Vincent Bourdier <[email protected]> >> >> Hi all, >>> >>> Using the osg simplifier on a geometry, I'm just surprised to see that >>> there is no way to set a level of simplification or something like that. >>> Maybe I didn't saw it, but for the moment I just found >>> >>> _sm->setDoTriStrip(true); //what for ? do triangle strip are more >>> optimized ? >>> _sm->setSampleRatio(?); //what does it mean ? what does it changes ? >>> ... >>> >>> How can I control the simplification level ? >>> Is this simplifier a destructive one ? (can deform the geometry) >>> >>> Thanks. >>> >>> Regards, >>> Vincent. >>> >>> >>> >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

