-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the MotionBuilder plugin with LiveLink role. With the role, y…
…ou can now stream the camera information automaticly. Programmers can now create their own Role and send specific data.
- Loading branch information
Patrick Boutot
committed
Aug 15, 2019
1 parent
f2d7912
commit 64a95e2
Showing
34 changed files
with
1,006 additions
and
439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.IO; | ||
|
||
public class MobuLiveLinkPlugin2016 : MobuLiveLinkPluginBase | ||
{ | ||
public MobuLiveLinkPlugin2016(ReadOnlyTargetRules Target) : base(Target, "2016") | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
|
||
public class MobuLiveLinkPlugin2016Target : MobuLiveLinkPluginTargetBase | ||
{ | ||
public MobuLiveLinkPlugin2016Target(TargetInfo Target) : base(Target, "2016") | ||
{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.IO; | ||
|
||
public abstract class MobuLiveLinkPluginBase : ModuleRules | ||
{ | ||
public MobuLiveLinkPluginBase(ReadOnlyTargetRules Target, string MobuVersionString) : base(Target) | ||
{ | ||
PrivatePCHHeaderFile = "Private/MobuLiveLinkPluginPrivatePCH.h"; | ||
|
||
bEnforceIWYU = false; | ||
bUseRTTI = true; | ||
|
||
PrivateIncludePaths.AddRange(new string[] | ||
{ | ||
Path.Combine(EngineDirectory, "Source/Runtime/Launch/Public"), | ||
Path.Combine(EngineDirectory, "Source/Runtime/Launch/Private"), | ||
Path.Combine(ModuleDirectory, "StreamObjects/Public") | ||
}); | ||
|
||
// Unreal dependency modules | ||
PrivateDependencyModuleNames.AddRange(new string[] | ||
{ | ||
"Core", | ||
"CoreUObject", | ||
"ApplicationCore", | ||
"Projects", | ||
"UdpMessaging", | ||
"LiveLinkInterface", | ||
"LiveLinkMessageBusFramework", | ||
}); | ||
|
||
// Mobu SDK setup | ||
{ | ||
//UE_MOTIONBUILDER2017_INSTALLATIONFOLDER | ||
string MobuInstallFolder = System.Environment.GetEnvironmentVariable("UE_MOTIONBUILDER" + MobuVersionString + "_INSTALLATIONFOLDER"); | ||
if (string.IsNullOrEmpty(MobuInstallFolder)) | ||
{ | ||
MobuInstallFolder = @"C:\Program Files\Autodesk\MotionBuilder " + MobuVersionString; | ||
} | ||
|
||
// Make sure this version of Mobu is actually installed | ||
if (Directory.Exists(MobuInstallFolder)) | ||
{ | ||
PrivateIncludePaths.Add(Path.Combine(MobuInstallFolder, "OpenRealitySDK/include")); | ||
|
||
if (Target.Platform == UnrealTargetPlatform.Win64) // @todo: Support other platforms? | ||
{ | ||
PublicLibraryPaths.Add(Path.Combine(MobuInstallFolder, "OpenRealitySDK/lib/x64")); | ||
|
||
// Mobu library we're depending on | ||
PublicAdditionalLibraries.AddRange(new string[] | ||
{ | ||
"fbsdk.lib", | ||
}); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
public class MobuLiveLinkPlugin2017 : MobuLiveLinkPluginBase | ||
{ | ||
public MobuLiveLinkPlugin2017(ReadOnlyTargetRules Target) : base(Target, "2017") | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
|
||
public abstract class MobuLiveLinkPluginTargetBase : TargetRules | ||
{ | ||
public MobuLiveLinkPluginTargetBase(TargetInfo Target, string InMobuVersionString) : base(Target) | ||
{ | ||
Type = TargetType.Program; | ||
|
||
bShouldCompileAsDLL = true; | ||
LinkType = TargetLinkType.Monolithic; | ||
|
||
Tools.DotNETCommon.Log.TraceLog("MyMessage" + this.Name); | ||
|
||
bool bIsNotForLicensees = false; | ||
string NotForLicenseesFolder = bIsNotForLicensees ? "NotForLicensees" : ""; | ||
|
||
ExeBinariesSubFolder = Path.Combine(NotForLicenseesFolder, "MotionBuilder", InMobuVersionString); | ||
LaunchModuleName = "MobuLiveLinkPlugin" + InMobuVersionString; | ||
|
||
// We only need minimal use of the engine for this plugin | ||
bBuildDeveloperTools = false; | ||
bUseMallocProfiler = false; | ||
bBuildWithEditorOnlyData = true; | ||
bCompileAgainstEngine = false; | ||
bCompileAgainstCoreUObject = true; | ||
bCompileICU = false; | ||
bHasExports = false; | ||
|
||
string ResourcesFolder = Path.GetFullPath(Path.Combine("Programs", NotForLicenseesFolder, "MobuLiveLink/Resources")); | ||
string BinariesDirectory = Path.GetFullPath(Path.Combine("../Binaries", "Win64", NotForLicenseesFolder, "MotionBuilder", InMobuVersionString)); | ||
string Command = "copy /a /b /y /v \"" + ResourcesFolder + "\\*.*\" \"" + BinariesDirectory + "\""; | ||
PostBuildSteps.Add(Command); | ||
} | ||
} | ||
|
||
public class MobuLiveLinkPlugin2017Target : MobuLiveLinkPluginTargetBase | ||
{ | ||
public MobuLiveLinkPlugin2017Target(TargetInfo Target) : base(Target, "2017") | ||
{ } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.IO; | ||
|
||
public class MobuLiveLinkPlugin2018 : MobuLiveLinkPluginBase | ||
{ | ||
public MobuLiveLinkPlugin2018(ReadOnlyTargetRules Target) : base(Target, "2018") | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
|
||
public class MobuLiveLinkPlugin2018Target : MobuLiveLinkPluginTargetBase | ||
{ | ||
public MobuLiveLinkPlugin2018Target(TargetInfo Target) : base(Target, "2018") | ||
{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.IO; | ||
|
||
public class MobuLiveLinkPlugin2019 : MobuLiveLinkPluginBase | ||
{ | ||
public MobuLiveLinkPlugin2019(ReadOnlyTargetRules Target) : base(Target, "2019") | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
|
||
public class MobuLiveLinkPlugin2019Target : MobuLiveLinkPluginTargetBase | ||
{ | ||
public MobuLiveLinkPlugin2019Target(TargetInfo Target) : base(Target, "2019") | ||
{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.