Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 129 additions & 0 deletions HoloLens/08_MixedContent/08_MixedContent.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProjectGuid>{949678AC-9F53-422E-98DA-8457636E520D}</ProjectGuid>
<OutputType>AppContainerExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MixedContent</RootNamespace>
<AssemblyName>MixedContent</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PackageCertificateKeyFile>Mutant_TemporaryKey.pfx</PackageCertificateKeyFile>
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;DISABLE_XAML_GENERATED_MAIN</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
<Content Include="Data\Animations\Mutant_Block_LY.ani" />
<Content Include="Data\Animations\Mutant_HitHead_LY.ani" />
<Content Include="Data\Animations\Mutant_Throw_LY.ani" />
<Content Include="Data\Animations\Mutant_Wave_LY.ani" />
<Content Include="Data\Models\Mutant.mdl" />
<Content Include="Data\Animations\Mutant_Death.ani" />
<Content Include="Data\Animations\Mutant_HipHop1.ani" />
<Content Include="Data\Animations\Mutant_Idle0.ani" />
<Content Include="Data\Animations\Mutant_Idle1.ani" />
<Content Include="Data\Animations\Mutant_Jump.ani" />
<Content Include="Data\Animations\Mutant_Jump1.ani" />
<Content Include="Data\Animations\Mutant_JumpAttack.ani" />
<Content Include="Data\Animations\Mutant_JumpStop.ani" />
<Content Include="Data\Animations\Mutant_Kick.ani" />
<Content Include="Data\Animations\Mutant_Punch.ani" />
<Content Include="Data\Animations\Mutant_Run.ani" />
<Content Include="Data\Animations\Mutant_Swipe.ani" />
<Content Include="Data\Animations\Mutant_Walk.ani" />
<Content Include="Data\Animations\Mutant_JumpAttack_RM.ani" />
<None Include="project.json" />
</ItemGroup>
<ItemGroup>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="MainPage.xaml.cs">
<DependentUpon>MainPage.xaml</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Content Include="Data\License.txt" />
<Content Include="Data\Materials\mutant_M.xml">
<SubType>Designer</SubType>
</Content>
<Content Include="Data\Textures\Mutant_diffuse.jpg" />
<Content Include="Data\Textures\Mutant_normal.jpg" />
<Content Include="Properties\Default.rd.xml" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s). NuGet Package Restore will attempt to automatically find or download them when you build this project in Visual Studio. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(ProjectDir)\project.lock.json')" Text="$([System.String]::Format('$(ErrorText)', 'project.lock.json'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<AppxPackageSigningEnabled>true</AppxPackageSigningEnabled>
</PropertyGroup>
</Project>
6 changes: 6 additions & 0 deletions HoloLens/08_MixedContent/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Application
x:Class="MixedContent.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

</Application>
82 changes: 82 additions & 0 deletions HoloLens/08_MixedContent/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
using System;
using Windows.ApplicationModel.Activation;
using Windows.ApplicationModel.Core;
using Windows.UI.Core;
using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Urho;
using Application = Windows.UI.Xaml.Application;


namespace MixedContent
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
sealed partial class App : Application
{
public static ApplicationView ViewXaml;
public static ApplicationView View3D;

/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
InitializeComponent();
}



/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used when the application is launched to open a specific file, to display
/// search results, and so forth.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
InitializeUhroSharp();
}

private void InitializeUhroSharp()
{
Frame rootFrame = Window.Current.Content as Frame;

// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
{
rootFrame = new Frame();
Window.Current.Content = rootFrame;

rootFrame.Navigate(typeof(MainPage));

//remember Xaml view
ViewXaml = ApplicationView.GetForCurrentView();

//create an urho view we can switch to
Create3DView();

}

Window.Current.Activate();
}

private async void Create3DView()
{
var viewSource = new UrhoAppViewSource<MutantApp>(new ApplicationOptions("Data"));
CoreApplicationView urhoView = CoreApplication.CreateNewView(viewSource);

View3D = null;

await urhoView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
{
View3D = ApplicationView.GetForCurrentView();
CoreWindow.GetForCurrentThread().Activate();
});
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HoloLens/08_MixedContent/Assets/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
36 changes: 36 additions & 0 deletions HoloLens/08_MixedContent/Data/License.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
--------------------------
note:
--------------------------
There is no requirement in the Mixamo License to provide any license information with any content.
However, for the purpose of learning, I have provided some pertinent information below.

