Skip to content

Commit

Permalink
fix: disable conflict_free_offset
Browse files Browse the repository at this point in the history
  • Loading branch information
mosure committed Nov 7, 2023
1 parent c99812e commit cd9fd07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn setup_gaussian_cloud(
## tools

- [ply to gcloud converter](tools/README.md#ply-to-gcloud-converter)
- [] gaussian cloud training tool
- [ ] gaussian cloud training tool

## wasm support

Expand Down
3 changes: 1 addition & 2 deletions src/render/gaussian.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ var<workgroup> sorting_shared_c: SortingSharedC;
const NUM_BANKS: u32 = 16u;
const LOG_NUM_BANKS: u32 = 4u;
fn conflict_free_offset(n: u32) -> u32 {
return n >> NUM_BANKS + n >> (2u * LOG_NUM_BANKS);
return 0u;//n >> NUM_BANKS + n >> (2u * LOG_NUM_BANKS);
}

fn exclusive_scan(local_invocation_index: u32, value: u32) -> u32 {
Expand Down Expand Up @@ -495,7 +495,6 @@ fn vs_points(

let point = points[splat_index];
let transformed_position = (uniforms.global_transform * point.position).xyz;

let projected_position = world_to_clip(transformed_position);
if (!in_frustum(projected_position.xyz)) {
output.color = vec4<f32>(0.0, 0.0, 0.0, 0.0);
Expand Down
2 changes: 1 addition & 1 deletion viewer/viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ fn setup_gaussian_cloud(
..default()
};

// TODO: add proper GaussianSplattingViewer argument parsing
let file_arg = std::env::args().nth(1);

if let Some(n) = file_arg.clone().and_then(|s| s.parse::<usize>().ok()) {
println!("generating {} gaussians", n);
cloud = gaussian_assets.add(random_gaussians(n));
Expand Down

0 comments on commit cd9fd07

Please sign in to comment.