R0J0hound Thanks for this cool demo!
Just to do some learning, I tried porting it to the c3 runtime (the previous *.c3p only worked in the c2 runtime for me.) I got the demo semi-working with the c3 runtime. The main 3d objects render, but there are still some webgl errors reported on the console, and other 2d sprites are not rendered, so it's not complete.
I had to:
- Update some C3 SDK calls and change some functions to async (in JS and execJS events)
- For example: image.src = await window.myBigB._assetManager.LoadProjectFileUrl(url);
- Use new pointers for object draw function and glwrap (SDK changes)
- Update some of the mat4.* calls to the later mat4.* api
If you want to play with the c3runtime version (and try to fix it, so there are no errors and other elements are rendered!) check it out here:
sendgb.com/Pqdzn3raMFH
FYI here's the error I see:
GL ERROR :GL_INVALID_OPERATION : glDrawArrays: attempt to access out of range vertices in attribute 0