Commit 8c7671c7 by wester

tileset debug

parent 311c1bbf
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -27,6 +27,8 @@ void ATilesetActor::BeginPlay() ...@@ -27,6 +27,8 @@ void ATilesetActor::BeginPlay()
rootTileset = new FTileContent(); rootTileset = new FTileContent();
rootTileset->url = relativeURL; rootTileset->url = relativeURL;
UE_LOG(TILES, Error, TEXT("Tileset load %d: %s %s"), (int)GetWorld()->IsServer(), *relativeURL, *host);
//UE_LOG(TILES, Error, TEXT("Tileset load : %s %s"), *relativeURL, *host);
UTileDownloader *downloader = NewObject<UTileDownloader>(UTileDownloader::StaticClass()); UTileDownloader *downloader = NewObject<UTileDownloader>(UTileDownloader::StaticClass());
downloader->GetTileContent(this, rootTileset, host); downloader->GetTileContent(this, rootTileset, host);
...@@ -548,7 +550,7 @@ float FBoundingVolume::getDistanceTo(FVector Position, FMatrix bouindingTransfor ...@@ -548,7 +550,7 @@ float FBoundingVolume::getDistanceTo(FVector Position, FMatrix bouindingTransfor
else if (region.Num() == 6) { else if (region.Num() == 6) {
// WGS84 // WGS84
//TODO FIXME is currently spher distance //TODO FIXME is currently spher distance
//UE_LOG(TILES, Error, TEXT("Region distance is not implemented")); //UE_LOG(TILES, Error, TEXT("Region distance is not imyplemented"));
FVector Center = FVector(0, 0, 6378137); FVector Center = FVector(0, 0, 6378137);
double dist = (Position - Center).Size(); double dist = (Position - Center).Size();
distance = dist; distance = dist;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment