Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

Does anyone have a functional TextRenderer class in C++?

I´m pretty new in DirectX and Hololens Dev, I need to Render plain text in a Mixed Reality App, I saw that the "Holographic Face Tracker Sample" has a TextRenderer class that uses an ID2D1Device and context to show messages in the Hololens and follows users view.

I tried to extract this class and use in my own project (based on the DirectX/WinRT template from the latest SDK). The problem is that it simple doesn't render. Also, I don't understand why the TextRenderer class (https://github.com/Microsoft/Windows-universal-samples/blob/master/Samples/HolographicFaceTracking/cpp/Content/TextRenderer.cpp) doesn't have a Render and Update methods, and "relief" this behavior in SetHolographicSpace method using the boolean variable "m_isReadyToRender".

So, If Anyone have a functional independent class (just like the spinningCubeRenderer class) for render text plase can share it with me?.

I also tried to use the class "SampleFPSTextRenderer" from the UWP DirectX App template but I cannot configure

ID2D1Device2* GetD2DDevice() const { return m_d2dDevice.Get(); }
ID2D1DeviceContext* GetD2DDeviceContext() const { return m_d2dContext.Get(); }
ID2D1Bitmap1* GetD2DTargetBitmap() const { return m_d2dTargetBitmap.Get(); }

Sign In or Register to comment.