forked from PrismarineJS/prismarine-web-client
-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat: app <-> renderer REWORK. Add new layers for stability #315
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
c65db9a
a working refactor
zardoy 4381ef4
removing bobbing & panorama
zardoy d8294d5
even more appViewer usage
zardoy 1861edf
delayLoadUntilFocus
zardoy d197859
big resourcemanager refactor
zardoy d74d860
Merge remote-tracking branch 'origin/next' into renderer-rewrite
zardoy 67d90a5
Merge remote-tracking branch 'origin/next' into renderer-rewrite
zardoy 6eb50cd
last dont crash
zardoy dc073cd
Merge remote-tracking branch 'origin/next' into renderer-rewrite
zardoy 400f598
update server data for index 0
zardoy 5364085
fix possible crash on non existing server data update
zardoy de3edda
a lot of imports update, data cleanup, add thousands errors
zardoy c1a7765
final code cleanup i think
zardoy ccb0004
fix reload hand
zardoy 9fedafe
move threejs entities & cursor block to renderer
zardoy 136b051
smooth camera movement!
zardoy f88e9c8
Refactor renderer state management and move vr
zardoy cae2b61
fix all remaining reactive state linking
zardoy 82d0638
Merge remote-tracking branch 'origin/next' into renderer-rewrite
zardoy b483923
rm unused three imports
zardoy dc2ad7c
disable signs, disable playground since its not used by anyone
zardoy 8ee4dc3
disable displaying unknown non interactible entitites
zardoy 11abbfc
disable check
zardoy 5eedb3c
disable playground
zardoy 8ddac97
dont use bot
zardoy 853e0e1
up readme
zardoy d450a31
fix typo
zardoy b579ee1
Revert "disable playground"
zardoy ed04197
disable in other way
zardoy e917764
fix lint
zardoy 01971d4
fix: allow to go back when not crashed game
zardoy eb4c8e5
fix mesher config pass
zardoy 272b0df
renderers cleanup
zardoy f72621d
make initial resource pack load optimised, rework it
zardoy 92853e2
final fixes
zardoy 4b31817
fix test
zardoy 1a8813e
fix breaking and possible e.name crash
zardoy ffcf42d
fix elippse
zardoy 0ee491f
fix invalid yaw
zardoy 6380d03
Merge remote-tracking branch 'origin/next' into renderer-rewrite
zardoy 7d934eb
fix merge
zardoy b952211
fix type
zardoy 545e6ec
Merge branch 'next' into renderer-rewrite
zardoy 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ localSettings.mjs | |
dist* | ||
.DS_Store | ||
.idea/ | ||
world | ||
/world | ||
data*.json | ||
out | ||
*.iml | ||
|
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,3 +1,4 @@ | ||
//@ts-nocheck | ||
import { Vec3 } from 'vec3' | ||
import * as THREE from 'three' | ||
import '../../src/getCollisionShapes' | ||
|
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,12 @@ | ||
import { BasePlaygroundScene } from './baseScene' | ||
import { playgroundGlobalUiState } from './playgroundUi' | ||
import * as scenes from './scenes' | ||
if (!new URL(location.href).searchParams.get('playground')) location.href = '/?playground=true' | ||
// import { BasePlaygroundScene } from './baseScene' | ||
// import { playgroundGlobalUiState } from './playgroundUi' | ||
// import * as scenes from './scenes' | ||
|
||
const qsScene = new URLSearchParams(window.location.search).get('scene') | ||
const Scene: typeof BasePlaygroundScene = qsScene ? scenes[qsScene] : scenes.main | ||
playgroundGlobalUiState.scenes = ['main', 'railsCobweb', 'floorRandom', 'lightingStarfield', 'transparencyIssue', 'entities', 'frequentUpdates', 'slabsOptimization', 'allEntities'] | ||
playgroundGlobalUiState.selected = qsScene ?? 'main' | ||
// const qsScene = new URLSearchParams(window.location.search).get('scene') | ||
// const Scene: typeof BasePlaygroundScene = qsScene ? scenes[qsScene] : scenes.main | ||
// playgroundGlobalUiState.scenes = ['main', 'railsCobweb', 'floorRandom', 'lightingStarfield', 'transparencyIssue', 'entities', 'frequentUpdates', 'slabsOptimization', 'allEntities'] | ||
// playgroundGlobalUiState.selected = qsScene ?? 'main' | ||
|
||
const scene = new Scene() | ||
globalThis.scene = scene | ||
// const scene = new Scene() | ||
// globalThis.scene = scene |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//@ts-nocheck | ||
import { Vec3 } from 'vec3' | ||
import { BasePlaygroundScene } from '../baseScene' | ||
|
||
|
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,15 @@ | ||
import { RendererReactiveState } from '../../src/appViewer' | ||
|
||
export const getDefaultRendererState = (): RendererReactiveState => { | ||
return { | ||
world: { | ||
chunksLoaded: [], | ||
chunksTotalNumber: 0, | ||
allChunksLoaded: true, | ||
mesherWork: false, | ||
intersectMedia: null | ||
}, | ||
renderer: '', | ||
preventEscapeMenu: false | ||
} | ||
} |
File renamed without changes.
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
Oops, something went wrong.
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.
🛠️ Refactor suggestion
Returning a constant
(0, 0, 0)
The new
getPosition
method always returns(0, 0, 0)
. If you plan to track actual player movement, consider switching from this placeholder to dynamic logic reflecting the real player coordinates.