Pagina 1 din 1

[C++]Upgrade granny 2.4 la 2.9

Scris: Mie Sep 21, 2022 6:25 pm
de F. Gabriel
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 :

Cod: Selectaţi tot

int * boneIndices = GrannyGetMeshBindingToBoneIndices(pgrnMeshBinding);
Inlocuieste cu :

Cod: Selectaţi tot

int * boneIndices = (int*)GrannyGetMeshBindingToBoneIndices(pgrnMeshBinding);
Cauta :

Cod: Selectaţi tot

return GrannyGetMeshBindingToBoneIndices(m_pgrnMeshBindingTemp);
Inlocuieste cu :

Cod: Selectaţi tot

return (int*)GrannyGetMeshBindingToBoneIndices(m_pgrnMeshBindingTemp);
Cauta :

Cod: Selectaţi tot

m_pgrnMeshDeformer = GrannyNewMeshDeformer(pgrnInputType, pgrnOutputType, GrannyDeformPositionNormal);
Inlocuieste cu :

Cod: Selectaţi tot

m_pgrnMeshDeformer = GrannyNewMeshDeformer(pgrnInputType, pgrnOutputType, GrannyDeformPositionNormal, GrannyAllowUncopiedTail);
Deschide ModelInstanceUpdate.cpp.

Cauta :

Cod: Selectaţi tot

GrannyUpdateModelMatrix(m_pgrnModelInstance, fSecondsElapsed, (const float *) pMatrix, (float *) pMatrix);
Inlocuieste cu :

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);
Inlocuieste cu :

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);

Deschide ModelInstanceModel.cpp

Cauta :

Cod: Selectaţi tot

return GrannyGetMeshBindingToBoneIndices(m_vct_pgrnMeshBinding[iMeshBinding]);
Inlocuieste cu :

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:
Hidden Content
This board requires you to be registered and logged-in to view hidden content.

Re: [C++]Upgrade granny 2.4 la 2.9

Scris: Vin Dec 09, 2022 4:46 pm
de Kurma
thanks for the release

Re: [C++]Upgrade granny 2.4 la 2.9

Scris: Mie Feb 28, 2024 5:18 pm
de [WSA]Teddy
:D :D merci mult :x

Re: [C++]Upgrade granny 2.4 la 2.9

Scris: Sâm Apr 20, 2024 10:42 am
de Kayako
E full asta sau partial asa?

Re: [C++]Upgrade granny 2.4 la 2.9

Scris: Sâm Apr 20, 2024 11:56 am
de F. Gabriel
Este complet tutorialul.

Re: [C++]Upgrade granny 2.4 la 2.9

Scris: Sâm Mai 04, 2024 2:09 pm
de LupuIoan99
multumesc frumos pentru resurse!