How to Draw Heads up Display (HUD) on the Screen using OpenGL

1982
3
02-26-2016 03:55 PM
AlinmamisOlan
New Contributor

Hi, I am using ArcGIS .NET SDK version 10.2.7. I want to draw a HUD on the 3D Scene. I found an example in Esri's web site. But it's for version 9.3 and it does not work on the current version. At leat can you give an example on how to use OpenGL with ArcGIS. Thanks.

Tags (2)
0 Kudos
3 Replies
dotMorten_esri
Esri Frequent Contributor

You can simply use XAML to overlay elements on top of the SceneView.

Simple example:

<Grid>
  <esri:SceneView />
  <!--Create red box at the center -->
  <Border Width="100" Height="100" BorderThickness="2" BorderBrush="Red"
      HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid>

On a side note, the .NET Runtime uses DirectX, not OpenGL to render, and there's no direct hook into that rendering pipeline.

AlinmamisOlan
New Contributor

Can I draw this box using commands? And can I draw dynamic lines on the screen? Thanks.

0 Kudos
dotMorten_esri
Esri Frequent Contributor

Anything you can do in XAML you can also do in code. Sounds like you just need to get started with understanding XAML. There are plenty of WPF tutorials out there that I would suggest you go through first.

For example: Walkthrough: Getting Started with WPF

0 Kudos