<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[化石]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/TinyHum</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; TinyHum]]></copyright><item><title><![CDATA[我写的书：Unity Shader编程]]></title><link>https://blog.csdn.net/TinyHum/article/details/45217419</link><guid>https://blog.csdn.net/TinyHum/article/details/45217419</guid><author>TinyHum</author><pubDate>Thu, 23 Apr 2015 09:59:43 +0800</pubDate><description><![CDATA[我自己写的书，免费分享。]]></description><category></category></item><item><title><![CDATA[UnrealEngine4（虚幻4）这次来真格的了]]></title><link>https://blog.csdn.net/TinyHum/article/details/44095787</link><guid>https://blog.csdn.net/TinyHum/article/details/44095787</guid><author>TinyHum</author><pubDate>Fri, 06 Mar 2015 09:58:09 +0800</pubDate><description><![CDATA[作为一个行内非常知名、而且的确牛逼（licence费用曾经高达传说中的千万RMB）的引擎。近日宣布开源并且免费供游戏开发者使用，对盈利的游戏，按照5%的毛利来分成即可。关键之处在于，对于教学、影视、建筑等也就是非游戏产品，虚幻4并不收取任何费用。

 

这下unity的licence费用就显的贵了！

 

那么unity的另外一个杀手锏“跨平台”呢？按照官方的公布，目前为止，u]]></description><category></category></item><item><title><![CDATA[Unity shader教程-第六课：Ramp Texture]]></title><link>https://blog.csdn.net/TinyHum/article/details/44040447</link><guid>https://blog.csdn.net/TinyHum/article/details/44040447</guid><author>TinyHum</author><pubDate>Tue, 03 Mar 2015 17:09:55 +0800</pubDate><description><![CDATA[Ramp Texture在Valve公司的军团要塞2后开始成为一种控制漫反射的方法。



 

Ramp Texture是类似下图的一张贴图：

 



在一般的Blinn/Phong模型中，我们对漫反射的系数是基于入射光和击中的点的法线的角度。在这种情况下，系数的计算代码大致如下：

float DiffuseCoeff(in float3 pos, in flo]]></description><category></category></item><item><title><![CDATA[Unity shader教程-第五课：自定义光照模型之Half Lambert模型]]></title><link>https://blog.csdn.net/TinyHum/article/details/44016075</link><guid>https://blog.csdn.net/TinyHum/article/details/44016075</guid><author>TinyHum</author><pubDate>Mon, 02 Mar 2015 11:07:00 +0800</pubDate><description><![CDATA[Half Lambert光照模型是Valve公司在制作”半条命“游戏时发明的，用来给在比较暗的区域显示物体。总体来说，该光照模型提高了物体表面的漫反射光。下图是Valve的示例，左手边是Lambert模型，右手边是Half Lambert模型。









使用我们原来的基础的shader，我们把LightingBasicDiffuse()方法改成如下：



i]]></description><category></category></item><item><title><![CDATA[Unity shader教程-第四课：自定义光照模型（方程）]]></title><link>https://blog.csdn.net/TinyHum/article/details/43407085</link><guid>https://blog.csdn.net/TinyHum/article/details/43407085</guid><author>TinyHum</author><pubDate>Mon, 02 Feb 2015 13:09:12 +0800</pubDate><description><![CDATA[Unity的自定义光照模型的使用。Unity默认的光照模型非常有限，在现实的使用中各种不同的材质和环境需要各种各样的光照模型，本篇介绍怎么在Unity shader中使用自定义的光照模型。]]></description><category></category></item><item><title><![CDATA[Unity shader教程-第三课：实践！同一个shader，多个material。]]></title><link>https://blog.csdn.net/TinyHum/article/details/43269767</link><guid>https://blog.csdn.net/TinyHum/article/details/43269767</guid><author>TinyHum</author><pubDate>Thu, 29 Jan 2015 13:04:46 +0800</pubDate><description><![CDATA[一步一步教你写的unity surface shader教程系列。]]></description><category></category></item><item><title><![CDATA[Unity shader教程-第二课：Shader的框架和Properties详细介绍]]></title><link>https://blog.csdn.net/TinyHum/article/details/43197165</link><guid>https://blog.csdn.net/TinyHum/article/details/43197165</guid><author>TinyHum</author><pubDate>Tue, 27 Jan 2015 17:19:18 +0800</pubDate><description><![CDATA[详细介绍Unity的Surface shader的Properties部分，案例形式讲解，步步到位。]]></description><category></category></item><item><title><![CDATA[Unity shader教程-第一课：写shader和应用shader的流程]]></title><link>https://blog.csdn.net/TinyHum/article/details/43117541</link><guid>https://blog.csdn.net/TinyHum/article/details/43117541</guid><author>TinyHum</author><pubDate>Sun, 25 Jan 2015 19:55:46 +0800</pubDate><description><![CDATA[这是我们Unity shader（着色器）教程的第一课，在这节课中，你会学到怎么样来用程序来编写一个在Unity中能使用的着色器：漫反射着色器。这节课的内容主要让我们熟悉创建shader和应用shader的流程。

