<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[qq_39025293的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_39025293</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_39025293]]></copyright><item><title><![CDATA[Unity Shader中获取像素点深度信息]]></title><link>https://blog.csdn.net/qq_39025293/article/details/138501035</link><guid>https://blog.csdn.net/qq_39025293/article/details/138501035</guid><author>qq_39025293</author><pubDate>Mon, 06 May 2024 17:07:23 +0800</pubDate><description><![CDATA[但是达不到预期，最后返回的值一直大于1。2.片元着色器中使用深度纹理。]]></description><category></category></item><item><title><![CDATA[Newtonsoft 序列化 Vector3类型数据报错]]></title><link>https://blog.csdn.net/qq_39025293/article/details/138402555</link><guid>https://blog.csdn.net/qq_39025293/article/details/138402555</guid><author>qq_39025293</author><pubDate>Thu, 02 May 2024 23:10:06 +0800</pubDate><description><![CDATA[【代码】Newtonsoft 序列化 Vector3类型数据报错。]]></description><category></category></item><item><title><![CDATA[C#反射应用]]></title><link>https://blog.csdn.net/qq_39025293/article/details/138260040</link><guid>https://blog.csdn.net/qq_39025293/article/details/138260040</guid><author>qq_39025293</author><pubDate>Sat, 27 Apr 2024 22:48:03 +0800</pubDate><description><![CDATA[CreateInstance后面的参数部分一定要和所构造的类参数数量对应，即使设置参数默认值，也不可省略。]]></description><category></category></item><item><title><![CDATA[像素色彩向灰度的映射关系]]></title><link>https://blog.csdn.net/qq_39025293/article/details/138256390</link><guid>https://blog.csdn.net/qq_39025293/article/details/138256390</guid><author>qq_39025293</author><pubDate>Sat, 27 Apr 2024 19:45:40 +0800</pubDate><description><![CDATA[这些权重值（0.299、0.587 和 0.114）是根据人眼对不同颜色的感知程度而确定的。人眼对绿色最为敏感，其次是红色，最不敏感的是蓝色，这种敏感度的差异被反映在了权重值上。在将彩色图像转换为灰度图像时，通常会使用一种称为亮度加权平均法（Luminosity method）的方法来确定每个像素的灰度值。这个方法是基于人眼对不同颜色的感知程度的原理。在RGB颜色空间中，每个像素由红色（R）、绿色（G）和蓝色（B）三个分量组成。其中，𝑅R、𝐺G 和 𝐵B 分别是像素的红、绿、蓝分量，𝑌Y 是灰度值。]]></description><category></category></item><item><title><![CDATA[Unity场景光照数据Light data asset]]></title><link>https://blog.csdn.net/qq_39025293/article/details/138089858</link><guid>https://blog.csdn.net/qq_39025293/article/details/138089858</guid><author>qq_39025293</author><pubDate>Mon, 22 Apr 2024 20:10:46 +0800</pubDate><description><![CDATA[打开Window->Rendering->Lighting面板，找到Scene标签。逐个排查定位到光照数据丢失或不正确导入，发现场景里没有预先生成光照数据资产。首先描述一下遇到的问题，游戏运行过程中切换场景之后发现模型接收的光照不对。点击Generate Lighting按钮，主要在运行模式下是不可点击的。完成上述操作步骤之后，在运行中切换场景，光照都会显示正常。排查了灯光参数和环境光以及着色器都没发现异常。打开需要生成光照数据资产的场景。]]></description><category></category></item><item><title><![CDATA[GitHub SSH Key]]></title><link>https://blog.csdn.net/qq_39025293/article/details/137840416</link><guid>https://blog.csdn.net/qq_39025293/article/details/137840416</guid><author>qq_39025293</author><pubDate>Tue, 16 Apr 2024 21:08:39 +0800</pubDate><description><![CDATA[2. 将公钥添加到GitHub账户中：复制生成的公钥（一般为~/.ssh/id_rsa.pub），进入GitHub网站，打开“Settings”菜单中的“SSH and GPG keys”页面，点击“New SSH key”按钮，然后将公钥粘贴到对应的输入框中并保存。GitHub SSH Key是用于通过SSH协议与GitHub进行安全通信的一种身份验证方式。3. 代码推送和拉取：在本地计算机生成和配置SSH Key后，在push和pull代码时，可以使用SSH协议进行加密通信，确保代码的安全性和完整性。]]></description><category></category></item><item><title><![CDATA[Profiler EditorOnly [Loading.CheckConsistency [Editor Onlye]]]]></title><link>https://blog.csdn.net/qq_39025293/article/details/127629777</link><guid>https://blog.csdn.net/qq_39025293/article/details/127629777</guid><author>qq_39025293</author><pubDate>Tue, 01 Nov 2022 10:59:36 +0800</pubDate><description><![CDATA[Unity性能优化]]></description><category></category></item><item><title><![CDATA[通过命令行无法使用svn]]></title><link>https://blog.csdn.net/qq_39025293/article/details/119564394</link><guid>https://blog.csdn.net/qq_39025293/article/details/119564394</guid><author>qq_39025293</author><pubDate>Tue, 10 Aug 2021 10:40:48 +0800</pubDate><description><![CDATA[将svn加入环境变量后，在命令窗口输入命令依旧显示：'svn' 不是内部或外部命令，也不是可运行的程序或批处理文件。原因是缺少svn.exe文件，缺少这个是因为开发环境中我们安装TortoiseSVN客户端都是选择默认安装，缺少command line client，可以在不需要重新安装的情况下补上该服务，首先

