[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update UnrealCV to v0.3.0 #42

Merged
merged 84 commits into from
Dec 16, 2016
Merged
Changes from 1 commit
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
bde38ca
Update TcpServer to support 4.13.
qiuwch Oct 23, 2016
6ee03f1
Add ReadTheDocs documentation.
qiuwch Nov 1, 2016
b0b3cdc
Update UnrealCV docs.
qiuwch Nov 2, 2016
55d12c0
Update doc.
qiuwch Nov 3, 2016
9b89dc3
Add scripts to publish unrealcv to github releases.
qiuwch Nov 4, 2016
ad2a43f
Update doc structure, add content and images. The doc is more cleaner…
qiuwch Nov 6, 2016
9ff0c59
Add doxygen config file.
qiuwch Nov 6, 2016
212dfb3
Update doxygen config, from full path to relative path. Minor update …
qiuwch Nov 7, 2016
c1bef7d
Enable materials flag in the ShowFlags, so that the leaves will be ac…
qiuwch Nov 8, 2016
e35bdaf
Merge branch 'hotfix/leaf-accuracy'
qiuwch Nov 8, 2016
4be1246
Clean trash code comment.
qiuwch Nov 8, 2016
4df7526
Fix multi-LOD support.
qiuwch Nov 8, 2016
5942a91
Add markdown admonition plugin. Add edit on github button. Update sid…
qiuwch Nov 8, 2016
db82bd6
Update docs.
qiuwch Nov 8, 2016
b65c95c
Clean up the portal of test script.
qiuwch Nov 8, 2016
3b5e12f
Add testsuite and merge latest test scripts to unrealcv repo.
qiuwch Nov 8, 2016
ad3f80b
Fix compatible issue with CityScene.
qiuwch Nov 9, 2016
a17545d
Store the default EngineShowFlags for switching back to lit.
qiuwch Nov 10, 2016
0700385
Minor update to ObjectPainter.
qiuwch Nov 10, 2016
82ae842
Add support for CineCameraActor.
qiuwch Nov 11, 2016
4d1bd8d
Add vset /action/game/pause.
qiuwch Nov 11, 2016
d01de31
Replace transparent material to opaque material to fix the depth of t…
qiuwch Nov 11, 2016
28df067
Fix the missing module for CineCameraActor.
qiuwch Nov 11, 2016
2885f67
Fix color mapping is empty when objects have not been painted.
qiuwch Nov 11, 2016
12e2164
Minor update to test scripts. Move the test platform from unittest to…
qiuwch Nov 16, 2016
df0867e
Add GetGameWorld to UE4CVServer.
qiuwch Nov 16, 2016
c1da506
Replace GWorld with GetGameWorld().
qiuwch Nov 21, 2016
04fc3d3
Add a `vrun` command to execute UE4 built-in commands.
qiuwch Nov 21, 2016
1765894
Fix filename of ScreenCapture command.
qiuwch Nov 21, 2016
a2c94ff
Make the visibility of scene components controllable by users.
qiuwch Nov 21, 2016
49ae07b
Merge branch '4.13' into urbancity
qiuwch Nov 21, 2016
d13743d
Add README file to document the structure of the test code.
qiuwch Nov 26, 2016
1b7b567
Reorganize test scripts according to the structure described in the R…
qiuwch Nov 26, 2016
974a362
Merge test_server.py with test_connection.py.
qiuwch Nov 26, 2016
b540af9
Minor update.
qiuwch Nov 26, 2016
1e86a09
Merge pull request #36 from qiuwch/4.13
qiuwch Nov 26, 2016
a8ade7d
Merge pull request #37 from qiuwch/feature/test-script
qiuwch Nov 26, 2016
82cadee
Merge branch 'develop' into doc
qiuwch Nov 27, 2016
3c35b5f
Reorganize the docs of unrealcv, seperate into game and plugin mode, …
qiuwch Nov 27, 2016
8ccf191
Add a requirement file to specify the mkdocs version. Early version h…
qiuwch Nov 27, 2016
6a834f9
Fix path of images, minor update.
qiuwch Nov 27, 2016
7683b80
Fix warning message in visual studio.
qiuwch Nov 30, 2016
8b668a4
Update docs.
qiuwch Dec 1, 2016
5f26107
Update Doxygen configuration to include a homepage.
qiuwch Dec 1, 2016
0798176
Update docs.
qiuwch Dec 1, 2016
6513a98
Update navigation menu.
qiuwch Dec 1, 2016
166ab2f
Fix crash caused by 1. Invalid GameWorld pointer 2. Unhandled socket …
qiuwch Dec 1, 2016
547b987
Merge branch 'develop' of github.com:qiuwch/unrealcv into develop
qiuwch Dec 1, 2016
4264a08
GetStaticMesh() is a new function to replace StaticMesh in 4.14. Add…
qiuwch Dec 1, 2016
2feac30
Merge branch 'develop' of github.com:qiuwch/unrealcv into develop
qiuwch Dec 1, 2016
c175f92
Fix compilation warning of Linux.
qiuwch Dec 1, 2016
a2d0188
Minor update to Makefile.
qiuwch Dec 1, 2016
ed4c03d
Add configuration file for UE4CVServer.
qiuwch Dec 1, 2016
2761150
Remove trailing whitespace from all code files.
qiuwch Dec 1, 2016
6f14ba9
Merge branch 'feature/server-config' into develop
qiuwch Dec 1, 2016
2f72c40
Fix compilation error.
qiuwch Nov 26, 2016
4f0bd8b
Merge branch 'feature/release-script' into develop
qiuwch Dec 2, 2016
7c84257
Merge branch 'doc' into develop
qiuwch Dec 2, 2016
dae310a
Update Makefile, make it more useful.
qiuwch Dec 3, 2016
43717a3
Simplify build-plugin.py.
qiuwch Dec 3, 2016
b60b961
Add macro check WITH_EDITOR to see whether code should be compiled.
qiuwch Dec 3, 2016
9d6315c
Update plugin version.
qiuwch Dec 3, 2016
ebe849c
Ignore built folder.
qiuwch Dec 3, 2016
79818e7
Update python scripts, Add a Makefile for some development tasks.
qiuwch Dec 3, 2016
0cd54fb
Merge branch '4.13' into develop
qiuwch Dec 6, 2016
67e0883
Ignore built folder.
qiuwch Dec 8, 2016
8770606
Merge branch 'feature/build-script' into develop
qiuwch Dec 8, 2016
a871b27
Merge branch 'develop' of github.com:qiuwch/unrealcv into develop
qiuwch Dec 8, 2016
cfec681
Fix an error message that will prevent packaging from editor.
qiuwch Dec 14, 2016
3de0138
Merge branch 'urbancity' into develop
qiuwch Dec 14, 2016
8512ff5
Add OpaqueMaterial to fix the depth of transparent material.
qiuwch Dec 14, 2016
98b3f44
Add a test for object mask.
qiuwch Dec 14, 2016
23f9881
Add build script for windows.
qiuwch Dec 14, 2016
350d889
Minor update to build.bat.
qiuwch Dec 15, 2016
46a1b1c
Update compile scripts for users.
qiuwch Dec 16, 2016
6b92075
Add a python script to get plugin version.
qiuwch Dec 16, 2016
9b05573
Add a make command to package binaries.
qiuwch Dec 16, 2016
8fead9a
Delete trash files.
qiuwch Dec 16, 2016
ff26573
Remove GWorld from AliasHandler.cpp.
qiuwch Dec 16, 2016
529d72f
Fix the platform check for windows.
qiuwch Dec 16, 2016
63a3ad0
Fix gituitl.py
qiuwch Dec 16, 2016
787eb45
Minor update to Makefile.
qiuwch Dec 16, 2016
acd4eee
Update docs from gitbook.
qiuwch Dec 16, 2016
e4f3ddb
Update Makefile to include UE4Version.
qiuwch Dec 16, 2016
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
Prev Previous commit
Next Next commit
Add support for CineCameraActor.
  • Loading branch information
qiuwch committed Nov 11, 2016
commit 82ae8425ebfc17f097b7a05bc1823a6aa2ab4b40
52 changes: 45 additions & 7 deletions Source/UnrealCV/Private/Commands/CameraHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "PlayerViewMode.h"
#include "UE4CVServer.h"
#include "CaptureManager.h"
#include "CineCameraActor.h"

FString GetDiskFilename(FString Filename)
{
Expand Down Expand Up @@ -158,10 +159,28 @@ FExecStatus FCameraCommandHandler::GetCameraRotation(const TArray<FString>& Args
{
if (Args.Num() == 1)
{
int32 CameraId = FCString::Atoi(*Args[0]); // TODO: Add support for multiple cameras
// FRotator CameraRotation = this->Character->GetActorRotation(); // We need the rotation of the controller
APawn* Pawn = FUE4CVServer::Get().GetPawn();
FRotator CameraRotation = Pawn->GetControlRotation();
bool bIsMatinee = false;

FRotator CameraRotation;
ACineCameraActor* CineCameraActor = nullptr;
for (AActor* Actor : GWorld->GetCurrentLevel()->Actors)
{
// if (Actor && Actor->IsA(AMatineeActor::StaticClass())) // AMatineeActor is deprecated
if (Actor && Actor->IsA(ACineCameraActor::StaticClass()))
{
bIsMatinee = true;
CameraRotation = Actor->GetActorRotation();
break;
}
}

if (!bIsMatinee)
{
int32 CameraId = FCString::Atoi(*Args[0]); // TODO: Add support for multiple cameras
APawn* Pawn = FUE4CVServer::Get().GetPawn();
CameraRotation = Pawn->GetControlRotation();
}

FString Message = FString::Printf(TEXT("%.3f %.3f %.3f"), CameraRotation.Pitch, CameraRotation.Yaw, CameraRotation.Roll);

return FExecStatus::OK(Message);
Expand All @@ -173,9 +192,28 @@ FExecStatus FCameraCommandHandler::GetCameraLocation(const TArray<FString>& Args
{
if (Args.Num() == 1)
{
int32 CameraId = FCString::Atoi(*Args[0]); // TODO: Add support for multiple cameras
APawn* Pawn = FUE4CVServer::Get().GetPawn();
FVector CameraLocation = Pawn->GetActorLocation();
bool bIsMatinee = false;

FVector CameraLocation;
ACineCameraActor* CineCameraActor = nullptr;
for (AActor* Actor : GWorld->GetCurrentLevel()->Actors)
{
// if (Actor && Actor->IsA(AMatineeActor::StaticClass())) // AMatineeActor is deprecated
if (Actor && Actor->IsA(ACineCameraActor::StaticClass()))
{
bIsMatinee = true;
CameraLocation = Actor->GetActorLocation();
break;
}
}

if (!bIsMatinee)
{
int32 CameraId = FCString::Atoi(*Args[0]); // TODO: Add support for multiple cameras
APawn* Pawn = FUE4CVServer::Get().GetPawn();
CameraLocation = Pawn->GetActorLocation();
}

FString Message = FString::Printf(TEXT("%.3f %.3f %.3f"), CameraLocation.X, CameraLocation.Y, CameraLocation.Z);

return FExecStatus::OK(Message);
Expand Down