Is there a downloadable template to creating a 3D scene you can walk / fly in?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Moult

I model 3D environments in Blender. In Blender, I can orbit, rotate, or use a “fly mode” to use WASD keys to fly around the scene. There is also a walk mode with basic gravity and collision.

I would like to bring these Blender scenes into Godot in as simple a way as possible so that I can export an executable from Godot where I can navigate in 3D. The ability to fly around (i.e. no gravity / no collision) is vital.

Is there a template which has all the controls set up already where I can just drop in geometry, say from an OBJ file?

Bonus points if there is VR support, e.g. for a HTC Vive or Oculus.

As far as I know, there is the sponza demo for Godot, which allows you to move the camera using the WASD keys. What you want from the demo is the script for the camera movement: https://github.com/Calinou/godot-sponza/blob/master/scripts/camera.gd

When it comes to VR, I do not know, but I would very much like to know too.

johnygames | 2019-08-20 11:07

You could also look on the asset lib: Godot Asset Library

I tried none of them, so I don’t know if any are directly usable for your use case (as in “download and works without anything to do”).

I also made a few scripts to fly around in my test projects:

https://github.com/Zylann/voxelgame/tree/master/project

  • spectator_avatar.gd
  • spectator_avatar.tscn
  • mouse_look.gd

These 3 files placed at the root of your project should be enough to drop spectator_avatar.tscn in a scene so it can fly around with controls similar to Minecraft creative mode, with zoom in/out using mouse wheel

Zylann | 2019-08-20 13:07