1、点击TortoiseSVN安装包，双击安装包 &gt; Next &gt; Modify

2、将command line client tools选中为安装到本地（默认该tools是不安装的]]></description><category></category></item><item><title><![CDATA[C++调用虚函数是如何确定是虚函数表中的哪一项？]]></title><link>https://blog.csdn.net/qq_39025293/article/details/119091567</link><guid>https://blog.csdn.net/qq_39025293/article/details/119091567</guid><author>qq_39025293</author><pubDate>Mon, 26 Jul 2021 00:51:46 +0800</pubDate><description><![CDATA[class Base
{
public:
virtual func1() {};
virtual func2() {};
}

class Child : public Base
{
public:
virtual func1() {};
virtual func3() {};
}

Base* b = new Child();
b-&gt;func1();


要讨论的是 `b-&gt;func1()`编译器以及运行时是怎么操作的

先说结论：

1.编译器会给每个虚函数指定一个在虚函数表中的索引
...]]></description><category></category></item><item><title><![CDATA[Lua读写文件]]></title><link>https://blog.csdn.net/qq_39025293/article/details/117370798</link><guid>https://blog.csdn.net/qq_39025293/article/details/117370798</guid><author>qq_39025293</author><pubDate>Sun, 30 May 2021 16:30:14 +0800</pubDate><description><![CDATA[lua里的文件读写模型来自C语言，分为完整模型（和C一样）、简单模型。

1、简单模型

io.input([file]) 设置默认的输入文件，file为文件名（此时会以文本读入）或文件句柄（可以理解为把柄，有了把柄就可以找到文件），返回文件句柄。
io.output([file]) 设置默认的输出文件，参数意义同上。
io.close([file]) 关闭文件，不带参数关闭默认的文件
io.read(formats) 读入默认文件，formats取值为"*a"（读入全部）、“*n”(按数字读入)、 "..]]></description><category></category></item><item><title><![CDATA[详解 TCP 连接的“ 三次握手 ”与“ 四次挥手 ”]]></title><link>https://blog.csdn.net/qq_39025293/article/details/116567969</link><guid>https://blog.csdn.net/qq_39025293/article/details/116567969</guid><author>qq_39025293</author><pubDate>Sun, 09 May 2021 18:31:07 +0800</pubDate><description><![CDATA[TCP Connection





客户端与服务器之间数据的发送和返回的过程当中需要创建一个叫TCP connection的东西；

由于TCP不存在连接的概念，只存在请求和响应，请求和响应都是数据包，它们之间都是经过由TCP创建的一个从客户端发起，服务器接收的类似连接的通道，这个连接可以一直保持，http请求是在这个连接的基础上发送的；

