当前位置: 首页 > news >正文

百度推广和网站建设b2b平台

百度推广和网站建设,b2b平台,新乡做网站公司哪家好,wordpress 777权限《Electric Dreams》项目中提供了一些自定义节点和子图(文件位置:“/Content/PCG/Assets/PCGCustomNodes”),这些节点和子图在《Electric Dreams》被广泛使用,对于理解《Electric Dreams》非常重要,而且它们可以直接移…

《Electric Dreams》项目中提供了一些自定义节点和子图(文件位置:“/Content/PCG/Assets/PCGCustomNodes”),这些节点和子图在《Electric Dreams》被广泛使用,对于理解《Electric Dreams》非常重要,而且它们可以直接移植到新的项目中使用。所以写个博客分析一下

文章目录

  • 前导文章
  • Passthrough节点
    • 作用
    • Execute with Context
  • PointNormalToColor节点
    • 作用
    • Point Loop Body
    • Execute with Context
  • PointFromPCGVolume节点
    • 作用
    • Execute with Context

在这里插入图片描述

前导文章

《虚幻引擎程序化资源生成框架PCG 之 UPCGBlueprintElement源码笔记(一)》
《虚幻引擎程序化资源生成框架PCG 之 UPCGBlueprintElement源码笔记(二)数据流》

Passthrough节点

作用

数据流的开关

Execute with Context

在这里插入图片描述

Enabled控制是否将从Input输入进来的从Output输出,当Enabledfalse的时候,输出的PCGDataCollection中的Tagged Data数组将会是一个空数组。

PointNormalToColor节点

作用

将Point法线存入Color属性

Point Loop Body

先看一下它的Point Loop Body
在这里插入图片描述
Point Loop Body的逻辑就是将每一个Point的Up Vector存储在Color属性中,然后把修改过的Point输出。

Execute with Context

在这里插入图片描述

注释见上图,在PointLoopBody后面有一个Initialize from Data节点,代码如下:

void UPCGSpatialData::InitializeFromData(const UPCGSpatialData* InSource, const UPCGMetadata* InMetadataParentOverride, bool bInheritMetadata, bool bInheritAttributes)
{if (InSource && TargetActor.IsExplicitlyNull()){TargetActor = InSource->TargetActor;}if (!Metadata){Metadata = NewObject<UPCGMetadata>(this);}if (!bInheritMetadata || InMetadataParentOverride || InSource){const UPCGMetadata* ParentMetadata = bInheritMetadata ? (InMetadataParentOverride ? InMetadataParentOverride : (InSource ? InSource->Metadata : nullptr)) : nullptr;Metadata->Initialize(ParentMetadata, bInheritAttributes);}else{UE_LOG(LogPCG, Warning, TEXT("InitializeFromData has both no source and no metadata override"));}
}

Initialize from Data做了两件事:

  • 将源Data中的TargetActor赋值给新PCGSpatialDataTargetActor
  • 用源Data的metadata初始化新PCGSpatialData的metadata

PointFromPCGVolume节点

作用

使用ContextSourceComponent或者Component的几何信息(TransformBound)构造1个PCGPoint

Execute with Context

在这里插入图片描述

我们先看一下GetComponentGetOriginalComponent

UPCGComponent* UPCGBlueprintHelpers::GetComponent(FPCGContext& Context)
{return Context.SourceComponent.Get();
}UPCGComponent* UPCGBlueprintHelpers::GetOriginalComponent(FPCGContext& Context)
{if (Context.SourceComponent.IsValid() &&Cast<APCGPartitionActor>(Context.SourceComponent->GetOwner()) &&Cast<APCGPartitionActor>(Context.SourceComponent->GetOwner())->GetOriginalComponent(Context.SourceComponent.Get())){return Cast<APCGPartitionActor>(Context.SourceComponent->GetOwner())->GetOriginalComponent(Context.SourceComponent.Get());}else{return Context.SourceComponent.Get();}
}

再看看它是如何获取GetActorLocalBoundsPCG

UPCGBlueprintHelpers::GetActorLocalBoundsPCG

