diff --git a/Source/CAVEOverlay/Private/CAVEOverlayController.cpp b/Source/CAVEOverlay/Private/CAVEOverlayController.cpp index 8d4bb2b137058d36550f22563312edaf13407bf4..b3f224aafcb43a43fc95acb9577dec41c4b81d67 100644 --- a/Source/CAVEOverlay/Private/CAVEOverlayController.cpp +++ b/Source/CAVEOverlay/Private/CAVEOverlayController.cpp @@ -3,7 +3,7 @@ #include "CAVEOverlayController.h" -DEFINE_LOG_CATEGORY(CAVEOverlayLog); +//DEFINE_LOG_CATEGORY(CAVEOverlayLog); template<std::size_t SIZE> bool containsFString(const std::array<FString, SIZE> &a, const FString &s) { for (FString cs : a) { @@ -24,7 +24,7 @@ UStaticMeshComponent* ACAVEOverlayController::createMeshComponent(const FName &n template<typename T> bool loadAsset(const FString &path, T* &result) { ConstructorHelpers::FObjectFinder<T> loader(*path); result = loader.Object; - if(!loader.Succeeded()) UE_LOG(CAVEOverlayLog, Error, TEXT("Could not find %s. Have you renamed it?"), *path); + //if(!loader.Succeeded()) UE_LOG(CAVEOverlayLog, Error, TEXT("Could not find %s. Have you renamed it?"), *path); return loader.Succeeded(); } @@ -39,7 +39,7 @@ ACAVEOverlayController::ACAVEOverlayController() if (WidgetClassFinder.Succeeded()) { overlay_class_ = WidgetClassFinder.Class; } else { - UE_LOG(CAVEOverlayLog, Error, TEXT("Could not find the DoorOverlay class. Have you renamed it?")); + //UE_LOG(CAVEOverlayLog, Error, TEXT("Could not find the DoorOverlay class. Have you renamed it?")); } //Creation of subcomponents @@ -124,7 +124,7 @@ void ACAVEOverlayController::SetDoorMode(DOOR_MODE m) } if (screen_type_ == SCREEN_NORMAL) overlay_->BlackBox->SetRenderScale(FVector2D(0, 1)); //no overlay - UE_LOG(CAVEOverlayLog, Log, TEXT("Switched door state to '%s'. New opening width is %f."), *door_mode_names_[door_current_mode_], door_current_opening_width_absolute_); + //UE_LOG(CAVEOverlayLog, Log, TEXT("Switched door state to '%s'. New opening width is %f."), *door_mode_names_[door_current_mode_], door_current_opening_width_absolute_); overlay_->CornerText->SetText(FText::FromString(door_mode_names_[door_current_mode_])); } @@ -164,9 +164,6 @@ void ACAVEOverlayController::BeginPlay() player_pawn_ = Cast<AVirtualRealityPawn>(GetWorld()->GetFirstPlayerController()->GetPawn()); refreshPawnComponents(); - - //Debugging - UE_LOG(CAVEOverlayLog, Error, TEXT("Tape: %p, Sign: %p"), tape_material_dynamic_, sign_material_dynamic_); } float ACAVEOverlayController::calculateOpacityFromPosition(FVector position) { @@ -228,9 +225,6 @@ void ACAVEOverlayController::Tick(float DeltaTime) bool flystick_in_door = positionInDoorOpening(flystick_position); float sign_opacity = calculateOpacityFromPosition(flystick_position); - //Debugging - UE_LOG(CAVEOverlayLog, Error, TEXT("Fly: %p, Pos: (%f,%f,%f), Opacity: %f"), flystick, flystick_position.X, flystick_position.Y, flystick_position.Z, sign_opacity); - sign_negative_x->SetRelativeLocation(FVector(-wall_distance_, flystick_position.Y, flystick_position.Z)); sign_negative_y->SetRelativeLocation(FVector(flystick_position.X, -wall_distance_, flystick_position.Z)); sign_positive_x->SetRelativeLocation(FVector(+wall_distance_, flystick_position.Y, flystick_position.Z)); diff --git a/Source/CAVEOverlay/Public/CAVEOverlayController.h b/Source/CAVEOverlay/Public/CAVEOverlayController.h index dabd850f425014e4fcb3951b3c2e12f7f9d500f2..f9de65df68fa3ad4a65d4550d1b132997dfae10a 100644 --- a/Source/CAVEOverlay/Public/CAVEOverlayController.h +++ b/Source/CAVEOverlay/Public/CAVEOverlayController.h @@ -23,7 +23,7 @@ #include "DisplayCluster/Public/DisplayClusterSceneComponent.h" #include "CAVEOverlayController.generated.h" -DECLARE_LOG_CATEGORY_EXTERN(CAVEOverlayLog, Log, All); +//DECLARE_LOG_CATEGORY_EXTERN(CAVEOverlayLog, Log, All); UCLASS() class CAVEOVERLAY_API ACAVEOverlayController : public AActor