-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added skeletal animation system #58
base: master
Are you sure you want to change the base?
Conversation
@@ -14,6 +14,7 @@ class Mesh | |||
{ | |||
public: | |||
Mesh(std::string identifier, Vertex vertices[], int vertSize, unsigned int indices[], int indexSize); | |||
void reasign(std::string identifier, Vertex vertices[], int vertSize, unsigned int indices[], int indexSize); //Added by Majid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*reassign
m_meshData = std::make_shared<MeshData>(vertices, vertSize, indices, indexSize); | ||
m_meshCache[identifier] = m_meshData; | ||
} | ||
} | ||
void Mesh::reasign(std::string identifier, Vertex vertices[], int vertSize, unsigned int indices[], int indexSize) //Added by Majid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to find out why reasign was added, as its not really used for animation from what i see
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, I want to add skeletal animation to your Engine, but after some work, I figure out that the animations apply to the entities implemented by some shaders. I use "reasign" and also "recreateMesh" to apply animations (change mesh vertexes) but It should be implemented by shader. I will work on it in the future and try to implement it through shader
#endif | ||
} | ||
|
||
void MeshData::recreateMesh(Vertex *vertices, int vertSize, unsigned int *indices, int indexSize) //Added by Majid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as this, what was recreateMesh
added for, is it useful?
contribution by Majid Anjidani