Interactive tool available at:
https://animakozak.github.io/FramesOfReferencesDemo/index.html
In linguistics (and in natural speech in many languages), much like in physics, we may refer to objects' locations in different ways. Namely, we can do it in regard to fixed bearings (like North, South, West, East), intrinsically (something is to the left of me), or relatively (something is left of something from my point of view).
In this scene, you can test the relative reference inferencing from multiple viewpoints: your current viewpoint, and two others, you can freely move around in the scene. The location of the objects will be calculated with regard to the moving character. Objects in red will be "to the right" of it, blue - "to the left", magenta - "in front of" and cyan "behind of".
You can only visualize "Left/Right" and "Front/Back" one at a time.
In order for visualization to work, you need to use buttons to infer once per click.
You can also toggle "Realtime inferencing" which will do the same every frame from selected perspective.
You can select objects by clicking on them and transform them as you wish.
Controlls:
W - Transform
E - Rotate
R - Scale
You can orbit around using right click mouse drag.
Source code:
https://github.com/Animakozak/FramesOfReference