Render UTextureRenderTarget2D to HUD
Hello (it's my first time here)
I'm trying to render from a SceneCapture2D Camera to the HUD (a minimap). The code I have for the HUD is to draw a crosshair in the middle of the screen. I got that from a tutorial.
I declared my Render Target texture pointer in the header
And initialized it in the constructor of the HUD class like this:
This is how the DrawHUD method looks:
The first part draws the crosshair, that works great.
The second part should draw the minimap, but it doesn't. I tried debugging a bit, the size of the TileItem2 seems to be 0. That doesn't look right but I don't know how to solve it.
asked Sep 27 '14 at 12:46 PM in C++ Programming
You can set a size via the tile item itself
Also, if you obtained the UTextureRenderTarget2D from an ASceneCapture2D you will either have to set the blend mode to SE_BLEND_Opaque or override the pixel format. Not sure if this has to be done before the capture.
answered Sep 28 '14 at 02:37 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here