Updates gles from sketchfab

* fixes bbox issue for animated scenes
* fixes geometry split (perf + line/point primitive management)
* removes degenerated faces
This commit is contained in:
Marc Helbling
2017-01-20 15:09:25 +01:00
parent 255a86cbe2
commit 7cd7618e8c
15 changed files with 608 additions and 214 deletions

View File

@@ -0,0 +1,31 @@
/* -*-c++-*- OpenSceneGraph - Copyright (C) Sketchfab
*
* This application is open source and may be redistributed and/or modified
* freely and without restriction, both in commercial and non commercial
* applications, as long as this copyright notice is maintained.
*
* This application is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*/
#ifndef GEOMETRY_MAPPER
#define GEOMETRY_MAPPER
#include <vector>
#include <osg/ref_ptr>
#include <osg/Geometry>
typedef std::vector< osg::ref_ptr<osg::Geometry> > GeometryList;
class GeometryMapper {
public:
// map one geometry to a list of geometries
// to be used with RemapGeometryVisitor
virtual const GeometryList& process(osg::Geometry&) = 0;
};
#endif