-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented proof of concept for unanimated avatar model in preview
- Loading branch information
1 parent
a3d20d1
commit 45d853a
Showing
13 changed files
with
202 additions
and
99 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
src/Assets/3dModels/sharedModels/avatar/beards/beardMustacheHogan.glb
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
38 changes: 0 additions & 38 deletions
38
src/Components/Core/Domain/AvatarModels/AvatarModelLookups.ts
This file was deleted.
Oops, something went wrong.
84 changes: 51 additions & 33 deletions
84
src/Components/Core/Domain/AvatarModels/AvatarModelTypes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 20 additions & 4 deletions
24
...rEditor/AvatarEditorPreview/AvatarEditorPreviewModel/AvatarEditorPreviewModelViewModel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
import { Mesh } from "@babylonjs/core"; | ||
import AvatarConfigTO from "src/Components/Core/Application/DataTransferObjects/AvatarConfigTO"; | ||
import Observable from "src/Lib/Observable"; | ||
import { Mesh, TransformNode } from "@babylonjs/core"; | ||
import AvatarConfigTO from "../../../../../Core/Application/DataTransferObjects/AvatarConfigTO"; | ||
import { | ||
AvatarBeardModels, | ||
AvatarHairModels, | ||
} from "../../../../../Core/Domain/AvatarModels/AvatarModelTypes"; | ||
import Observable from "../../../../../../Lib/Observable"; | ||
|
||
export default class AvatarEditorPreviewModelViewModel { | ||
baseModelMeshes: Mesh[]; | ||
|
||
avatarConfig: Observable<AvatarConfigTO> = new Observable<AvatarConfigTO>(); | ||
// anchor nodes | ||
hairAnchorNode: TransformNode; | ||
beardAnchorNode: TransformNode; | ||
|
||
// mesh maps | ||
hairMeshes: Map<AvatarHairModels, Mesh[]> = new Map(); | ||
beardMeshes: Map<AvatarBeardModels, Mesh[]> = new Map(); | ||
|
||
currentAvatarConfig: Observable<AvatarConfigTO> = | ||
new Observable<AvatarConfigTO>(); | ||
avatarConfigDiff: Observable<Partial<AvatarConfigTO>> = new Observable< | ||
Partial<AvatarConfigTO> | ||
>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters