Skip to content

Commit

Permalink
Add PCG blueprint node
Browse files Browse the repository at this point in the history
  • Loading branch information
j9liu committed Oct 10, 2023
1 parent d5f2339 commit 0910807
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Binary file added Content/ApplyFoliageMask.uasset
Binary file not shown.
Binary file modified Content/GenerateFoliageUtility.uasset
Binary file not shown.
3 changes: 3 additions & 0 deletions Source/CesiumRuntime/Private/CesiumGltfComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ class UCesiumGltfComponent : public USceneComponent {
UPROPERTY(EditAnywhere, Category = "Rendering", BlueprintReadWrite)
UTexture2D* RasterTexture;

UPROPERTY(EditAnywhere, Category = "Rendering", BlueprintReadWrite)
UTexture2D* FoliageMask;

private:
UPROPERTY()
UTexture2D* Transparent1x1 = nullptr;
Expand Down
4 changes: 2 additions & 2 deletions Source/CesiumRuntime/Private/Python/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse

sam = LangSAM()
text_prompt = "tree"
text_prompt = "forest"

parser = argparse.ArgumentParser(description='Parse filename')
parser.add_argument("--input")
Expand All @@ -13,7 +13,7 @@
input_value = args.input
output_value = args.output

sam.predict(input_value, text_prompt, box_threshold=0.5, text_threshold=1.0)
sam.predict(input_value, text_prompt, box_threshold=0.4, text_threshold=0.8)
sam.show_anns(
cmap='Greys_r',
add_boxes=False,
Expand Down

0 comments on commit 0910807

Please sign in to comment.