在一个TCP连接上是可以发送多个http请求的，不同的版本这个模式不一样。

在HTTP/1.0中这个TCP连接是在http请求创建的时候同步创建的，http请求发]]></description><category></category></item><item><title><![CDATA[Python]]></title><link>https://blog.csdn.net/qq_39025293/article/details/116530187</link><guid>https://blog.csdn.net/qq_39025293/article/details/116530187</guid><author>qq_39025293</author><pubDate>Sat, 08 May 2021 16:59:29 +0800</pubDate><description><![CDATA[工作中一直在使用Jenkins（开源的可扩展持续集成引擎）进行更新出包，打包机本地打包操作是通过python脚本执行的，在排查问题的时候，python代码有些东西是在看不懂，所以花点时间总结了一下常用的，希望能帮到有需要的人，也作为自己的学习总结。

有错误的地方也欢迎各位指出。



入口函数



python的入口函数类似于C++脚本中main（）函数，不过Python属于脚本语言，不像编译型语言那样先将程序编译成二进制再运行，而是动态的逐行解释运行。

python脚本文件除了可以直接再pyth..]]></description><category></category></item><item><title><![CDATA[Windows平台监控Android App应用]]></title><link>https://blog.csdn.net/qq_39025293/article/details/116502076</link><guid>https://blog.csdn.net/qq_39025293/article/details/116502076</guid><author>qq_39025293</author><pubDate>Fri, 07 May 2021 21:40:26 +0800</pubDate><description><![CDATA[1.adb.exe

原理：

adb 的运行原理是 PC 端的 adb server 与手机端的守护进程 adbd 建立连接，然后 PC 端的 adb client 通过 adb server 转发命令，adbd 接收命令后解析运行。



命令语法

基本命令：

adb 命令的基本语法如下：


adb [-d|-e|-s &lt;serialNumber&gt;] &lt;command&gt;

如果只有一个设备/模拟器连接时，可以省略掉[-d|-e|-s &lt;serialNumber&g..]]></description><category></category></item><item><title><![CDATA[Cocos2d-x-3.17.2 升级spine]]></title><link>https://blog.csdn.net/qq_39025293/article/details/116355474</link><guid>https://blog.csdn.net/qq_39025293/article/details/116355474</guid><author>qq_39025293</author><pubDate>Sun, 02 May 2021 19:19:53 +0800</pubDate><description><![CDATA[前言：

工作中一直是使用flash在做动画表现，随着flash的被遗弃，现在很多2D游戏动画都转为spine在做，业余时间就想尝试在cocos2dx中使用使一下spine。结果发现创建spine动画的时候报错：



查资料说是需要升级到最新的spine库，于是开始升级spine到最新版本。下面是一些我的环境配置：

cocos版本：cocos2d-x 3.17.2

spine更新库下载地址：https://github.com/EsotericSoftware/spine-runtimes

平...]]></description><category></category></item><item><title><![CDATA[std::function]]></title><link>https://blog.csdn.net/qq_39025293/article/details/116242002</link><guid>https://blog.csdn.net/qq_39025293/article/details/116242002</guid><author>qq_39025293</author><pubDate>Wed, 28 Apr 2021 20:04:01 +0800</pubDate><description><![CDATA[通过std::function对C++中各种可调用实体（普通函数、Lambda表达式、函数指针、以及其它函数对象等）的封装，形成一个新的可调用的std::function对象；让我们不再纠结那么多的可调用实体。其中Lambda表达式也是C++11新增的内容。具体还不了解，应该类似于C Sharp中的Lambda表达式吧！


#include &lt;functional&gt;
#include &lt;iostream&gt;
using namespace std;

std::function&lt]]></description><category></category></item><item><title><![CDATA[Cocos2dx-lua在Win32平台调试输出配置]]></title><link>https://blog.csdn.net/qq_39025293/article/details/115491008</link><guid>https://blog.csdn.net/qq_39025293/article/details/115491008</guid><author>qq_39025293</author><pubDate>Wed, 07 Apr 2021 19:39:35 +0800</pubDate><description><![CDATA[新建项目：



在main.cpp中加入以下代码：


#ifdef USE_WIN32_CONSOLE  
	AllocConsole();
	freopen("CONIN$", "r", stdin);
	freopen("CONOUT$", "w", stdout);
	freopen("CONOUT$", "w", stderr);
#endif  



AllocConsole函数不能改变控制台窗口在屏幕上的位置、尺寸等属性。以下函数可以控制&amp;获取控制台相关信息。

GetConsol]]></description><category></category></item><item><title><![CDATA[使用VSCode调试C++工程]]></title><link>https://blog.csdn.net/qq_39025293/article/details/115422400</link><guid>https://blog.csdn.net/qq_39025293/article/details/115422400</guid><author>qq_39025293</author><pubDate>Sat, 03 Apr 2021 23:28:04 +0800</pubDate><description><![CDATA[官方教程：https://code.visualstudio.com/docs/cpp/config-mingw

tasks.json 负责编译生成可执行文件(.exe)

launch.json 进行代码调试

c_cpp_properties.json 拓展

1.这里用添加引用eigen类库举例：

首先添加eigen库的路径到IncludePath. （c_cpp_properties.json）


{
    "configurations": [
        {
            ]]></description><category></category></item><item><title><![CDATA[Lua中的userdata]]></title><link>https://blog.csdn.net/qq_39025293/article/details/115315595</link><guid>https://blog.csdn.net/qq_39025293/article/details/115315595</guid><author>qq_39025293</author><pubDate>Tue, 30 Mar 2021 02:03:15 +0800</pubDate><description><![CDATA[原文http://www.jellythink.com/archives/587

话从这里说起

在我发表《Lua中的类型与值》这篇文章时，就有读者给我留言了，说：你应该好好总结一下Lua中的function和userdata类型。现在是时候总结了。对于function，我在《Lua中的函数》这篇文章中进行了总结，而这篇文章将会对Lua中的userdata进行仔细的总结。对于文章，大家如果有任何疑议，都可以在文章的下方给我留言，也可以关注我的新浪微博与我互动。学习，就要分享，我期待你的加入。

use..]]></description><category></category></item><item><title><![CDATA[Lua设计与实现--GC]]></title><link>https://blog.csdn.net/qq_39025293/article/details/115296904</link><guid>https://blog.csdn.net/qq_39025293/article/details/115296904</guid><author>qq_39025293</author><pubDate>Mon, 29 Mar 2021 11:20:07 +0800</pubDate><description><![CDATA[本文转载自知乎专栏作家@张德嘉 的 Lua设计与实现，链接地址：https://zhuanlan.zhihu.com/p/144875092。

1.背景

和C#、Java类似，lua采用了Mark&amp;Sweep的算法来进行垃圾回收，与之相对的还有个常用算法是Automatic Reference Counting(ARC)。Mark&amp;Sweep的优点在于不用像ARC在每次赋值操作去操作引用计数(对于动态语言效率有较大影响)，也不会有环形引用的问题，但是由于Mark&amp;Sweep在触发]]></description><category></category></item><item><title><![CDATA[Lua设计与实现--函数]]></title><link>https://blog.csdn.net/qq_39025293/article/details/115296818</link><guid>https://blog.csdn.net/qq_39025293/article/details/115296818</guid><author>qq_39025293</author><pubDate>Mon, 29 Mar 2021 11:16:54 +0800</pubDate><description><![CDATA[本文转载自知乎专栏作家@张德嘉 的 Lua设计与实现，链接地址：https://zhuanlan.zhihu.com/p/61441722。

函数是任何语言设计里都不可或缺的一环，因为代码的执行几乎完全是依附在函数body里来完成的。本文主要从lua函数的C源码实现机制着手，来介绍lua函数的设计和实现特点。

1. 函数闭包

首先，所有的lua函数，都是一个函数闭包。函数闭包是目前主流语言几乎都支持的一个机制，它指的是一个内部结构，该结构存储了函数本身以及一个在词法上包围该函数的环境，该环境包含了函数]]></description><category></category></item></channel></rss>