forked from OGRECave/ogre-assimp
-
Notifications
You must be signed in to change notification settings - Fork 2
Add flag for scaling models #3
Copy link
Copy link
Open
Labels
Description
This fix should go to assimp so that scaling can also help reduce the mesh size generated.
As seen on some Opengl code here
void recursive_render (const struct aiScene *sc, const struct aiNode* nd, float scale)
{
unsigned int i;
unsigned int n=0, t;
aiMatrix4x4 m = nd->mTransformation;
aiMatrix4x4 m2;
aiMatrix4x4::Scaling(aiVector3D(scale, scale, scale), m2);
m = m * m2;
// update transform
m.Transpose();
Reactions are currently unavailable