BabylonReactNative icon indicating copy to clipboard operation
BabylonReactNative copied to clipboard

Coloring instances using instancedBuffer

Open Papakkkarlo opened this issue 4 years ago • 2 comments

Hello! I'm trying to color mesh instances on BabylonReactNative scene using this example: https://playground.babylonjs.com/#YPABS1 But when i move code that works in playground to BabylonReactNative scene all instances keeps appearing black. Is there any specific BabylonReactNative issues with instancedBuffers ?

Papakkkarlo avatar May 21 '21 10:05 Papakkkarlo

@CedricGuillemet where are we at with instance support?

ryantrem avatar May 21 '21 13:05 ryantrem

@ryantrem I had a quick look some weeks ago. It's a 2 parts work: handle the dynamic buffer on the C++ side and add instance buffer attribute in the shader. For the later part I don't know the amount of work it needs. I guess it will need changes on nativeShaderProcessor, maybe the shader traversals.

CedricGuillemet avatar May 24 '21 09:05 CedricGuillemet

Work has been done https://github.com/BabylonJS/BabylonNative/pull/990 Reopen this issue if needed

CedricGuillemet avatar Nov 18 '22 09:11 CedricGuillemet