... | ... | @@ -27,6 +27,10 @@ To implement the dispatch, the messages are organised as follows: |
|
|
|
|
|
A message is cut into chunks that are sent through the stream. When the message is read, the handler name read allows to dispatch it to the correct handler. The *StreamDispatcher* object is responsible for collecting and forwarding the message to the correct handler. There is one *StreamDispatcher* on the client side and as many as clients on the server side.
|
|
|
|
|
|
AssetGetter: The object is getting the 3D model data. It registers handlers on the *StreamDispatcher* and when data are fetched they are stored in the *IndexedDB* browser database using the *AssetStorage* object. On the server side the *AssetResponder* is reading the data on disk.
|
|
|
|
|
|
Nomad3DPositions: The object is getting the current positions of the axis. It registers handlers on the *StreamDispatcher* and updates the positions read by the model. On the server side, the *AddonsResponder* delegates to the addon the communication with the intermediate *nomad-3d-positions* application that checks the nomad server execution and registers the Cameo subscriber.
|
|
|
|
|
|
## Environment map
|
|
|
|
|
|
The environment files are generated from an environment image. The file used is *img/environment.jpg*. The Blender script *img/environment.blend* is used to generate the 6 texture files from it. To do it:
|
... | ... | |