准备工作：



安装Unity版本4.6以上创建一个新的工程菜单GameObject | 3D Object | Plane创建出一个平面，作为我们的地面菜单GameOb]]></description><category></category></item><item><title><![CDATA[Unity的Cover flow的实现包（2个）]]></title><link>https://blog.csdn.net/TinyHum/article/details/27328561</link><guid>https://blog.csdn.net/TinyHum/article/details/27328561</guid><author>TinyHum</author><pubDate>Wed, 28 May 2014 13:34:54 +0800</pubDate><description><![CDATA[苹果的mac机上预览图片，有一个所谓的cover flow的效果，这里是2个相关的实现。]]></description><category></category></item><item><title><![CDATA[Unity应用怎么暂停（Pause）]]></title><link>https://blog.csdn.net/TinyHum/article/details/27194151</link><guid>https://blog.csdn.net/TinyHum/article/details/27194151</guid><author>TinyHum</author><pubDate>Tue, 27 May 2014 13:21:32 +0800</pubDate><description><![CDATA[很多时候，应用程序或者是游戏需要用上暂停功能，unity提供了不少便捷的方式，列在下面：


1、在editor中，按下pause按钮即可暂停
2、如果在代码中控制，可以通过设置Time.timeScale = 0来实现暂停。
3、如果你通过Time.timeScale = 0设置了暂停，但是你在某些地方还需要有动画之类的，那么可以在实现动画的地方用上Time.realtimeSince]]></description><category></category></item><item><title><![CDATA[Unity的Coroutine]]></title><link>https://blog.csdn.net/TinyHum/article/details/27177279</link><guid>https://blog.csdn.net/TinyHum/article/details/27177279</guid><author>TinyHum</author><pubDate>Tue, 27 May 2014 10:16:00 +0800</pubDate><description><![CDATA[对于Coroutine，编译器需要产生一些代码，在每次的大循环中，Unity的Update()返回后，保证是yield后的代码被正确调用，这样就形成了我们看到的一个function能分段执行的机制。]]></description><category></category></item><item><title><![CDATA[解决fbxsdk链接出现的unresolved external symbol KFbxSurfaceMaterial::ClassId]]></title><link>https://blog.csdn.net/TinyHum/article/details/25639187</link><guid>https://blog.csdn.net/TinyHum/article/details/25639187</guid><author>TinyHum</author><pubDate>Mon, 12 May 2014 17:20:57 +0800</pubDate><description><![CDATA[早期的话]]></description><category></category></item><item><title><![CDATA[保存网格(mesh)到磁盘上]]></title><link>https://blog.csdn.net/TinyHum/article/details/24009909</link><guid>https://blog.csdn.net/TinyHum/article/details/24009909</guid><author>TinyHum</author><pubDate>Fri, 18 Apr 2014 13:15:22 +0800</pubDate><description><![CDATA[Unity提供了很方便的工具来保存mesh之类的，下面的代码挂在GameObject上后，按下F键能把mesh（该GameObject必须有mesh组件）保存到磁盘的Assets目录下。在磁盘上是.asset的文件，在project中看到的是一个mesh符号的文件。代码完全是示意作用，没有做严格测试。]]></description><category></category></item><item><title><![CDATA[不使用引擎，如何开发游戏]]></title><link>https://blog.csdn.net/TinyHum/article/details/23768849</link><guid>https://blog.csdn.net/TinyHum/article/details/23768849</guid><author>TinyHum</author><pubDate>Tue, 15 Apr 2014 16:35:49 +0800</pubDate><description><![CDATA[一个游戏，还有物理引擎、AI引擎等很重要的几个引擎。而所谓的引擎，很大的程度上，是一个”专注于某个功能的模块“。软件中有很多的模块，为什么只有渲染、物理等才被成为引擎，跟汽车的引擎一样，因为这个模块可能比较核心，在所有的组件中功能更有决定性，所以才被叫做引擎。有人可能会说，现在的游戏，决定性的是游戏的内容、逻辑，那为什么没有逻辑引擎这个说法。这个的关键之处在于，逻辑不能成为一个很通用的模块。所以，才没有逻辑引擎这个说法。]]></description><category></category></item><item><title><![CDATA[抓githum的源代码]]></title><link>https://blog.csdn.net/TinyHum/article/details/8209998</link><guid>https://blog.csdn.net/TinyHum/article/details/8209998</guid><author>TinyHum</author><pubDate>Fri, 11 Apr 2014 18:37:47 +0800</pubDate><description><![CDATA[因为抓Cafu engine的代码，需要用到git，Cafu官网上给的命令是

