Skip to content

Conversation

Makio64
Copy link
Contributor

@Makio64 Makio64 commented Oct 8, 2024

Fixed #29379

Description

Replace "silent error handling" by throwing clear error message to help the devs to find errors early when using BatchedMesh.

Copy link

github-actions bot commented Oct 8, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 692.35
171.47
693.54
171.54
+1.19 kB
+73 B
WebGPU 822.05
221.87
823.24
222.02
+1.19 kB
+147 B
WebGPU Nodes 821.34
221.72
822.52
221.87
+1.19 kB
+147 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 464.89
112.3
464.89
112.3
+0 B
+0 B
WebGPU 542.63
146.81
542.63
146.81
+0 B
+0 B
WebGPU Nodes 498.57
136.54
498.57
136.54
+0 B
+0 B

Makio64 and others added 3 commits October 8, 2024 17:00
* GTAONode: Fix AO with WebGL backend.

* E2E: Update screenshot.

* DenoiseNode: Use `getViewPosition()` from core.

* DenoiseNode: Clean up.
* improve outline example

* rev
@Mugen87 Mugen87 changed the title Refactor BatchedMesh class error handling BatchedMesh: Refactor error handling. Oct 8, 2024
@mrdoob mrdoob requested a review from gkjohnson October 8, 2024 23:15
@mrdoob mrdoob added this to the r170 milestone Oct 8, 2024
Mugen87 and others added 4 commits October 9, 2024 17:54
* Addons: Add `SSRNode`.

* E2E: Update screenshot.

* SSRNode: Clean up.

* SSRNode: Honor material in `dispose()`.
…rdoob#29598)

* Improve names, replaced some `save` to `reset`

* Update SSRNode.js
@Makio64
Copy link
Contributor Author

Makio64 commented Oct 9, 2024

I was wondering if the error message shouldn't be factorize in function ?
validateInstanceId(instanceId, drawRanges)
validateGeometryId(geometryId, drawRanges)

Like :

function validateGeometryId(geometryId, drawRanges) {
  if (geometryId >= drawRanges.length || drawRanges[geometryId].active === false) {
    throw new Error(`BatchedMesh: Invalid geometryId ${geometryId}. Geometry is either out of range or has been deleted.`);
  }
}

Mugen87 and others added 5 commits October 9, 2024 16:14
* PostProcessingUtils: Add `getScreenPosition()`.

* renamed types: `matrix4` -> `mat4`

---------
)

* WebGPURenderer: Fix geometry attribute not updated regardless of version

* BufferAttributes don't have uuid

* small cleanup

* more cleanup

* improve geometry comparison performance

* cleanup previous implementation

* attributes have no uuid
@gkjohnson
Copy link
Collaborator

I was wondering if the error message shouldn't be factorize in function ?
validateInstanceId(instanceId, drawRanges)
validateGeometryId(geometryId, drawRanges)

I think this is okay to do - it should simplify some of the functions

sunag and others added 7 commits October 10, 2024 00:42
…mrdoob#29606)

* added hashBlur

* improve `webgpu_backdrop_area` example

* loop: fix generate const in `start` and `end`

* Update webgpu_backdrop_area.jpg
* add min/max constraints to TransformControls

* update TransformControls documentation
* Eslint: Add `no-irregular-whitespace` rule

* clean up
* `hashBlur` - added default `uv`

* improve light intensity
…ob#29594)

* Introducing an indirectStorageBuffer for drawIndirect

* Update NodeStorageBuffer.js

fixed lint issue

* Update StorageBufferNode.js

fixed lint issue

* Update IndirectStorageBufferAttribute.js

fixed lint issue

* Update StorageBufferNode.js

fixed lint issues

* Update StorageBufferNode.js

fixed lint issues

* Update StorageBufferNode.js

fixed lint issues

* Update StorageBufferNode.js

fixed lint issue

* PR update

* Update StorageBuffer.js

* Update Bindings.js

* Update Bindings.js

* Update StorageBufferNode.js

* rev

* cleanup

---------

Co-authored-by: Attila Schroeder <[email protected]>
Co-authored-by: sunag <[email protected]>
* Addons: Remove `CinematicCamera`.

* E2E: Remove screenshot.
* LDrawLoader: Add WebGPU support.

* LDrawLoader: Improve error handling.

* LDrawLoader: Clean up.

* Update Addons.js
@Mugen87
Copy link
Collaborator

Mugen87 commented Oct 28, 2024

Do you mind rebasing the PR?

Nokic233 and others added 15 commits October 29, 2024 09:46
* Docs:Manual lights.html typo

* Docs:Manual lights.html code snippet intensity default 5
* NodeMaterial: Add support for `alphaHash`.

* Clean up.

* E2E: Update exception list.

* Examples: Clean up.

* NodeMaterial: Fix alpha hash check.
…ng usage (mrdoob#29729)

* support for post-rendering use

* cleanup

* Update Textures.js

* improve rectangle parameter values and types

* cleanup
* TSL: Add function for computing BPCEMs.

* E2E: Add example to exception list.

* added on resize

---------
Remove outdated link.
* WebGPURenderer: Handle Device Lost Event

* small typo

* feedbacks

* fix

* not need to bind
@mrdoob mrdoob modified the milestones: r170, r171 Oct 31, 2024
Mugen87 and others added 8 commits October 31, 2024 11:14
Update revision.
…rdoob#29769)

* Add mipmap copy support

* unbind buffers

* working function implementation

* Support signature deprecation

* update docs

* Infer the mipmap sizes of the src texture

* Update WebGLRenderer.js

Update deprecation comment.

---------

Co-authored-by: Michael Herzog <[email protected]>
* Materials: Revert static types of builtins materials

* git checkout materials too destructive

* git checkout materials too destructive

* adapt StandardNodeLibrary

* git checkout materials too destructive
@Makio64
Copy link
Contributor Author

Makio64 commented Nov 2, 2024

closed in favor of : #29790

@Makio64 Makio64 closed this Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BatchedMesh silent errors on : setMatrixAt, setColorAt, setVisibleAt, etc..