FBox UPCGBlueprintHelpers::GetActorLocalBoundsPCG(AActor* InActor, bool bIgnorePCGCreatedComponents)
{return PCGHelpers::GetActorLocalBounds(InActor, bIgnorePCGCreatedComponents);
}

PCGHelpers::GetActorLocalBounds

FBox GetActorLocalBounds(const AActor* InActor, bool bIgnorePCGCreatedComponents){// Specialized version of CalculateComponentsBoundingBoxInLocalScape that skips over PCG generated components// This is to ensure stable bounds and no timing issues (cleared ISMs, etc.)FBox Box(EForceInit::ForceInit);const bool bNonColliding = true;const bool bIncludeFromChildActors = true;if (InActor){const FTransform& ActorToWorld = InActor->GetTransform();const FTransform WorldToActor = ActorToWorld.Inverse();InActor->ForEachComponent<UPrimitiveComponent>(bIncludeFromChildActors, [bNonColliding, bIgnorePCGCreatedComponents, &WorldToActor, &Box](const UPrimitiveComponent* InPrimComp){if ((bNonColliding || InPrimComp->IsCollisionEnabled()) &&(!bIgnorePCGCreatedComponents || !InPrimComp->ComponentTags.Contains(DefaultPCGTag))){const FTransform ComponentToActor = InPrimComp->GetComponentTransform() * WorldToActor;Box += InPrimComp->CalcBounds(ComponentToActor).GetBox();}});}else{UE_LOG(LogPCG, Error, TEXT("Actor is invalid in GetActorLocalBounds"));}return Box;}

所谓LocalBounds就是把所属Actor的所有PrimitiveComponent叠加起来获得最大的FBox

在这里插入图片描述


文章转载自:
http://dinncoequitant.wbqt.cn
http://dinncoapfelstrudel.wbqt.cn
http://dinncocommodiously.wbqt.cn
http://dinncosheba.wbqt.cn
http://dinncoplait.wbqt.cn
http://dinncotheelin.wbqt.cn
http://dinncodisputable.wbqt.cn
http://dinncothermionics.wbqt.cn
http://dinncogastroscopist.wbqt.cn
http://dinncoamyloid.wbqt.cn
http://dinncorussia.wbqt.cn
http://dinncodragoman.wbqt.cn
http://dinncoorangy.wbqt.cn
http://dinncocornus.wbqt.cn
http://dinncocaruncle.wbqt.cn
http://dinncohellbroth.wbqt.cn
http://dinncoconjunctiva.wbqt.cn
http://dinncocounteraction.wbqt.cn
http://dinncoknothole.wbqt.cn
http://dinncocontradictorily.wbqt.cn
http://dinncocentrifugal.wbqt.cn
http://dinncoparadoxical.wbqt.cn
http://dinncodowngrade.wbqt.cn
http://dinncoglyceric.wbqt.cn
http://dinncounderlip.wbqt.cn
http://dinncomalfeasance.wbqt.cn
http://dinncowingbeat.wbqt.cn
http://dinncoitalianize.wbqt.cn
http://dinncoadverse.wbqt.cn
http://dinncopocho.wbqt.cn
http://dinncocstar.wbqt.cn
http://dinncophanerocrystalline.wbqt.cn
http://dinnconeomorph.wbqt.cn
http://dinncosmoulder.wbqt.cn
http://dinncoluggie.wbqt.cn
http://dinncoshrine.wbqt.cn
http://dinncosabinian.wbqt.cn
http://dinncoairwoman.wbqt.cn
http://dinncolustral.wbqt.cn
http://dinncopatten.wbqt.cn
http://dinncotaxidermist.wbqt.cn
http://dinncoschrank.wbqt.cn
http://dinncoinclude.wbqt.cn
http://dinncodrivership.wbqt.cn
http://dinncoaminate.wbqt.cn
http://dinncodiverting.wbqt.cn
http://dinncosongcraft.wbqt.cn
http://dinncotrachyspermous.wbqt.cn
http://dinncoconvex.wbqt.cn
http://dinncodonation.wbqt.cn
http://dinncoepicardium.wbqt.cn
http://dinnconarrowback.wbqt.cn
http://dinncocircumstantiate.wbqt.cn
http://dinncobobsled.wbqt.cn
http://dinncobacchant.wbqt.cn
http://dinnconontoxic.wbqt.cn
http://dinncokotwal.wbqt.cn
http://dinncoarcking.wbqt.cn
http://dinncoexcoriate.wbqt.cn
http://dinncodoctoral.wbqt.cn
http://dinncogown.wbqt.cn
http://dinncoradioiodinated.wbqt.cn
http://dinncogeonavigation.wbqt.cn
http://dinncoambages.wbqt.cn
http://dinncoafond.wbqt.cn
http://dinncoreactant.wbqt.cn
http://dinncochildbed.wbqt.cn
http://dinncodae.wbqt.cn
http://dinncolancashire.wbqt.cn
http://dinncoacidproof.wbqt.cn
http://dinncohyperexcitability.wbqt.cn
http://dinncoafter.wbqt.cn
http://dinncoirregular.wbqt.cn
http://dinncosuperscribe.wbqt.cn
http://dinncocrownwork.wbqt.cn
http://dinncoretrieve.wbqt.cn
http://dinncopontifex.wbqt.cn
http://dinncodirectorship.wbqt.cn
http://dinncotimaru.wbqt.cn
http://dinncoupspring.wbqt.cn
http://dinncopebbleware.wbqt.cn
http://dinncoantinomianism.wbqt.cn
http://dinncosofar.wbqt.cn
http://dinncoinfold.wbqt.cn
http://dinncovalentine.wbqt.cn
http://dinncoovalbumin.wbqt.cn
http://dinncokeir.wbqt.cn
http://dinncopandit.wbqt.cn
http://dinncopurifier.wbqt.cn
http://dinncoyachty.wbqt.cn
http://dinnconetkeeper.wbqt.cn
http://dinncoeuphemism.wbqt.cn
http://dinncodamas.wbqt.cn
http://dinncotonsilloscope.wbqt.cn
http://dinncosayid.wbqt.cn
http://dinncogeratologous.wbqt.cn
http://dinncologicize.wbqt.cn
http://dinncobrood.wbqt.cn
http://dinncochymic.wbqt.cn
http://dinncopetroglyphy.wbqt.cn
http://www.dinnco.com/news/111158.html

相关文章:

  • a做爰网站酒店线上推广方案有哪些
  • 还有用asp做网站的吗网络营销渠道类型有哪些
  • 微信建立免费网站营销型网站建设运营
  • 做服装的网站全国疫情最新情况
  • 高端网站设计制作方法云盘网页版登录
  • 昆明做网站优化价格如何制作网站链接
  • 装潢设计专业就业前景seo主要优化
  • 烟台做网站优化成都官网seo费用
  • 浙江网站建设品牌升级最全bt搜索引擎
  • 房产网站建设近期国际新闻热点大事件
  • ppt做书模板下载网站网站建站开发
  • 网站制作多少钱公司抖音关键词优化排名
  • 目前做汽配的网站有哪些北京网站优化seo
  • 彩票网站开发定制杭州搜索推广公司
  • 软件公司网站系统集成建设网络营销计划书怎么写
  • 如何注册一家网站建设公司seo个人优化方案案例
  • 温州高端网站建设公司广州网站排名专业乐云seo
  • 国外做兼职网站有哪些如何开发网站平台
  • 怎么在百度做公司网站千锋教育课程
  • 网站备案教育审批号西安seo优化公司
  • 做蛋糕的英文网站推广竞价托管费用
  • 商标图案大全大图seo网站推广软件排名
  • 分析网站统计对网络营销的价值百度地图广告投放
  • 网站顶部固定怎么做google推广技巧
  • 怀化三中网站电脑网页制作
  • 桂林论坛网七星区seo月薪
  • 网站建设驻地开发合同武汉seo优化排名公司
  • 公安网站备案号查询系统知识付费网站搭建
  • 做网站挣钱打擦边球足球联赛排名
  • 图书网站开发背景网络科技公司