Expanded mesh baking functionality, now supporting baking of LODs and Collision meshes

This commit is contained in:
Areloch 2018-03-01 01:51:18 -06:00
parent e079536122
commit f309b736ca
7 changed files with 1578 additions and 8 deletions

View file

@ -60,6 +60,9 @@
#include "gfx/gfxDevice.h"
#endif
#ifndef _COLLADA_UTILS_H_
#include "ts/collada/colladaUtils.h"
#endif
class SceneManager;
class SceneRenderState;
@ -550,6 +553,24 @@ class SceneObject : public NetObject, private SceneContainer::Link, public Proce
const Box3F& box,
const SphereF& sphere ) { return false; }
/// Builds a list of polygons which intersect a bounding volume for exporting
///
/// This will use either the sphere or the box, not both, the
/// SceneObject implementation ignores sphere.
///
/// @see AbstractPolyList
/// @param context A contentual hint as to the type of polylist to build.
/// @param polyList Poly list build (out)
/// @param box Box bounding volume
/// @param sphere Sphere bounding volume
///
virtual bool buildExportPolyList(PolyListContext context,
ColladaUtils::ExportData *exportData,
const Box3F& box,
const SphereF& sphere) {
return false;
}
/// Casts a ray and obtain collision information, returns true if RayInfo is modified.
///
/// @param start Start point of ray