I basicly want to create a crosshair, on the center of the screen, that acts like a holographic dot. In other words, the crosshair should be projected from the middle of the HUD onto the envirronment, as shown by the image below (courtesy of UDN) .
[shot]http://udn.epicgames.com/Three/rsrc/Three/CanvasTechnicalGuide/mouse_reticle.jpg[/shot]
Excerpt of my HUD code:
so my question is, How do I do it, what exactly do I have to fill in? my crosshair texture is OC_crosshair, its dimensions are 64x64 and it needs to be rescaled to 48x48.
(X and Y in canvas.SetPos are set to the center of the screen)
thanks in advance.
[shot]http://udn.epicgames.com/Three/rsrc/Three/CanvasTechnicalGuide/mouse_reticle.jpg[/shot]
Excerpt of my HUD code:
Code:
Canvas.SetPos(X,Y); Canvas.DrawTile(Texture2D'OC_HUD.crosshair', 48, 48, 0, 0, 64, 64); Canvas.DeProject( ????? , ???? , ???? );
(X and Y in canvas.SetPos are set to the center of the screen)
thanks in advance.
Comment