Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging dev iulian main #3

Merged
merged 24 commits into from
Oct 12, 2022
Prev Previous commit
Next Next commit
quick edits
  • Loading branch information
default user name committed Oct 12, 2022
commit 624c2b1aa22e08fc2a960301acac929347edac6f
2 changes: 1 addition & 1 deletion Documentation/2.1_Sample_Scenes.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@

* **Summary**: The minimum you need for a scene are these objects (use this in all your scenes). You can create this cene by taking the Arduino multiplayer scene and removing all the extra objects. If you run a scene just containing this, you’ll see that multiple users can see each other, and create/modify objects together.

* <img src="file:///C:/Users/hgsel/AppData/Roaming/marktext/images/2022-10-12-11-33-26-image.png" title="" alt="" width="407">
* <img src="./Images/2022-10-12-11-33-26-image.png" title="" alt="" width="407">

* **Details:**

Expand Down
12 changes: 8 additions & 4 deletions Documentation/3.1_Data_and_Channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@

* Summary: Data in our project flows through named entities called channels. A channel can get data from a Hololens or from the PC or from Arduino or all of the above. Channel data can be controlled in a variety of ways (ex: knobs, buttons) and displayed in a variety of ways (ex: graphs, text, colors)
* Data is stored/synchronized through **AtomicDataModel**(ADM) objects. Each of these holds a value (typically float), which is automatically synchronized by Photon to all users.
* ![](.\Images\2022-10-12-11-38-09-image.png)

* <img src="./Images/2022-10-12-11-38-09-image.png" title="" alt="" width="407">

* ^ this figure shows a simplified view of an ADM object being shared by multiple users
*
* When one user changes an ADM model value, that model is synchronized by Photon to all other users. An ADM value can only be changed by the user who is the current owner of the PhotonView.
* ![](.\Images\2022-10-12-11-39-03-image.png)

* <img src="./Images/2022-10-12-11-39-03-image.png" title="" alt="" width="407">

* ^ this figure is more accurate: in reality all users have a local ADM object, which Photon synchronizes through the PhotonViews that have the same ID
*
* Channels:
Expand All @@ -41,8 +45,8 @@
### Simulated Channels

* Unity can generate simulated data. It can be configured via the **ConfigurationProfile** object, to send simulated data on any channel:
* ![](.\Images\2022-10-12-11-42-22-image.png)

* <img src="./Images/2022-10-12-11-42-22-image.png" title="" alt="" width="407">

* The way this works is, there's a “**SimulatedChannels**” gameobject generates fake data into several channels.

Expand Down