private void CreateLabels() { // Add some text labels to the scene var textA = new TextSceneEntity("Teeny Block", Color.FromArgb(255, 0, 225, 0), new Vector3(75f, 100f, 75f), TextDisplayMode.FacingCameraAlways, 9, "Segoe UI"); var textB = new TextSceneEntity("Big Block", Color.FromArgb(255, 255, 255, 255), new Vector3(-50f, 200f, -50f), TextDisplayMode.FacingCameraAlways, 10, "Tahoma"); sciChart3DSurface.Viewport3D.RootEntity.Children.Add(textA); sciChart3DSurface.Viewport3D.RootEntity.Children.Add(textB); }
private void CreateLabels() { // Add some text labels to the scene var textA = new TextSceneEntity("Teeny Block", Color.FromArgb(255, 0, 225, 0), new Vector3(75f, 100f, 75f), TextDisplayMode.FacingCameraAlways, 9, "Segoe UI"); var textB = new TextSceneEntity("Big Block", Color.FromArgb(255, 255, 255, 255), new Vector3(-50f, 200f, -50f), TextDisplayMode.FacingCameraAlways, 10, "Tahoma"); // NOTE: Commented code below is the example of treating the Location value // as 3D point in Data Coordinates Space but not in World Coordinates Space //textA = new TextSceneEntity("Teeny Block", Color.FromArgb(255, 0, 225, 0), new Vector3(6.5f, 2.0f, 6.5f), TextDisplayMode.FacingCameraAlways, 9, "Segoe UI"); //textB = new TextSceneEntity("Big Block", Color.FromArgb(255, 255, 255, 255), new Vector3(4.0f, 4.0f, 4.0f), TextDisplayMode.FacingCameraAlways, 10, "Tahoma"); sciChart3DSurface.Viewport3D.RootEntity.Children.Add(textA); sciChart3DSurface.Viewport3D.RootEntity.Children.Add(textB); }