Skip to content

Instantly share code, notes, and snippets.

@YonathanMeguira
Created February 25, 2018 14:00
Show Gist options
  • Save YonathanMeguira/ff3edf8a50a3bbefb9f859558f4c467a to your computer and use it in GitHub Desktop.
Save YonathanMeguira/ff3edf8a50a3bbefb9f859558f4c467a to your computer and use it in GitHub Desktop.
instructions for Monday 26/02/2018
1) add a button " Visibility Point Query"
click on this button should :
-disable the tilting and orbit controls of the scene
- capture any click on the screen and only draw the last clicked point
- transform window x, y to world coordinates
- the button is inversed to "Query visibility", click on this button sends the last clicked point to the server and shows a loader
2) add a button "Path Visibility"
clicking on this button has the same effect as previously but:
all points are drawn onto the scene, need to link the points between them, (draw vectors by couples of {x, y}), if the first couple and the last couple (last clicked point)
coordinates are close, then snap them together.
button when click turns to "Query visibility" which shows an animations and sends this array of coordinatees (previously converted to real world coordinates) to the server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment