自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

jtabibito's blog

我只是一个路过的程序员

  • 博客(80)
  • 资源 (1)
  • 收藏
  • 关注

原创 解决Unity自定义UIShader不受Mask影响

解决Unity自定义UIShader不受Mask影响问题

2023-02-17 11:28:21 599

原创 Unity3d编辑器日志大文件占用磁盘空间解决办法

使用Unity3d进行开发时,编辑器日志会被写入到C\Users\admin\AppData\Local\Unity\Editor目录中,Unity开着时间越长输出越多,占用越高。

2022-07-22 17:10:34 1430

原创 贝塞尔曲线

python贝塞尔曲线实现

2022-03-22 16:56:46 980

原创 Someone‘s Acting Sus....

You are a professional Among Us gamer, however, you don’t know who the impostor is! Luckily, you’re hacking, so you know the exact path each crewmate took before the EMERGENCY MEETING. You notice that certain crewmates are acting SUSSY - they are moving mu

2021-10-05 23:17:36 132

原创 Detective-Geek

Detective Geek has a superpower of knowing when and where a crime is going to happen; unfortunately his superpower is encrypted, and he takes a lot of time decrypting it.Everytime he sees a crime using his superpower he starts writing on paper and the res

2021-10-04 19:01:15 4510

原创 Ascii-Art

In stations and airports you often see this type of screen:Have you ever asked yourself how it might be possible to simulate this display on a good old terminal? We have: with ASCII art!RulesASCII art allows you to represent forms by using characters.

2021-10-04 14:37:07 276

原创 TEMPERATURES

In this exercise, you have to analyze records of temperature to find the closest to zero.Sample temperaturesHere, -1 is the closest to 0.RulesWrite a program that prints the temperature closest to 0 among input data. If two numbers are equally close

2021-10-04 14:32:19 181

原创 ASCII Artical:Shadow-Casting

Given an ASCII art pattern, cast a shadow as if the light source is at top-left corner to make the pattern 3D-like.Use hyphen (-) for darker shadow, and backtick (`) for lighter one.Darker shadow is projected by shifting existing pattern 1 character down

2021-10-04 14:27:30 135

原创 四叉树分类

四叉树是一种空间划分树,每个节点最多有四个子树的数据结构。主要应用于:场景管理:特别适合大规模的广阔室外场景管理。一般来说如果游戏场景是基于地形的(甚至没有高度)(如城市、平原、2D场景),那么适合用四叉树来管理。而如果游戏场景在高度轴上也有大量物体需要管理(如太空、高山),那么适合用八叉树来管理。感知检测如图所示,假如保证一个(图中为绿色⚪)智能体最远不会感知到所在区域外的地方。那么通过四叉树,可以快速过滤掉K区域外的红色目标,只需考虑K区域内的红色目标。碰撞检测类似上面感

2021-06-06 20:36:53 2068 3

原创 python虚拟环境

一、使用virtualenv1. 使用pippip install virtualenv2. 创建运行环境virtualenv [虚拟环境名称] virtualenv venv#如果不想使用系统的包,加上–no-site-packeages参数virtualenv --no-site-packages 创建路径名3. 激活环境linux:$ cd venv$ source ./bin/activateWindows 10:> cd venv&g

2021-05-16 15:05:47 139 2

原创 中缀表达式计算

思路:每次都优先寻找最小优先级的运算符位置,然后分割表达式,例如表达式1+(40/2+7-3*2):1.优先寻找最小优先级的运算符位置为第一个'+'号的位置,为1。2.以第一个'+'号位置分割字符串为1+,(40/2+7-3*2)。3.判断当前字符串是否可再分,如果是不可分割字符串,则计算出当前运算符的位置中的数字,返回这个数字。否则,继续返回第一步继续计算左串和右串。4.将不可再分的结果进行基本四则运算。代码如下:#define MAXPRI 0x0FFFFFFEintca

2021-05-04 19:14:24 293

原创 Unity3D 文字线条效果

基于Unity实现的文字线条效果,代码添加到Text组件的物体上修改Type属性即可看到效果。using System.Text.RegularExpressions;using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;public enum LineType { none, upperline, middleLine,

2021-04-18 20:54:31 577

原创 转 Unity渲染顺序总结

Unity中影响渲染顺序的因素总结

2021-01-21 15:31:57 114

原创 Unity打包后播放视频黑屏问题

可能是解码不支持多线程渲染导致的,勾掉PlayerSettings中"Multithread Rendering"选项即可

2020-12-11 17:15:13 3128

原创 使用SSH连接远程Linux系统

1.在Windows上安装SSH客户端2.在Linux上启动SSH服务redhat,fedora,centos等linux发行版,使用以下命令:sudo yum install sshd 或sudo yum install openssh-serverdebian,ubuntu,linux mint等linux发行版,使用以下命令:sudo apt-get install sshd 或sudo apt-get install openssh-server使用ssh/sshd sta

2020-09-17 18:00:17 316

原创 Socket编程 C/C++ 服务器开发 阻塞模式

// 定义ServerCode.cpp: 程序入口// #include <stdio.h>#include <stdlib.h>#include <string.h>#ifdef WIN32#include <WinSock2.h>#include <Windows.h>#pragma comment (lib, ...

2020-07-22 13:38:06 84

原创 Linux & ssh基本操作

Linux操作命令:1: mkdir: 创建目录2: mount/unmount 挂载硬盘到指定路径/卸载指定路径的硬盘3: ls: 显示当前目录信息...ls -l 获取执行权限4: find: 在磁盘中查找文件5: grep: 在一堆文件中查找字符串所在路径 grep -m"main"...grep "main" -r 路径6: cd: 进入目录7: cp,mv:...

2020-07-22 13:37:45 254

原创 [LeetCode] Contiguous Array

Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.Example 1:Input: [0,1]Output: 2Explanation: [0, 1] is the longest contiguous subarray with equal...

2020-04-22 16:44:26 108

原创 [LeetCode] Backspace String Compare

Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character.Note that after backspacing an empty text, the text will continue empty....

2020-04-20 14:50:10 101

原创 [LeetCode] Median of Two Sorted Arrays

There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).You may assume nums1 and num...

2020-04-16 14:11:01 89

原创 防止Unity UGUI中UI点击穿透问题

使用Input.MouseButton()方法时,通过 UI 的EventSystem判断当前是否点击了物体,这里的物体是包含UI和物体的,PointEventData是把你当前所点击到的物体数据进行一个获取和保存,再获取鼠标的位置信息,最后获取当前点击的所有物体数量,这样就能保持 一直点击的都是最上层的第一个对象了。 /// <summary> /// 检测是否点...

2020-04-15 18:41:57 3116

原创 [LeetCode] Longest Substring Without Repeating Characters

Given a string, find the length of thelongest substringwithout repeating characters.Example 1:Input: "abcabcbb"Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2:...

2020-04-15 16:10:58 77

原创 [LeetCode] ThreeSum

Given an arraynumsofnintegers, are there elementsa,b,cinnumssuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:The solution set must not cont...

2020-04-14 15:12:38 73

原创 Lua语言的面向对象思想

1. 元表 metatable首先了解一下元表meta_table当索引一个key时,普通表中没有,就会到元表的__index中寻找。pairs访问__index会报错。-- 定义一个普通的表local normal_tab = { key3 = 4 }-- 定义一个元表local meta_tab = { __index = { ["key1"] =...

2020-04-12 20:17:47 112

原创 MySQL修改密码命令

方法1: 用SET PASSWORD命令首先登录MySQL。格式:mysql> set password for 用户名@localhost = password('新密码');例子:mysql> set password for root@localhost = password('123');方法2:用mysqladmin格式:mysqladmin -...

2020-04-08 13:19:29 488

原创 使用Protobuf

导出命令./protoc --xx_out=path *.proto导出CSharp注意导出CSharp脚本时,需要在proto中加入package xxx防止包名重复,否则导出时会出现string subscript out of range...

2020-04-06 13:43:16 173 3

原创 解决Win10下无默认文件打开方式问题(cmd+regedit)

最近换了新电脑以后,将原来的项目移植到新pc上发现proto文件无法自动关联vscode,但又不想开启Win10自动更新,于是Google搜索了很多解决方案解决这个问题。以下是我的总结:1. 使用Assoc命令关联文件后缀和可执行程序.extension文件后缀fileType自定义文件关联类型@location替换为可执行程序的路径命令行中输入以下命令确定是否有文件关联...

2020-03-05 15:57:55 1410

原创 [LeetCode]: Swap Nodes in Pairs方法介绍

Given alinked list, swap every two adjacent nodes and return its head.You maynotmodify the values in the list's nodes, only nodes itself may be changed.Example:Given 1->2->3->4You s...

2020-01-14 16:01:13 106

原创 MySql免安装版部署

1.解压后在root路径下创建my.ini并配置以下基本内容,@符号替换为MySql解压后的root路径[mysqld]character-set-server=utf8skip-grant-tablesbasedir=@localdatadir=@local\dataport = 3306[client]default-character-set=utf8[mysql]d...

2020-01-02 14:34:33 97 1

原创 Google 开源项目风格指南

Google 开源项目风格指南 (中文版)

2019-12-18 16:43:52 82

原创 缓动函数速查

缓动函数

2019-12-06 10:11:03 89

原创 Unity 特效播放插件EffectPlayer

使用EffectPlayer可以快速实现点击播放特效或在不同位置生成特效,减少代码中大量的Input监听代码。可以自己写入EffectNames保存特效名称,使用时参照以下模板。PS:1.使用前将EffectPlayer放入Plugins文件夹下,并添加引用2.场景中必须添加主摄像机Tag标记为MainCamera3.场景中必须添加UICanvas节点,用于2D3D点击转换。4...

2019-10-23 11:09:58 1911

原创 查找算法之插值查找

插值查找基于二分查找进行改进,将从中间开始的思想转变为确定key所在的区间查找。这种查找方式要求是数列要有序。插值查找平均时间复杂度为O(loglogn),最坏情况为O(n)。 插值查找mid=low+(high-low)*(key-arr[low])/(arr[high]-arr[low]);(key-arr[low])/(arr[high]-arr[low])求出了key占区间的...

2019-08-30 11:18:20 338

原创 Unity ComboBox(下拉框)实现

在扩展编辑器、绘制窗口等情况下我们需要用到ComboBox来进行多项选择,但是GUI中没有DropList的实现,所以需要自己做一个ComboBox的效果。效果如下:当点击Prefabs时,会更新出Prefabs下的所有预制体进行选择,然后进行地图编辑。源码:using System.Collections;using System.Collections.Generic;...

2019-08-01 12:45:37 2370

转载 基于Select模型的UDP+TCP混合编程

转自:http://blog.csdn.net/xiayefanxing/article/details/8351126// SelectTestServer.cpp : 定义控制台应用程序的入口点。//////////////////////////////////////////////// TCP UDP复用Server select非阻塞模式// IP: 127...

2019-07-24 15:09:03 304

转载 UDP协议为什么要使用connect和bind

转载自https://www.cnblogs.com/kex1n/p/8342416.htmlUDP中使用bind和connect的作用1:UDP中可以使用connect系统调用2:UDP中connect操作与TCP中connect操作有着本质区别。TCP中调用connect会引起三次握手,client与server建立连结.UDP中调用connect内核仅仅把对端ip&por...

2019-07-24 14:44:57 931

原创 寻路算法之A Star

A*算法是最好优先算法的一种,是解决最短路径的有效方法。只要理解A*的工作原理,算法就不难实现。1. A* 的工作原理 什么是寻路?寻路就是从有限的点中找出一条从起点到终点的路径。但是,寻路的过程中我们不知道下一个节点是什么,有可能下一个节点是一个墙,也可能是一个陷阱等等不能经过的点。所以我们需要不断的试探,直到我们从起点正确的走到了终点,这个试探的过程就结束了,如果四周都是不能经过...

2019-07-22 15:32:55 271

原创 Direct3D官方教程源码剖析(一): 创建Device实例和生成3D物体

1. 创建Direct实例HRESULT InitDevice(){ HRESULT hr = S_OK; RECT rc; GetClientRect( g_hWnd, &rc ); UINT width = rc.right - rc.left; UINT height = rc.bottom - rc.top; UINT c...

2019-07-15 13:34:01 724

原创 Direct和XNA基础

#### 1. DirectX的定义和作用DirectX(Direct eXtension,简称DX)是由微软公司创建的多媒体编程接口,是一种应用程序接口(API)。DirectX可让以windows为平台的游戏或多媒体程序获得更高的执行效率,加强3D图形和声音效果,并提供设计人员一个共同的硬件驱动标准,让游戏开发者不必为每一品牌的硬件来写不同的驱动程序,也降低用户安装及设置硬件的复杂度。##...

2019-07-12 10:18:12 267

原创 8皇后问题

问题描述:在8*8的一个棋盘上,在不同行,列,对角线中填入一个位置,使得其不重复。分析:在第i行,j列的结点上,放入第k个皇后(k表示行),那么,使得不同行,列的条件为 i != k && j != a[k],使得其不同斜对角线的条件为 (i - j)!= k - a[k] && (i + j) != k + a[k]。解题思路:回溯法:1. 非递归的方式...

2019-04-09 21:15:33 129

EffectPlayer2.0.rar

https://blog.csdn.net/qq_37245458/article/details/102696753工具介绍,由于原来的效果不好,重新修改了工具 。

2019-11-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除