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

网站建设排名公司哪家好做网站的公司需要什么资质

网站建设排名公司哪家好,做网站的公司需要什么资质,wordpress 单页面 主题,网站建设 网站运营期待结果#xff1a; 流程 1. 通过C写入数据到纹理贴图 2. 在材质中通过采样能正确读取写入的数值 踩坑#xff1a; 1. UE5之后#xff0c;需要设置采样类型#xff0c;才能达到上图效果#xff0c;默认采样类型做了插值计算 FColor中写入 PF_B8G8R8A8 UTexture2D* Conve…期待结果 流程 1. 通过C写入数据到纹理贴图 2. 在材质中通过采样能正确读取写入的数值 踩坑 1. UE5之后需要设置采样类型才能达到上图效果默认采样类型做了插值计算 FColor中写入 PF_B8G8R8A8 UTexture2D* ConvertFloatArr2Texture(TArrayFVector inFArr) {if (inFArr.IsEmpty()) return nullptr;//FlushRenderingCommands();uint32 len inFArr.Num();float templen FMath::Sqrt(len);uint32 text_len FMath::CeilToInt(templen);text_len FMath::CeilToInt(log2(text_len));text_len FMath::Pow(2, text_len);uint32 Totallen FMath::Pow(text_len, 2);FColor* datas new FColor[Totallen];for (uint32 i 0; i Totallen;i) {if (i len) {FColor Tempcolor;Tempcolor.B inFArr[i].X;Tempcolor.G inFArr[i].Y;Tempcolor.R inFArr[i].Z;Tempcolor.A 255;datas[i] Tempcolor;}else {FColor Tempcolor(0,0,0,1);datas[i] Tempcolor;}}UTexture2D* temp UTexture2D::CreateTransient(text_len, text_len, PF_B8G8R8A8);temp-Filter TF_Nearest;void* TextureData temp-GetPlatformData()-Mips[0].BulkData.Lock(LOCK_READ_WRITE);FPlatformMemory::Memcpy(TextureData, datas, Totallen * sizeof(uint8)*4);temp-GetPlatformData()-Mips[0].BulkData.Unlock();temp-UpdateResource();return temp; }FFloat16数据写入PF_FloatRGBA void ConvertFloatArr2Texture(TArrayfloat inFArr, int width, int height) {if (inFArr.IsEmpty()) return;FFloat16* datas new FFloat16[height * width * 4];for (auto it 0; it 256; it) {FFloat16 ff(inFArr[it]);datas[it] ff;}UTexture2D* temp UTexture2D::CreateTransient(width, height, PF_FloatRGBA);temp-Filter TF_Nearest;//temp-MipGenSettings TextureMipGenSettings::TMGS_NoMipmaps;//temp-CompressionSettings TextureCompressionSettings::TC_VectorDisplacementmap;void* TextureData temp-GetPlatformData()-Mips[0].BulkData.Lock(LOCK_READ_WRITE);FMemory::Memmove(TextureData, datas, height * width * 4 * sizeof(FFloat16));temp-GetPlatformData()-Mips[0].BulkData.Unlock();// 更新纹理数据temp-UpdateResource();} 将FFloat32写入PF_R32G32B32F类型贴图 UTexture2D* ConvertFloatArr2Texture(TArrayFVector inFArr) {if (inFArr.IsEmpty()) return nullptr;//FlushRenderingCommands();uint32 len inFArr.Num();float templen FMath::Sqrt(len);uint32 text_len FMath::CeilToInt(templen);text_len FMath::CeilToInt(log2(text_len));text_len FMath::Pow(2, text_len);uint32 Totallen FMath::Pow(text_len, 2);FFloat32* datas new FFloat32[Totallen*4];for (uint32 i 0; i Totallen;i) {if (i len) {datas[i * 3 0] inFArr[i].X;datas[i * 3 1] inFArr[i].Y;datas[i * 3 2] inFArr[i].Z;}else {datas[i * 4 0] 0.0f;datas[i * 4 1] 0.0f;datas[i * 4 2] 0.0f;}}UTexture2D* temp UTexture2D::CreateTransient(text_len, text_len, PF_R32G32B32F);temp-Filter TF_Nearest;void* TextureData temp-GetPlatformData()-Mips[0].BulkData.Lock(LOCK_READ_WRITE);FPlatformMemory::Memcpy(TextureData, datas, Totallen * sizeof(FFloat32)*3);temp-GetPlatformData()-Mips[0].BulkData.Unlock();temp-UpdateResource();return temp; } 写入FLinearColor到PF_A32B32G32R32F格式的贴图 UTexture2D* ConvertFloatArr2Texture(TArrayFVector inFArr) {if (inFArr.IsEmpty()) return nullptr;//FlushRenderingCommands();uint32 len inFArr.Num();float templen FMath::Sqrt(len);uint32 text_len FMath::CeilToInt(templen);text_len FMath::CeilToInt(log2(text_len));text_len FMath::Pow(2, text_len);uint32 Totallen FMath::Pow(text_len, 2);FLinearColor* datas new FLinearColor[Totallen];for (uint32 i 0; i Totallen;i) {if (i len) {datas[i].R inFArr[i].X;datas[i].G inFArr[i].Y;datas[i].B inFArr[i].Z;datas[i].A 1.0;}else {datas[i].R 0.0;datas[i].G 0.0;datas[i].B 0.0;datas[i].A 1.0;}}UTexture2D* temp UTexture2D::CreateTransient(text_len, text_len, PF_A32B32G32R32F);temp-Filter TF_Nearest;void* TextureData temp-GetPlatformData()-Mips[0].BulkData.Lock(LOCK_READ_WRITE);FPlatformMemory::Memcpy(TextureData, datas, Totallen * sizeof(FLinearColor));temp-GetPlatformData()-Mips[0].BulkData.Unlock();temp-UpdateResource();return temp; } FFloat16数据写入灰度图PF_R16F UTexture2D* ConvertFloatArr2Gray(TArrayFFloat16 inFArr, int32 width, int32 height) {if (inFArr.IsEmpty()) return nullptr;UTexture2D* temp UTexture2D::CreateTransient(width, height, PF_R16F);temp-MipGenSettings TextureMipGenSettings::TMGS_NoMipmaps;void* TextureData temp-GetPlatformData()-Mips[0].BulkData.Lock(LOCK_READ_WRITE);FMemory::Memzero(TextureData, width* height * sizeof(FFloat16));//temp-SRGB false;//temp-CompressionSettings TC_Displacementmap;FMemory::Memmove(TextureData, inFArr.GetData(), inFArr.Num() * sizeof(FFloat16));temp-GetPlatformData()-Mips[0].BulkData.Unlock();// 更新纹理数据temp-UpdateResource();UpdateKrigingTexture(temp);return temp; } 纹理采样 方案一 for(int inw0;inwpoint_width;inw) {float2 Kriging_UVfloat2(0,0);Kriging_UV[0]float1(inw/point_width);for(int inh0;inhpoint_height;inh){Kriging_UV[1]float1(inh/point_height);//计算UV偏移float2 offsetfloat2(point_width,point_height);offset1/offset;Kriging_UVfloat2(offset*offsetCoordKriging_UV);//float4 point_TTexture2DSample(in_Tex,Material.Texture2D_0Sampler, Kriging_UV);float3 point_Tin_Tex.Load(int3(Kriging_UV,0));} } 方案二 float4 hTexture2DSample(tex,texSampler,uv) return h; //另外采样方式 //float3 point_Tin_Tex.Load(int3(Kriging_UV,0));
http://www.pierceye.com/news/939550/

