From 02fef4a39002f968db6efc63b3823f0666cfca7e Mon Sep 17 00:00:00 2001
From: Cryszzz <69176305+Cryszzz@users.noreply.github.com>
Date: Wed, 16 Oct 2024 03:53:21 -0400
Subject: [PATCH] provide scene downloading path+increase limits for buffer
---
INSTRUCTION.md | 2 ++
src/main.ts | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/INSTRUCTION.md b/INSTRUCTION.md
index 748be1d..b2c5131 100644
--- a/INSTRUCTION.md
+++ b/INSTRUCTION.md
@@ -13,6 +13,8 @@ In this project, you will implement the 3D Gaussian Splat Viewer. You are given
- `camera/` includes camera controls, camera file loading.
- `utils/` includes PLY file loading, utility functions for debugging.
+Scene Files: download scene files from [drive](https://drive.google.com/drive/folders/1UbcFvkwZhcdnhAlpua7n-UUjxDaeiYJC?usp=sharing).
+
## Running the code
Follow these steps to install and view the project:
diff --git a/src/main.ts b/src/main.ts
index 2eefa8b..25efcb5 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -17,10 +17,12 @@ import { assert } from './utils/util';
h.innerText = 'No adapter is available for WebGPU.';
return;
}
- // console.log(adapter.limits.maxComputeWorkgroupStorageSize);
const device = await adapter.requestDevice({
- requiredLimits: { maxComputeWorkgroupStorageSize: adapter.limits.maxComputeWorkgroupStorageSize },
+ requiredLimits: {
+ maxComputeWorkgroupStorageSize: adapter.limits.maxComputeWorkgroupStorageSize,
+ maxStorageBufferBindingSize: adapter.limits. maxStorageBufferBindingSize
+ },
});
const canvas = document.querySelector('#webgpu-canvas');