From ba5bdcee4d2e930b005ab2bf4c4ba23cde453539 Mon Sep 17 00:00:00 2001 From: BlueRose <378100977@qq.com> Date: Fri, 22 Dec 2023 11:46:53 +0800 Subject: [PATCH] vault backup: 2023-12-22 11:46:53 --- .../plugins/various-complements/data.json | 8 ++++ .../RenderFeature/UE5 3DGaussians 插件笔记.md | 46 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 03-UnrealEngine/Rendering/RenderFeature/UE5 3DGaussians 插件笔记.md diff --git a/.obsidian/plugins/various-complements/data.json b/.obsidian/plugins/various-complements/data.json index 09e6028..df499a8 100644 --- a/.obsidian/plugins/various-complements/data.json +++ b/.obsidian/plugins/various-complements/data.json @@ -54,6 +54,14 @@ "lastUpdated": 1703147471771 } } + }, + "c++17带来的代码变化": { + "c++17带来的代码变化": { + "internalLink": { + "count": 1, + "lastUpdated": 1703216792464 + } + } } } } \ No newline at end of file diff --git a/03-UnrealEngine/Rendering/RenderFeature/UE5 3DGaussians 插件笔记.md b/03-UnrealEngine/Rendering/RenderFeature/UE5 3DGaussians 插件笔记.md new file mode 100644 index 0000000..a06764d --- /dev/null +++ b/03-UnrealEngine/Rendering/RenderFeature/UE5 3DGaussians 插件笔记.md @@ -0,0 +1,46 @@ +--- +title: UE5 3DGaussians 插件笔记 +date: 2023-12-22 11:44:33 +excerpt: +tags: +rating: ⭐ +--- + +# c++ +插件的c++部分主要实现了 + + + +## 相关代码 +```c++ +struct FThreeDGaussiansData +{ + GENERATED_BODY() + +public: + FThreeDGaussiansData() {} + + FThreeDGaussiansData(const TArray& textures, const FVector3f& in_minPos, const FVector3f& in_maxPos) + { + minPos = in_minPos; + maxPos = in_maxPos; + textureWidth = textures[0]->GetSizeX(); + position = textures[0]; + rotation = textures[1]; + scaleAndOpacity = textures[2]; + + for (int i = 3; i < textures.Num(); i++) + { + sh.Add(textures[i]); + } + } + + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "3D Gaussians") FVector3f minPos = FVector3f::Zero(); + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "3D Gaussians") FVector3f maxPos = FVector3f::Zero(); + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "3D Gaussians") int32 textureWidth = -1; + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "3D Gaussians") UTexture2D* position; + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "3D Gaussians") UTexture2D* rotation; + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "3D Gaussians") UTexture2D* scaleAndOpacity; + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "3D Gaussians") TArray sh; +}; +``` \ No newline at end of file