-
-
sfernandez
Site Admin
- Posts: 2908
- Joined:
Cessna Gauges
This XAML was created for the Unity promotional video shown in our web:
All the gauges are rendered to a RenderTexture, then they are used in one of the plane cockpit mesh materials with the appropriate texture mapping. Here is a screenshot of the texture:
Find the sources attached to this post
All the gauges are rendered to a RenderTexture, then they are used in one of the plane cockpit mesh materials with the appropriate texture mapping. Here is a screenshot of the texture:
Find the sources attached to this post

- Attachments
-
- Gauges.zip
- (53.59 KiB) Downloaded 682 times
Re: Cessna Gauges
Impressive!
Some questions:
-What editor did you use to create those gauges?
-How do you set the pivot point of a needle?
-Can you post the source which sets the needle positions?
Some questions:
-What editor did you use to create those gauges?
-How do you set the pivot point of a needle?
-Can you post the source which sets the needle positions?
-
-
sfernandez
Site Admin
- Posts: 2908
- Joined:
Re: Cessna Gauges
ThanksImpressive!

These gauges were created by an artist using Adobe Illustrator, imported to Blend, then adjusted and optimized there so they can be animated.-What editor did you use to create those gauges?
Every UI element defines a RenderTransformOrigin point and a RenderTransform transformation matrix. With these 2 properties you can transform any UI element as you wish. With Blend you can adjust the RenderTransformOrigin visually to the pivot position you want.-How do you set the pivot point of a needle?
The xaml contains all the animations that are used to create the video. You can change the needle rotation using a similar animation:-Can you post the source which sets the needle positions?
Code: Select all
<Storyboard x:Key="EncodingAnim" RepeatBehavior="Forever">
<DoubleAnimationUsingKeyFrames
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"
Storyboard.TargetName="E_Arrow10">
<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="135">
<EasingDoubleKeyFrame.EasingFunction>
<SineEase EasingMode="EaseIn"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
Code: Select all
Noesis.UIElement arrow = FindName<Noesis.UIElement>("E_Arrow10");
Noesis.RotateTransform t = arrow.GetRenderTransform().As<Noesis.RotateTransform>();
t.SetAngle(135.0f);
Who is online
Users browsing this forum: No registered users and 2 guests