Skip to content
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

Skinned Mesh Example #349

Merged
merged 43 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d51dc45
Merge pull request #1 from webgpu/main
cmhhelgeson Oct 18, 2023
766427d
Merge pull request #2 from webgpu/main
cmhhelgeson Oct 27, 2023
415bd67
Merge pull request #3 from webgpu/main
cmhhelgeson Oct 31, 2023
ff38128
Merge pull request #4 from webgpu/main
cmhhelgeson Nov 15, 2023
c4f73a1
Merge branch 'main' of https://github.com/cmhhelgeson/webgpu-samples
cmhhelgeson Nov 30, 2023
c5a9982
Merge pull request #5 from webgpu/main
cmhhelgeson Dec 4, 2023
08d811d
Merge branch 'main' of https://github.com/cmhhelgeson/webgpu-samples
cmhhelgeson Dec 4, 2023
93c8980
eod
cmhhelgeson Jan 18, 2024
d231112
late lunch
cmhhelgeson Jan 18, 2024
f132091
Can't figure out what's wrong with vertPositions or indices
cmhhelgeson Jan 19, 2024
89bf207
committing to fix an issue in another branch
cmhhelgeson Jan 19, 2024
d96595c
Have some kind of animation working, but not correctly
cmhhelgeson Jan 21, 2024
8c85990
Safety commit
cmhhelgeson Jan 22, 2024
2e2989d
Elongated trunk'
cmhhelgeson Jan 22, 2024
255a278
Scene stuff working, even though it took too long
cmhhelgeson Jan 23, 2024
85cc676
eod. should have finished today
cmhhelgeson Jan 23, 2024
8c16ed9
almuerzo
cmhhelgeson Jan 23, 2024
03d76e6
Whale seems to be transformed by node values, but now it is in a weir…
cmhhelgeson Jan 24, 2024
7d4b0e4
Remember to try to add static bgLayout to GLTFSKIN, so layout can be …
cmhhelgeson Jan 24, 2024
6d9c609
Some kind of animation is happening, though not the kind I like. I th…
cmhhelgeson Jan 24, 2024
3ab30f0
Changed get matrix to apply rotationMatrix to transformationMatrix ra…
cmhhelgeson Jan 24, 2024
c78446c
Fixed it again :(
cmhhelgeson Jan 24, 2024
4895e1d
Simplified primitive generation and rendering
cmhhelgeson Jan 24, 2024
c7f7fb5
Fixed bug where texcoords were not being loaded in, even though they …
cmhhelgeson Jan 25, 2024
11d80a5
Remove gltf.ts comments
cmhhelgeson Jan 25, 2024
2da42f0
Fix to the way our buffer is interpreted
cmhhelgeson Jan 28, 2024
615932b
Fixed various errors with typedArray/ArrayBuffer interpretation in co…
cmhhelgeson Jan 28, 2024
a808cbe
Generally seems to be working but something is off with the scaling i…
cmhhelgeson Jan 29, 2024
12f0c8e
This is pretty dumb but I think it's working now
cmhhelgeson Jan 29, 2024
7dec803
Make initial angle less annoying
cmhhelgeson Jan 29, 2024
30de0af
Initial description
cmhhelgeson Jan 29, 2024
4e07658
Proper attribution for parts of glbUtils code
cmhhelgeson Jan 29, 2024
32bc229
Just removed console.logs
cmhhelgeson Jan 30, 2024
5d2c094
Modified grid and gtlf shaders to take in inverseBindMatrices through…
cmhhelgeson Jan 30, 2024
89a746f
Removed unneeded jointMatrices code'
cmhhelgeson Jan 30, 2024
a37a095
Removed camera controls
cmhhelgeson Jan 30, 2024
7fdf458
clamped angle to lower value to prevent animations that look broken/t…
cmhhelgeson Jan 30, 2024
6114d54
converted uniform matrix buffers to storage buffers
cmhhelgeson Jan 30, 2024
66c39ac
eod
cmhhelgeson Jan 31, 2024
5f9d6d5
interpret vertex formats from attributes to make shaders for other gl…
cmhhelgeson Jan 31, 2024
f48d4b8
fix prettier problem
cmhhelgeson Feb 1, 2024
9563916
Changed animation
cmhhelgeson Feb 1, 2024
129999a
Comments and deletions
cmhhelgeson Feb 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/assets/gltf/whale.glb
Binary file not shown.
1 change: 1 addition & 0 deletions src/pages/samples/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const pages: PageComponentType = {
'A-buffer': dynamic(() => import('../../sample/a-buffer/main')),
bitonicSort: dynamic(() => import('../../sample/bitonicSort/main')),
normalMap: dynamic(() => import('../../sample/normalMap/main')),
skinnedMesh: dynamic(() => import('../../sample/skinnedMesh/main')),
};

function Page({ slug }: Props): JSX.Element {
Expand Down
Loading
Loading