spoint 0.1.35 → 0.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -63,6 +63,6 @@ export default {
63
63
  { id: 'power-crates', position: [0, 0, 0], app: 'power-crate' },
64
64
  { id: 'interact-box', position: [-100, 3, -100], app: 'interactable' }
65
65
  ],
66
- playerModel: './apps/tps-game/Cleetus.vrm',
66
+ playerModel: './apps/tps-game/cleetus.vrm',
67
67
  spawnPoint: [-35, 3, -65]
68
68
  }
package/client/app.js CHANGED
@@ -730,6 +730,7 @@ async function createPlayerVRM(id) {
730
730
  try {
731
731
  const gltf = await gltfLoader.parseAsync(vrmBuffer.buffer.slice(0), '')
732
732
  const vrm = gltf.userData.vrm
733
+ if (!vrm) { console.error('[vrm]', id, 'VRMLoaderPlugin did not produce vrm - file may not be VRM format'); return group }
733
734
  VRMUtils.removeUnnecessaryVertices(vrm.scene)
734
735
  VRMUtils.combineSkeletons(vrm.scene)
735
736
  const vrmVersion = detectVrmVersion(vrmBuffer)
@@ -933,7 +934,6 @@ function loadEntityModel(entityId, entityState) {
933
934
  const ep = entityState.position; group.position.set(ep[0], ep[1], ep[2])
934
935
  const er = entityState.rotation; if (er) group.quaternion.set(er[0], er[1], er[2], er[3])
935
936
  scene.add(group)
936
- renderer.compileAsync(group, camera).catch(() => renderer.compile(group, camera))
937
937
  entityMeshes.set(entityId, group)
938
938
  pendingLoads.delete(entityId)
939
939
  if (!environmentLoaded) { environmentLoaded = true; checkAllLoaded() }
@@ -956,7 +956,6 @@ function loadEntityModel(entityId, entityState) {
956
956
  })
957
957
  model.updateMatrixWorld(true)
958
958
  scene.add(model)
959
- renderer.compileAsync(model, camera).catch(() => renderer.compile(model, camera))
960
959
  entityMeshes.set(entityId, model)
961
960
  cam.setEnvironment(colliders)
962
961
  scene.remove(ground)
@@ -1338,7 +1337,6 @@ function loadQueuedModels() {
1338
1337
  group.position.set(x, y, z)
1339
1338
  group.userData.isDroppedModel = true
1340
1339
  scene.add(group)
1341
- renderer.compileAsync(group, camera).catch(() => renderer.compile(group, camera))
1342
1340
  const envApp = appModules.get('environment')
1343
1341
  if (envApp?.onEvent) {
1344
1342
  envApp.onEvent({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoint",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "Physics and netcode SDK for multiplayer game servers",
5
5
  "type": "module",
6
6
  "main": "src/index.js",