[C++]Upgrade granny 2.4 la 2.9
Scris: Mie Sep 21, 2022 6:25 pm
1. Descarcati fisierul de mai jos si dezarhivati tot intr-un folder. In sursa binary la "include" vei transfera fisierul granny.h din arhiva. Iar din arhiva, din folderul lib, puneti toate fisierele in folderul lib din client.
2. Intrati in sursa si cautati folderul EterGrnLib. Deschideti Mesh.cpp.
Cauta :
Inlocuieste cu :
Cauta :
Inlocuieste cu :
Cauta :
Inlocuieste cu :
Deschide ModelInstanceUpdate.cpp.
Cauta :
Inlocuieste cu :
---
Deschide Material.cpp.
Cauta :
Inlocuieste cu :
Deschide ModelInstanceModel.cpp
Cauta :
Inlocuieste cu :
---
Deschide folderul UserInterface.
Deschide UserInterface.cpp.
Cauta :
Modifica/Inlocuieste cu :
Descarcare Granny 2.9.12:
2. Intrati in sursa si cautati folderul EterGrnLib. Deschideti Mesh.cpp.
Cauta :
Cod: Selectaţi tot
int * boneIndices = GrannyGetMeshBindingToBoneIndices(pgrnMeshBinding);
Cod: Selectaţi tot
int * boneIndices = (int*)GrannyGetMeshBindingToBoneIndices(pgrnMeshBinding);
Cod: Selectaţi tot
return GrannyGetMeshBindingToBoneIndices(m_pgrnMeshBindingTemp);
Cod: Selectaţi tot
return (int*)GrannyGetMeshBindingToBoneIndices(m_pgrnMeshBindingTemp);
Cod: Selectaţi tot
m_pgrnMeshDeformer = GrannyNewMeshDeformer(pgrnInputType, pgrnOutputType, GrannyDeformPositionNormal);
Cod: Selectaţi tot
m_pgrnMeshDeformer = GrannyNewMeshDeformer(pgrnInputType, pgrnOutputType, GrannyDeformPositionNormal, GrannyAllowUncopiedTail);
Cauta :
Cod: Selectaţi tot
GrannyUpdateModelMatrix(m_pgrnModelInstance, fSecondsElapsed, (const float *) pMatrix, (float *) pMatrix);
Cod: Selectaţi tot
GrannyUpdateModelMatrix(m_pgrnModelInstance, fSecondsElapsed, (const float *) pMatrix, (float *) pMatrix, false);
Deschide Material.cpp.
Cauta :
Cod: Selectaţi tot
granny_variant twoSideResult = GrannyFindMatchingMember(pgrnMaterial->ExtendedData.Type, pgrnMaterial->ExtendedData.Object, "Two-sided");
if (NULL != twoSideResult.Type)
GrannyConvertSingleObject(twoSideResult.Type, twoSideResult.Object, TwoSidedFieldType, &twoSided);
Cod: Selectaţi tot
granny_variant twoSideResult;
if (GrannyFindMatchingMember(pgrnMaterial->ExtendedData.Type, pgrnMaterial->ExtendedData.Object, "Two-sided", &twoSideResult)
&& NULL != twoSideResult.Type)
GrannyConvertSingleObject(twoSideResult.Type, twoSideResult.Object, TwoSidedFieldType, &twoSided, NULL);
Cauta :
Cod: Selectaţi tot
return GrannyGetMeshBindingToBoneIndices(m_vct_pgrnMeshBinding[iMeshBinding]);
Cod: Selectaţi tot
return (int*)GrannyGetMeshBindingToBoneIndices(m_vct_pgrnMeshBinding[iMeshBinding]);
Deschide folderul UserInterface.
Deschide UserInterface.cpp.
Cauta :
Cod: Selectaţi tot
static void GrannyError(granny_log_message_type Type,
granny_log_message_origin Origin,
char const *Error,
void *UserData)
{
TraceError("GRANNY: %s", Error);
}
Modifica/Inlocuieste cu :
Cod: Selectaţi tot
static void GrannyError(granny_log_message_type Type,
granny_log_message_origin Origin,
char const* File,
granny_int32x Line,
char const *Error,
void *UserData)
{
TraceError("GRANNY: %s", Error);
}
Descarcare Granny 2.9.12: