-
Notifications
You must be signed in to change notification settings - Fork 1
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
Sample color model #6
Open
Vrixyz
wants to merge
25
commits into
dimforge:cpic
Choose a base branch
from
Vrixyz:sample_color_model
base: cpic
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
07c19b4
compiling 3d (from folder)
Vrixyz 8922108
add an example loading a mesh into a particle
Vrixyz e94f20d
attempt to sample vertex colors from material
Vrixyz 82e67e2
attempt to load glb into particles ; not working
Vrixyz ec3aa08
better model to showcase
Vrixyz 56215de
correct color loading for gltf
Vrixyz 6d6bbd1
wip loading banana and knife
Vrixyz 00f01a1
format credits
Vrixyz d501afa
correctly load rigidbody coupling
Vrixyz 4276c3e
knife cutting through banana (but cut is bugged)
Vrixyz 25dc1f4
knife with open blade correctly cuts :)
Vrixyz 37b7124
better time management
Vrixyz 51c4af3
inside the banana is now white/yellow
Vrixyz 841a565
attempt to use lib examples
Vrixyz cca0349
knif model follow its rigidbody
Vrixyz 0c1be37
add comment about sample_mesh
Vrixyz 5b38cf6
use binary for examples 3d
Vrixyz 82ffe57
use binary for examples 2d
Vrixyz 1b971d9
fix wasm build
Vrixyz 27768c3
better banana cut ; moved utils functions to wgsparkl behind a featur…
Vrixyz 0b2c38e
less bevy specific examples
Vrixyz f22a3f6
independant example for loading a glb to point cloud
Vrixyz c7fe2b3
fix some slippy lints
Vrixyz 996eb87
better banana cut
Vrixyz b799c92
fix 2d examples
Vrixyz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#!/bin/sh | ||
|
||
cargo build --example elasticity2 --release --target wasm32-unknown-unknown --features dim2 | ||
cargo build --example elasticity3 --release --target wasm32-unknown-unknown --features dim3 | ||
wasm-bindgen --no-typescript --target web --out-dir dist2d --out-name elasticity2 ./target/wasm32-unknown-unknown/release/examples/elasticity2.wasm | ||
wasm-bindgen --no-typescript --target web --out-dir dist3d --out-name elasticity3 ./target/wasm32-unknown-unknown/release/examples/elasticity3.wasm | ||
wasm-opt -Oz -o ./dist2d/opt.wasm ./dist2d/elasticity2_bg.wasm && mv ./dist2d/opt.wasm ./dist2d/elasticity2_bg.wasm | ||
wasm-opt -Oz -o ./dist3d/opt.wasm ./dist3d/elasticity3_bg.wasm && mv ./dist3d/opt.wasm ./dist3d/elasticity3_bg.wasm | ||
# cargo build -p wgsparkl-examples-2d --release --target wasm32-unknown-unknown | ||
cargo build -p wgsparkl-examples-3d --release --target wasm32-unknown-unknown | ||
# wasm-bindgen --no-typescript --target web --out-dir dist2d --out-name wgsparkl-examples-2d ./target/wasm32-unknown-unknown/release/wgsparkl-examples-2d.wasm | ||
wasm-bindgen --no-typescript --target web --out-dir dist3d --out-name wgsparkl-examples-3d ./target/wasm32-unknown-unknown/release/wgsparkl-examples-3d.wasm | ||
# wasm-opt -Oz -o ./dist2d/opt.wasm ./dist2d/wgsparkl-examples-2d_bg.wasm && mv ./dist2d/opt.wasm ./dist2d/wgsparkl-examples-2d_bg.wasm | ||
wasm-opt -Oz -o ./dist3d/opt.wasm ./dist3d/wgsparkl-examples-3d_bg.wasm && mv ./dist3d/opt.wasm ./dist3d/wgsparkl-examples-3d_bg.wasm | ||
|
||
brotli ./dist2d/elasticity2_bg.wasm && mv ./dist2d/elasticity2_bg.wasm.br ./dist2d/elasticity2_bg.wasm | ||
brotli ./dist3d/elasticity3_bg.wasm && mv ./dist3d/elasticity3_bg.wasm.br ./dist3d/elasticity3_bg.wasm | ||
# brotli ./dist2d/wgsparkl-examples-2d_bg.wasm && mv ./dist2d/wgsparkl-examples-2d_bg.wasm.br ./dist2d/wgsparkl-examples-2d_bg.wasm | ||
brotli ./dist3d/wgsparkl-examples-3d_bg.wasm && mv ./dist3d/wgsparkl-examples-3d_bg.wasm.br ./dist3d/wgsparkl-examples-3d_bg.wasm |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "wgsparkl-examples-2d" | ||
version = "0.1.0" | ||
license = "Apache-2.0 OR Custom" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
nalgebra = { version = "0.33", features = ["rand"] } | ||
futures-test = "0.3" | ||
serial_test = "3" | ||
approx = "0.5" | ||
async-std = { version = "1", features = ["attributes"] } | ||
bevy = { version = "0.15.0", features = [ | ||
"shader_format_glsl", | ||
"shader_format_spirv", | ||
"webgpu", | ||
"jpeg", | ||
] } | ||
wgsparkl_testbed2d = { path = "../crates/wgsparkl-testbed2d" } | ||
wgsparkl2d = { path = "../crates/wgsparkl2d" } | ||
rapier3d = "0.23" | ||
|
||
[lints] | ||
workspace = true |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
2d examples seem broken on cpic branch?