renardyreveur / hide-and-seek

2 stars 0 forks source link

Web-based Visualisation Updates #13

Closed renardyreveur closed 3 years ago

renardyreveur commented 3 years ago

Currently, I've implemented a simple Python WebSocket server that returns the agent location and wall locations whenever it's called.

The javascript client creates a new mesh every time it receives the data and draws it on the browser with three.js (THIS IS WRONG)

This should change such that the browser holds one mesh each for all the agents/wall location, and move/redraw that mesh according to the new information coming in from the server.

Plus, maybe a keyboard + drag event based camera work might help with the visualisation.(In that case change the camera to Perspective camera?)

renardyreveur commented 3 years ago

92012a9f28e1590b6008c856d5672c5fefc61b72 uses instanced mesh + server timing to reduce the burden of creating a mesh every frame and rendering it constantly.