git clone https://bitbucket.org/cafu/cafu.git Cafu


命令行工具不大会，于是先后安装


1、msysgit
http://code.google.com/p/msysgit/



2、tortoisegit 和 简体中文包
http:/]]></description><category></category></item><item><title><![CDATA[Unity利用双相机巧做水印功能]]></title><link>https://blog.csdn.net/TinyHum/article/details/18230525</link><guid>https://blog.csdn.net/TinyHum/article/details/18230525</guid><author>TinyHum</author><pubDate>Wed, 09 Apr 2014 18:18:38 +0800</pubDate><description><![CDATA[两个相机，都用正交，第一个depth比第二个小，第一个负责非水印图的渲染，第二个负责渲染水印。两个相机都渲染到同一个RenderTarget上。这样渲染出来的RenderTarget就是带水印的图。]]></description><category></category></item><item><title><![CDATA[多场景下天空盒、雾、环境光的设置]]></title><link>https://blog.csdn.net/TinyHum/article/details/22931579</link><guid>https://blog.csdn.net/TinyHum/article/details/22931579</guid><author>TinyHum</author><pubDate>Sun, 06 Apr 2014 18:50:55 +0800</pubDate><description><![CDATA[项目中，因分工关系，美术的场景和程序的场景分开。美术的场景中主要负责整体的场景的布置，程序的场景注重交互、UI等。因为存在多个美术场景之间的跳转，而且在不同的美术场景里用了不同的天空盒，发现unity内部管理不是很清楚，所以采用了自己的方式。]]></description><category></category></item><item><title><![CDATA[unity3d缩短splash screen的时间]]></title><link>https://blog.csdn.net/TinyHum/article/details/22914675</link><guid>https://blog.csdn.net/TinyHum/article/details/22914675</guid><author>TinyHum</author><pubDate>Fri, 04 Apr 2014 09:35:14 +0800</pubDate><description><![CDATA[在unity3d中，splash screen的显示时间是由加载第一个场景(Build Setting中的0号)里面的资源的速度决定的，因此，如果要缩短splash screen的时间，我们能做的就是在0号场景中尽可能的少用资源。可以借鉴的方式如下

1、在0号场景中放置一个empty game object；
2、在该game object上挂一个脚本，这个脚本里有代码做 applicat]]></description><category></category></item><item><title><![CDATA[webplayer中截屏]]></title><link>https://blog.csdn.net/TinyHum/article/details/22867875</link><guid>https://blog.csdn.net/TinyHum/article/details/22867875</guid><author>TinyHum</author><pubDate>Thu, 03 Apr 2014 14:14:43 +0800</pubDate><description><![CDATA[因为webplayer的限制，在webplayer上运行unity程序的时候，截屏并不像本地运行程序那样。基本思路是：
1、通过相应的接口把屏幕像素读取到内存，并且encode成png格式；
2、通过wwwform类把png格式的流由服务器接收，并且存在服务器上，做成链接，然用户下载；


unity官方相关的代码例子：





// Grab a screen shot ]]></description><category></category></item><item><title><![CDATA[Unity中使用ios的plugin出现EntryPointNotFoundException错误]]></title><link>https://blog.csdn.net/TinyHum/article/details/21638907</link><guid>https://blog.csdn.net/TinyHum/article/details/21638907</guid><author>TinyHum</author><pubDate>Thu, 20 Mar 2014 18:26:53 +0800</pubDate><description><![CDATA[今天一朋友用unity，有功能需要写ios插件，遇上了不少问题，记录于此，希望能帮到同样问题的人。


问题一：XCode编译出.a后，使用Unity编译出XCode工程，工程里没有.a文件
解决方案：Unity对.a的放置目录有限制，需要把.a放置在Plugins/ios目录下（该目录自己新建）


问题二：XCode模拟器出现EntryPointNotFoundException]]></description><category></category></item></channel></rss>