Demo: my game test world with interactions

https://a-d-k.de/vr/vr/index.htm

Threejs:143
Demo for VR (testet: Oculus, Windows Mixed Reality (Acer), Pico, CardBoard) and browser view (Smartphone/Tablet/PC).

  • move via joystick or WASD
  • move by clicking on ground points
  • picking up objects (watering can, wrench, hammer)
  • interactions with recorded objects (e.g. watering can+flower bed=make flowers)
  • synthesizer
  • noises
  • changing the lighting with picking up the lantern
  • launching a rocket, with sound
  • changing the world by clicking on the surface that is behind the door
  • driving with a cart (2nd world, behind the door)
3 Likes

Fishes like birds
image

1 Like

Tried it without VR. It was interesting. Went to the top of the building in the second world, but there was nothing there, except white roof and a nice view of the galaxy. Performance was about 70 fps.

1 Like

Nice Demo.
How did you implement the collision detection and the walk up the ramp?

simply described: there is a ground mesh in the scene, a vertical raycast goes down from the camera position (yellow arrow in the picture) and determines the distance before the next step.

But it is a bit more complex. There are internal variables for the head height (adjustable via “PG up”, “PG down”), whether you are in a car, etc…
There is a virtual head point (green Point on Camera) which simulates the next step in viewing direction. If everything is ok the step takes place.
For this there is an area (red circle in the picture) where the boundary is tested, if the next step is above the ground or not. And it is tested if the next step does not exceed a certain height/depth (~0.5m). E.g. you cannot jump from the ramp.