mewe Posted November 26, 2014 Share Posted November 26, 2014 I ported this http://threejs.org/examples/#webgl_buffergeometry_uint sample to babylon. If the number of triangles goes above a certain limit, they wont be rendered at all. I suspect that the number of indices in a mesh has something to do with it. But that is only an idea... If you check the "Basic Elements" sample in playground and increase the sphere's tesselation from 10 to 200, its not a sphere anymore. The lower half is "cut". Increasing the tesselation, "cuts" even more. At a tesselation of 250, half of the sphere is gone. Have a look: http://www.babylonjs-playground.com/#2FFMLF Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 26, 2014 Share Posted November 26, 2014 Hello this is due to a limitation with WebGL: no more than 65536 vertices per mesh (16 bit indices) Quote Link to comment Share on other sites More sharing options...
Stephen Andrews Posted November 26, 2014 Share Posted November 26, 2014 Hello this is due to a limitation with WebGL: no more than 65536 vertices per mesh (16 bit indices)Forgive me, but how does THREE.js pull it off then? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 27, 2014 Share Posted November 27, 2014 because it supports 32 bits extension (https://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/) We are working on adding it to bjs sooooooooon (really soon:)) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 27, 2014 Share Posted November 27, 2014 I've updated the playground with current alpha version and TADAMM!! your demo is now working http://www.babylonjs-playground.com/#2FFMLF Quote Link to comment Share on other sites More sharing options...
Stephen Andrews Posted November 27, 2014 Share Posted November 27, 2014 because it supports 32 bits extension (https://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/) We are working on adding it to bjs sooooooooon (really soon:)) I've updated the playground with current alpha version and TADAMM!! your demo is now working http://www.babylonjs-playground.com/#2FFMLF Excellent! This will close like, a fifth of the issues on this forum. (Also lets CEWBS safely use dimensions > 20x20x20) GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
mewe Posted November 27, 2014 Author Share Posted November 27, 2014 Thank you very much! This is valuable information.I did not know, about this 16 bit limitation. I could have come to this idea myself... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.