--------------------------
info:
--------------------------
website: https://www.mixamo.com/
model: Mutant
license: http://www.adobe.com/legal/terms.html

--------------------------
license short explanation (from the forum):
--------------------------
Jeanette Mathews
May 31, 2016 07:24

Thanks for the feedback, and glad to hear the tutorial was useful getting you started. :)

Yes, all Fuse and Mixamo content is available for commercial and non commercial use, royalty free.
You can edit them to your hearts content!

The only requirement we have is that the final product you are creating must have our content in an 'embedded', non-editable format.
So you can't edit the characters and sell them directly, because then other people have access to the character 3d data files.
Games, movies, 3d prints, 2D illustrations, or any other file format where the character/animation files are not-editable is fine.
Selling characters/animations directly is against the TOS/EULA.

Hope that helps clarify!

reference: https://community.mixamo.com/hc/en-us/community/posts/211496987-Mixamo-Store-Characters-Licence

--------------------------


9 changes: 9 additions & 0 deletions HoloLens/08_MixedContent/Data/Materials/mutant_M.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<material>
<technique name="Techniques/DiffNormal.xml" />
<texture unit="diffuse" name="Textures/Mutant_diffuse.jpg" />
<texture unit="normal" name="Textures/Mutant_normal.jpg" />
<parameter name="MatDiffColor" value="1 1 1 1" />
<parameter name="MatSpecColor" value="0.2 0.2 0.2 6.15385" />
<parameter name="MatEmissiveColor" value="0 0 0 1" />
</material>
Binary file added HoloLens/08_MixedContent/Data/Models/Mutant.mdl
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions HoloLens/08_MixedContent/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Page
x:Class="MixedContent.MainPage"
IsTabStop="false"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="#FFFFFF">

<SwapChainPanel x:Name="DXSwapChainPanel">
<Grid x:Name="ExtendedSplashGrid" Background="#FFFFFF" HorizontalAlignment="Center">
<Button Content="3D" Width="200" Height="160" FontSize="100" Foreground="BlueViolet" Click="OnSwitch2UrhoButton_Clicked" ></Button>
</Grid>
</SwapChainPanel>
</Page>
26 changes: 26 additions & 0 deletions HoloLens/08_MixedContent/MainPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;


namespace MixedContent
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainPage : Page
{
public MainPage()
{
InitializeComponent();
NavigationCacheMode = NavigationCacheMode.Required;
}

private async void OnSwitch2UrhoButton_Clicked(object sender, RoutedEventArgs e)
{
await ApplicationViewSwitcher.SwitchAsync(App.View3D.Id);
}
}
}
13 changes: 13 additions & 0 deletions HoloLens/08_MixedContent/Metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<SampleMetadata>
<ID>94701dc2-1607-49e4-9fad-66a10e6d422b</ID>
<IsFullApplication>false</IsFullApplication>
<HideZip>true</HideZip>
<Level>Beginning</Level>
<Tags>HoloLens, Graphics, Games, UrhoSharp</Tags>
<SupportedPlatforms>UWP, HoloLens</SupportedPlatforms>
<LicenseRequirement>Indie</LicenseRequirement>
<Gallery>true</Gallery>
<Brief>A simple hologram with skeletal animations. It reacts to voice commands such as 'jump', 'run' etc.</Brief>
</SampleMetadata>

28 changes: 28 additions & 0 deletions HoloLens/08_MixedContent/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
<Identity Name="Mutant" Publisher="CN=Egor" Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="a9a4ad16-2ce7-4536-94a9-407a62e84b75" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>Mutant</DisplayName>
<PublisherDisplayName>Egor</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Holographic" MinVersion="10.0.10240.0" MaxVersionTested="10.0.10586.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Mutant.AppView">
<uap:VisualElements DisplayName="Mutant" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Mutant" BackgroundColor="#464646">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
</uap:DefaultTile>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<DeviceCapability Name="microphone" />
</Capabilities>
</Package>
Loading