-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from arhik/splatting
merging Splatting branch
- Loading branch information
Showing
12 changed files
with
684 additions
and
113 deletions.
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using Revise | ||
using Tracy | ||
using WGPUgfx | ||
using WGPUCore | ||
using WGPUCanvas | ||
using GLFW | ||
using GLFW: WindowShouldClose, PollEvents, DestroyWindow | ||
using LinearAlgebra | ||
using Rotations | ||
using StaticArrays | ||
using WGPUNative | ||
using Images | ||
|
||
WGPUCore.SetLogLevel(WGPUCore.WGPULogLevel_Off) | ||
|
||
|
||
scene = Scene() | ||
renderer = getRenderer(scene) | ||
|
||
pc = defaultQSplat(1) | ||
|
||
# scene.cameraSystem = CameraSystem([camera1, camera2]) | ||
|
||
addObject!(renderer, pc, scene.cameraSystem[1]) | ||
|
||
# attachEventSystem(renderer) | ||
|
||
function runApp(renderer) | ||
init(renderer) | ||
render(renderer) | ||
deinit(renderer) | ||
end | ||
|
||
mainApp = () -> begin | ||
try | ||
count = 0 | ||
while !WindowShouldClose(scene.canvas.windowRef[]) | ||
@tracepoint "runAppLoop" runApp(renderer) | ||
PollEvents() | ||
end | ||
finally | ||
WGPUCore.destroyWindow(scene.canvas) | ||
end | ||
end | ||
|
||
if abspath(PROGRAM_FILE)==@__FILE__ | ||
mainApp() | ||
else | ||
mainApp() | ||
end | ||
|
||
|
||
|
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 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
Oops, something went wrong.