Portal rendering / culling module for Godot
Go to file
2019-09-23 11:20:02 +01:00
images
config.py
INSTRUCTIONS.md Update INSTRUCTIONS.md 2019-09-23 11:20:02 +01:00
lbitfield_dynamic.cpp
lbitfield_dynamic.h
lbound.cpp
lbound.h
ldebug.cpp
ldebug.h Debug lines to show clipping planes to portals 2019-09-23 11:14:41 +01:00
ldob.cpp
ldob.h
LICENSE
lplanes_pool.cpp
lplanes_pool.h
lportal_all.cpp
lportal.cpp Debug lines to show clipping planes to portals 2019-09-23 11:14:41 +01:00
lportal.h Debug lines to show clipping planes to portals 2019-09-23 11:14:41 +01:00
LPortalTutorial.zip
lroom_converter.cpp Debug lines to show clipping planes to portals 2019-09-23 11:14:41 +01:00
lroom_converter.h
lroom_manager.cpp Debug lines to show clipping planes to portals 2019-09-23 11:14:41 +01:00
lroom_manager.h Debug lines to show clipping planes to portals 2019-09-23 11:14:41 +01:00
lroom.cpp Debug lines to show clipping planes to portals 2019-09-23 11:14:41 +01:00
lroom.h Debug lines to show clipping planes to portals 2019-09-23 11:14:41 +01:00
lvector.h
README.md Update README.md 2019-09-23 07:45:11 +01:00
register_types.cpp
register_types.h
SCsub
TUTORIAL.md Update TUTORIAL.md 2019-09-18 13:28:31 +01:00

godot-lportal

Portal rendering module for Godot 3.2
Work in progress

Although not yet released, I am trying to make sure that committed versions are runnable, so if you want to test out the system, simply follow the installation instructions. Note that the function definitions are still subject to change, but any rooms you build should be compatible with later versions.

Video of initial testing:
https://www.youtube.com/watch?v=xF_3Fe2HRdk
https://www.youtube.com/watch?v=NmlWkkhGoJA

Feel free to leave suggestions / feature requests on the issue tracker, especially regarding ease of use.

Current status

The system is mostly working. I am now testing / polishing the interface and adding a few features. I will make a first release before implementing PVS as PVS is an optional feature.

Roadmap

  • Auto conversion of named room spatials and portal mesh instances to LRoom and LPortal DONE
  • Auto creation of mirror portals DONE
  • Recursive determine visibility DONE
  • Prevent memory allocations (use pools for plane vectors) DONE
  • Add support for objects moving between rooms - cameras, players, physics etc - DONE
  • Refactor code, moving LRooms and LPortals outside scene graph DONE
  • Cleanup code, Optimize DONE
  • Handle special cases (multiple portals views into room etc) DONE
  • Optimize non-moving statics DONE
  • Optional convex hull bound for rooms DONE
  • Bug fixing / testing ONGOING
  • Closable portals
  • PVS (primary and secondary)
  • Investigate multiple passes (shadows, lights)

Instructions

See INSTRUCTIONS.md and TUTORIAL.md

Installation

You will need to compile Godot from source (for now). See: http://docs.godotengine.org/en/3.0/development/compiling/index.html

Once the engine is compiling okay on your system, to add the module:

  • Create a folder inside godot/modules called 'lportal'
  • Clone / download this repository as a zip file and place the files in the lportal folder
  • Compile the engine as normal, it should automatically pick up the lportal module
  • Note that to export to other platforms you will also have to compile export templates for those platforms

You will know the installation was successful when you see a new Node type 'LRoomManager' in the Godot IDE.