In today’s sample I’ll show how we can take advantage of some of the capabilities included in URHO for Hololens. I’ll do a Spatial Mapping of a room and with an AirTap gesture I’ll create and position a text hologram in the real world.. This element is created in the position where it is looking at the camera and remains anchored in the world of holograms until it is destroyed.
Before sharing the code of the full sample, I need to improve the the way I’m defining position of the element. I’m doing calculations using the RightCamera as source position, and I have to finish adjusting to that element is more centered.
The PositionText() function is the responsible of create them elements of text and add the same in a collection of the scene. It also performs a validation to check there are no more than 5 elements, to not consume all the memory with useless objects.
Line 67, I define the position of the element, this is the part which requires quite a bit of improvement. As soon as understand it best way of make it, will share the project and explain others details of the same.
Greetings @ Toronto