Skip to content
Snippets Groups Projects
Commit fadbcfc3 authored by Sebastian Pape's avatar Sebastian Pape
Browse files

More debugging. Removed Logs.

parent 86bfd750
No related branches found
No related tags found
1 merge request!4Develop
......@@ -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));
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment