Three.js Driver Demo. Still a wok in progress.
How do you make the car move? Or is that part of your work in process?
There are some old/ancient three.js/cannon examples of vehicles driving on rugged landscapes, so it is nice to see a newer demo.
You have to check the checkbox in the lower left hand of the screen and then use the joystick in the middle to move the vehicle.
Nicely done!
I like the joystick you have created. For me, it is preferrable to using the WASD keys and can easily be used by people using keypads or touchscreens.
One possible improvement: When driving, I would suggest switching to a trailing view. This can be dynamic or user controlled.
And, of course, brake lights (but I am sure you are working on that!).
I see that this uses r126. Is that because this is an old program you are updating? In any case, I would encourage you to update this to WebGL r162, or WebGPU r162 if that is feasible. It would be a great teaching tool.
Thanks for the feedback. Brake lights with bloom shaders is my next implementation. Also planning to add Bluetooth controller capability. I’ll provably incorporate keyboard controls when updating the next version.