- 博客(32)
- 资源 (2)
- 收藏
- 关注
原创 UE5报错error LNK2019: 无法解析的外部符号
正在创建库 D:Documents\Unreal Projects\MyProject\Binaries\Win64\UnrealEditor-MyProject.patch_3.lib。把Binaries删掉再重新编译。
2024-09-19 10:05:10 168
原创 DC算法的全切
但是还有问题,不能实现连续的太多次的全切,不知道是不是因为体素不够密。DC算法主要是基于网络上各种DC算法,b站和github。特征点的位置可能也需要进一步的优化。
2024-08-23 10:34:49 127
原创 ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘ (10061)的解决方法
启动这个再进行其他操作。
2023-07-11 15:05:59 108
原创 unity c# Thomas Algorithm
d[N] = (d[N] - a[N - 1] * d[N - 1]) / (b[N] - a[N - 1] * c[N - 1]);
2022-09-27 21:04:03 1017 2
原创 unity compute shader 报错
ArgumentException: ComputeBuffer.SetData() : Data size (136 bytes) is not integer multiple of Compute Buffer stride (48 bytes).VecMatPair[] input = new VecMatPair[17]; for (int i = 0; i < input.Length; i++) { VecMatPair a =...
2022-05-14 22:10:31 783
原创 unityCompute shader: Property at kernel index is not set
unity - Compute shader: Property at kernel index is not set - Game Development Stack Exchange1.数据关联、传入传出的流程不规范。2.unity版本问题。3.流程规范,但是有错误。shader.SetBuffer(kernel,"dateBuffer", buffer); buffer.SetData(input); shader.Dispatch(kernel,1,1...
2022-05-14 17:26:50 1834
原创 unity compute shader 报错 Kernel ‘Multiply‘ not found
compute shader里的方法主体的相关数据名字和前面声明的变量对不上。RWStructuredBuffer<VecMatPair> dataBuffer;//此处的dataBuffer,如果写成dateBuffer就会报这个错误。[numthreads(15,1,1)]void Multiply (uint3 id:SV_DispatchThreadID){ dataBuffer[id.x].pos=(float)id.x*0.5;//此处的dataBuffer,..
2022-05-14 17:20:07 1220
原创 KeyNotFoundException: The given key was not present in the dictionary.(给定关键字不在字典中)
KeyNotFoundException: The given key was not present in the dictionary.System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <c8d0d7b9135640958bff528a1e374758>:0)存放的东西在子节点的变量中,根节点确实没办法直接很快找到并删除,除非遍历,但是遍历很耗时,太菜了哈哈哈哈,换其他方法去加速了。
2022-04-27 21:46:20 7060
原创 unity 线段到三角形的最近点
Geometric tools for computer graphics3D Game Engine Design Second Editionreal-time collision detection三本书查看相关数学知识,两本比较繁,用了第三本的简单粗暴法,也不知道有没有什么问题,先往下走了。效果还行。 public Vector3 segmentCloestPointTriangle(Vector3 P, Vector3 Q, Vector3 A, Vector3 B, Vec..
2022-04-05 21:27:41 289
原创 unity list统计某个元素出现次数有问题
var result = coupclins1.GroupBy(item => item, (key, ids) => new { id = key, Cnt = ids.Count() });foreach (var item in result) { print($"id:{item.id} Cnt: {item.Cnt}");...
2022-03-11 15:09:42 3741
原创 unity game界面按下play会不断闪烁,按下暂停键(pause)或者中止/下一步(step),game界面的画面会接连变化
没找到答案,改了两个下午的程序,改完还是这样,后来发现是FixedUpdate、Update与OnDrawGizmos的问题,OnDrawGizmos是每帧都会绘制,用FixedUpdate理所当然就那啥了,分析的时候,就突然想到是不是这俩导致的,FixedUpdate改为Update,果然。。...
2022-02-16 23:38:20 2162
原创 unity 层次包围盒 AABB树
Unity3D AABB树-脑血管介入手术VR碰撞检测算法_老王的博客-CSDN博客这是参考的文章和源码,感谢感谢。效果图。
2022-02-13 20:22:32 2071 1
原创 Unity中OnDrawGizmos()和OnDrawGizmosSelected()
当点击了unity的Gizmos小框框:OnDrawGizmos不用选中游戏对象,就可以在Scene和Game中一直显示。OnDrawGizmosSelected需要选中游戏对象,才能显示。
2021-12-31 09:49:40 2672
原创 unity获取子物体球的实际半径
using System.Collections;using System.Collections.Generic;using UnityEngine;public class GetSphereSize : MonoBehaviour{ public GameObject sp; // Start is called before the first frame update void Start() { Vector3 leng...
2021-12-19 10:13:11 2330 1
原创 Unity3d实例化后位置不对的问题
代码中已经有了一个实例化,第二个实例化想要引用第一个实例化的变量,却怎么也没办法赋值,就固定在父物体的位置不变化,网上看到有关UGNI的教程,也不太会,就把第二个实例化转成一系列物体,就可以正常赋值了。...
2021-12-06 14:22:54 2830
原创 unity复现中的错误
Can't add script behaviour VertexZoom.The script needs toderive from MonoBehavirour!看Unity的文件名和类名是不是一样原因:文件名多了一个空格。
2021-11-25 10:53:04 3377
原创 有助于理解-基于网格的碰撞检测-的三篇文章
大规模网格形碰撞检测_游戏-CSDN博客基于网格的碰撞检测_weixin_30344795的博客-CSDN博客
2021-11-20 13:57:43 2345
原创 4.7.2多态案例——计算机类
#include<iostream>using namespace std;#include<string>//分别利用普通写法、多态技术实现计算器//普通写法class Calculator{public: int Getresult(string oper) { if(oper=="+") { return m_Num1+m_Num2; } else if(o...
2021-09-09 21:35:50 115
原创 4.6.6继承同名静态成员处理方式
#include<iostream>using namespace std;class Base{public: static int m_A; static void func() { cout << "Base -static void func()" << endl; } static void func(int a) { cout << "Base -static...
2021-09-08 22:50:23 81
原创 4.6.3继承中的对象模型
#include<iostream>using namespace std;//继承中的对象模型class Base{public: int m_A;protected: int m_B;private: int m_C;};class son : public Base{public: int m_D;};void test01(){ //16 //父类中所有属性都会被子类继承下去 //父类中私有成员属性...
2021-09-07 23:38:44 74
原创 4.6.2继承方式
#include<iostream>using namespace std;//公共继承class Base1{public: int m_A;protected: int m_B;private: int m_C;};class son1 : public Base1{public://以下是son1的公共部分 void func() { m_A=10;//父类中的公共权限成员,到子类中依然是公共权限。 ...
2021-09-07 23:07:06 67
原创 vc6,通过结构体创建变量,non-aggregates cannot be initialized with initializer list的报错
#include<iostream>using namespace std;#include<string>//1.创建学生数据类型:学生(姓名,年龄,分数)struct student{ //成员列表 //姓名 string name; //年龄 int age; //分数 int score;};int main(){//2.通过学生模型创建具体学生//2.1.struct student s1...
2021-08-25 22:44:30 372
原创 vc6,sizeof(__int64)无法显示出8
#include<iostream>using namespace std;int main(){ //整形4类型1.短整型2.整形3.长整型4.长长整型 //sizeof求各个数据类型所占据的内存大小,而不用特别记忆。 //sizeof(数据类型/变量) //sizeof(short)或者sizeof(num1) short num1=10; cout<<"short占用的内存空间="<<sizeof(...
2021-08-20 23:18:43 152
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人