相关文章:

  • 电视剧手机网站大全网页版微信二维码付款怎么弄
  • 亳州有做网站的吗一站式快速网站排名多少钱
  • 国外数码印花图案设计网站秦皇岛信息平台
  • 网站建设仿站纪念册设计制作公司
  • 西安烽盈网站建设有人上相亲网站做传销燕窝
  • 您身边的网站建设专家四川省建设注册资格中心网站
  • 东莞公司网站做优化做企业网站的合同
  • 网站域名空间怎么提交北京公司网站制作方法
  • 网站伪静态是什么意思中国知名网站排行榜
  • 国外网站注册软件用python做购物网站
  • 网站设计 素材如何攻克房地产网站
  • 上不了国外网站 怎么做贸易网页浏览器设置在哪里
  • delphi可以做网站吗百色建设局网站
  • 网站建设及维护课件免费请人做装修设计上什么网站
  • 川沙网站建设淘客插件wordpress
  • 门户网站开发技术服务合同免费网页游戏源码
  • 网站批量查询工具做影视外包的网站
  • 营销型网站建设试题html5网站网址
  • 网站建设策划书(建设前的市场分析)环球资源网的定位
  • 上海企业都用什么网站网站公司建站
  • 华为云速建站可以做英文网站高端服装产品网站建设
  • 网站建设中html 下载哪个平台做网站比较好
  • 成都网站设计哪家比较好邯郸市空船网络科技有限公司
  • 网站制作类软件推荐南昌网站建设推广专家
  • 做英文兼职的网站四川路桥建设股份有限公司网站
  • 电商网站开发的意义传统营销
  • 怎么自己创建网站或者app足球世界排名
  • 营站快车代理平台跑腿网站开发
  • 免费自助建站系统下载html5手机网站制作
  • 工信部网站怎么查网址邹平县建设局网站