Still early development stages. I still need to get into HUD/GUI and some better AI driver recovery.
Please check out and let me know the kind of frame rates you are getting and running on what hardware and browser setup.
Please try to install the PWA version (Check browser for how to install PWA Apps)
Chrome pops up install icon in address bar at the farr right… Also the ‘Install Babylon Speedway’ option is available on the chrome menu and three dots option button.
Yo @JFerret … Can you try again… I removed the large background mesh and reduced the camera far plane to from 6000 to 2000. I also made the demo more of a HEAD TO HEAD racing game. It can physically instantiate as many as want … But trying to maintain the best possible frame rate with at least one AI or Human opponent. Once WebGPU is working i can try to get more AI drivers on the track.
Also i thew a couple more tracks in… they are NOT AI Driver ready… yet. So its solo driving for:
Track Two - Uses all real time shadow demo
Unity Motors - Uses unity racing demo terrain based track
Fiorano Track - A Commercial FBX Track Model From TurboSquid
Try em out and let me know the performance your getting… PLEASE
Yeah… I am using a Convex Shape Ray Cast on the wheels to get a much better and smoother driving surface… The problem is … it will drive over ANY static mesh collider… I need to setup collision filtering and set all GROUND mesh colliders to use a custom Bullet Collision Group/Mask for the wheels… Then i can tag all road as drivable surfaces by assigning to custom GROUND collision filter…
Then you cant DRIVE up the wall and shoot yourself over and end up on wrong side of fence…
These demos are still early stages… I am really trying to create a AAA Physics Based Driving system like you have in Unreal Engine And Unity (Ed’s Pro Physics).
And i am trying to develop smooth follow cameras with no glitches or stutters
Nothing special I did. Just out of the box settings. AMD Ryzen 9 3900X + NVIDIA RTX 2080Ti. Maybe the FPS counter is not accurate with my hardware and config? I seem to recall that WebGL is supposed to be capped at 60fps?
Can you please try and test out Track One in the various player modes again
I set the camera far plane to about 3000 and removed the large background ring mesh and removed the audience sound as you pass by the grandstands (for performance)
I also went back to a four car driving experience. It just makes for better gameplay with at least 4 four cars racing on the track. You can also have up to four players. Each can drive one of the four cars or set to auto and the computer AI will drive all four cars. If it just cant handle four cars without having to have a kray… Then ill guess ill go back to a head to head with a maximum 2 players
I am trying to stress test this scene. See how much real gameplay scenarios i can throw at my babylon.js projects and see how it holds up. So please try and hammer at it as much as you can and report back your FPS and camera results (and what type of device or machine your running it on)
Please try as many players as you can. Each multiplayer requires an additional gamepad.
Player one always is the keyboard and first gamepad.
Players 2, 3 and 4 can only play with second, third and forth gamepads
Hi @MackeyK24 this is a really great project. There seems to be a sound bug in Firefox. I tried this in Chrome as well, but the sound seems fine in Chrome. In Firefox there’s a continuous skidding sound which starts repeating as soon as the scene is loaded. It’s not related to movement, just a repeating skid skid skid sound It doesn’t happen in Chrome.
This was on Firefox 72.0.2 , windows 10. GTX 970, core i7 something…