摘要: 一、基础 对于彩色转灰度,有一个很著名的心理学公式:Gray = R*0.299 + G*0.587 + B*0.114二、整数算法 而实际应用时,希望避免低速的浮点运算,所以需要整数算法。 注意到系数都是3位精度的没有,我们可以将它们缩放1000倍来实现整数运算算法:Gray = (R*29... 阅读全文
posted @ 2015-05-25 11:05 Unikanade 阅读(225) 评论(0) 推荐(0) 编辑
摘要: From:http://gamedev.stackexchange.com/questions/26187/why-are-textures-always-square-powers-of-two-what-if-they-arentWhy are the resolution of texture... 阅读全文
posted @ 2015-03-20 11:43 Unikanade 阅读(273) 评论(0) 推荐(0) 编辑
摘要: from:http://www.uml.org.cn/sjms/201211023.asp设计模式六大原则作者:zhengzhb ,发布于2012-11-2,来源:CSDN目录:设计模式六大原则(1):单一职责原则设计模式六大原则(2):里氏替换原则设计模式六大原则(3):依赖倒置原则设计模式六大原... 阅读全文
posted @ 2015-03-18 15:03 Unikanade 阅读(103) 评论(0) 推荐(0) 编辑
摘要: from:http://www.cnblogs.com/bitzhuwei/p/explain-offset-and-tiling-with-Unity-and-3ds.html图文详解Unity3D中Material的Tiling和Offset是怎么回事Tiling和Offset概述Tiling表... 阅读全文
posted @ 2015-03-17 11:41 Unikanade 阅读(293) 评论(0) 推荐(0) 编辑
摘要: From: http://www.redblobgames.com/grids/hexagons/ 阅读全文
posted @ 2015-03-15 21:04 Unikanade 阅读(164) 评论(0) 推荐(0) 编辑
摘要: form:http://www.onevcat.com/2013/08/shader-tutorial-2/关于本系列这是Unity3D Shader入门指南系列的第二篇,本系列面向的对象是新接触Shader开发的Unity3D使用者,因为我本身自己也是Shader初学者,因此可能会存在错误或者疏漏... 阅读全文
posted @ 2015-03-13 16:16 Unikanade 阅读(244) 评论(0) 推荐(0) 编辑
摘要: from:http://onevcat.com/2013/07/shader-tutorial-1/动机自己使用Unity3D也有一段时间了,但是很多时候是流于表面,更多地是把这个引擎简单地用作脚本控制,而对更深入一些的层次几乎没有了解。虽然说Unity引擎设计的初衷就是创建简单的不需要开发者操心的... 阅读全文
posted @ 2015-03-13 16:13 Unikanade 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 作者:Andrey Mishkinis在本文中,我将解释如何贴图的抛雪球算法制作出更加自然的地形。这种算法在3D和2D游戏的着色器中都可使用。上地形贴图的最常用方法之一是混合多个图层。各图层有一个确定地形纹理存在范围的不透明贴图。这种方法就是,把不透明贴图置于更高层级,露出不透明贴图是部分或完全透明... 阅读全文
posted @ 2015-03-13 15:56 Unikanade 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 原创文章如需转载请注明:转载自风宇冲Unity3D教程学院前言:本文不是讲地形编辑器的使用,而是主要讲解(1)地形相关知识(2)使用代码创建地形(3)使用AnimationCurve创建曲面地形(4)使用photoshop绘制地形表面,即SplatAlphaMap(5)使用代码为地形添加树地形本讲结... 阅读全文
posted @ 2015-03-13 13:26 Unikanade 阅读(1137) 评论(0) 推荐(0) 编辑
摘要: from:http://theantranch.com/blog/understanding-spherecasts-in-unityUnderstanding Spherecasts in UnitySphereCast and all related pages are confusing.Th... 阅读全文
posted @ 2015-03-06 10:59 Unikanade 阅读(354) 评论(0) 推荐(0) 编辑