engine icon indicating copy to clipboard operation
engine copied to clipboard

Implementation of baseVertex support

Open AlexAPPi opened this issue 1 year ago • 5 comments

Fixes https://github.com/playcanvas/engine/issues/6751

Added support primitive baseVertex for WebGPU and Batching.

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

AlexAPPi avatar Sep 20 '24 14:09 AlexAPPi

Is there an alternative of base vertex but for the WebGL to ensure parity between renderers?

Maksims avatar Sep 23 '24 11:09 Maksims

Is there an alternative of base vertex but for the WebGL to ensure parity between renderers?

There is no cheap alternative for WebGL2. Only if you change the array of indices directly, via Mesh.setIndices

AlexAPPi avatar Sep 23 '24 11:09 AlexAPPi

Is there an alternative of base vertex but for the WebGL to ensure parity between renderers?

There is no cheap alternative for WebGL2. Only if you change the array of indices directly, via Mesh.setIndices

The real solution is for WebGL to support WEBGL_draw_instanced_base_vertex_base_instance on more devices. Till then this is a WebGPU feature (as compute shaders for example)

mvaligursky avatar Sep 23 '24 11:09 mvaligursky

LOL. 0.2% support.

https://web3dsurvey.com/webgl2/extensions/WEBGL_draw_instanced_base_vertex_base_instance

willeastcott avatar Sep 23 '24 12:09 willeastcott

LOL. 0.2% support.

https://web3dsurvey.com/webgl2/extensions/WEBGL_draw_instanced_base_vertex_base_instance

that is slightly less (-0.04%) than a month ago.

I don't get it. WebGPU supports it, meaning my mac book pro supports it. Some browsers support it on WebGL .. I assume that's not Chrome then?

Searching online, Chrome supports it behind a flag .. when they enable it, this will go to 50%

mvaligursky avatar Sep 23 '24 12:09 mvaligursky

"Will come to all browsers shortly". that was from 2021. haha, webgl/webgpu standards progress summed up perfectly

MAG-AdrianMeredith avatar Jun 06 '25 07:06 MAG-AdrianMeredith