Hi all. I have a very specific project, I would love to make it with BJS since I’ll also build the game’s website with it. I’m planning to make a simple rhythm game where a video plays and depending on input the video will swap to another one that’s nearly the same if the input is incorrect. I plan to sell this game in android and IOS. Is that doable?
I know I can play a video texture, but what about 2? Can I have it on the UI layer instead of 3D space? Performance is manageable on mobile? Can I use BJS native for exporting to mobile? I saw that sound isn’t supported yet, so maybe ionic?
I’m using game engines but maybe I can use BJS instead. Thanks in advance for your help!
I don’t see how an extra video would hurt performance too much. Of course, synchronization between the videos might present a challenge, but is also doable
You can use the video texture on any material you want. We don’t support videos in the GUI, but it won’t improve performance even if we did. The video data is pulled on each rendered frame and the texture is updated.
You can, of course, use HTML elements on top of your canvas, if that fits your usecase. This way you leverage the browser’s capabilities directly, and it will probably improve perf. You can also try using the HTMLMesh extension ( Extensions/HtmlMesh at master · BabylonJS/Extensions (github.com)) if it helps to fit your use-case.
The latest smartphones are stronger that some low-end PCs… It depend on the model, on the video resolution, codec, etc’. Everything is possible, and it is always possible to optimize it. Use every tool you have available to make sure your users are getting the best performance available, and they will thank you for sure. And will continue using your app