
Unity3D
一抹天际线
这个作者很懒,什么都没留下…
展开
-
Unity study 141125-1
协同程序原理 在主程序运行时同时开启另一段逻辑处理,来协同当前程序的执行。FlappyBird 制作原创 2014-11-25 23:05:49 · 733 阅读 · 0 评论 -
增强现实版攻击特效
游戏主要逻辑:1.坦克等3d模型随屏幕一起移动,即放在父节点transform为reset的条件下作为camera的子节点。模型在相机前的位置通过调整其与它的父节点偏移。不然由于嵌套的多层父子关系带着相对偏移导致运行时放置在相机结点下会出现不可控的结果。2.由屏幕点击位置,确定世界位置点B,相机位置点A,AB两点连成一条线,由此延伸到碰撞球体,得到球体模拟的世界空间中世界目标点,即为攻击目原创 2015-05-12 22:26:38 · 754 阅读 · 0 评论 -
Particle System调整
1.Shape 调整为box,x,y,z分别为0。2.Velocity over lifetime,x,y,z对应于想要粒子朝向的方向。3.Renderer下面的Render mode 设置为Mesh,这样可以调整gameobject的transform的rotation来调整朝向.原创 2015-05-29 09:37:51 · 810 阅读 · 0 评论 -
制作lightMap
Link: http://www.unitysnippets.theoriginalyeti.co.uk/index.php/2014-08-18-21-13-43转载 2015-06-26 19:03:20 · 576 阅读 · 0 评论 -
Particle system study section 1
Preview: 1.The particle system exist the phenomenon of scaling with camera viewpoint. 2.Change the legacy particle system into new particle system.Details: 1.After effects particle system.The textur原创 2015-06-26 17:23:12 · 595 阅读 · 0 评论 -
欢迎使用优快云-markdown编辑器
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl原创 2015-06-10 22:38:03 · 387 阅读 · 0 评论 -
3d 视频切换到全屏播放
项目:3d场景中播放一个小窗口的视频,点击视频,放大为屏幕上的全屏视频。再点击视频,缩小为原来的小窗口的视频继续播放视频。1.Unity3D 中,在三维场景中呈现播放视频,将视频组件放到相应的Plane下,调整其位置,缩放,旋转。2.在视频所附Plane上放置世界空间的UI canvas Button,大小一致,处于透明状态,注意UGUI的Image组件不能remove,butto原创 2015-06-10 22:01:44 · 3367 阅读 · 0 评论 -
UGUI 学习笔记
1.Transform.sizeDelta The size of this RectTransform relative to the distances between the anchors. If the anchors are together, sizeDelta is the same as size. If the anchors are in each of the four原创 2015-06-12 11:55:41 · 486 阅读 · 0 评论 -
What is the difference between using a script and an animation?
1.Scripted movement is easier for movements that can be described as a simple algorithm (the simplest being moving in a straight line at a fixed pace). Scripted movement is prohibitively hard for原创 2015-06-12 12:17:01 · 458 阅读 · 0 评论 -
Shader Usage method
1.The words is a picture with transparency use the shader you will find that the words color is affected by the behind particle color because It is transparent. 2.Solution:Use the shader- you原创 2015-07-06 15:02:28 · 536 阅读 · 0 评论 -
Shader 学究
CubemapA Cubemap is a collection of six square textures that represent the reflections on an environment. The six squares form the faces of an imaginary cube that surrounds an object; each face represe转载 2015-11-22 17:01:08 · 416 阅读 · 0 评论 -
关于Unity中Shader的内置值
关于Unity中Shader的内置值转载 2015-12-21 21:16:49 · 730 阅读 · 0 评论 -
UGUI Make Use Of Grid Layout Group
1.ButtonsGrid layout Group,Set group of Buttons vertical by one column,but The Size is hard to arrange.So1>Create new GameObject in canvas with component of rect transform and Grid layout原创 2015-04-06 14:15:09 · 703 阅读 · 2 评论 -
Animation 动画如何改变scale值
1.一个的几何曲线变化函数?2.就是线性变化函数?3.这个动画如何做?原创 2015-03-09 23:01:12 · 904 阅读 · 0 评论 -
Playmaker 如何让设计人员也能用
Playmaker 状态机,State,Action,Event,variables.如何在这四个要素组建一个封装的功能模块,像垒积木一样,凭想象创造就够了。Playmaker并不简单,非程序人员还需更多综合素质,数学,Unity3d游戏编程基础。最终目的:框架,积木模块,设计思路。问题:如何做到。原创 2015-03-08 23:05:36 · 847 阅读 · 0 评论 -
SnakeGame Conclusion
贪吃蛇总结游戏效果:实现了贪吃毛毛虫(贪吃蛇改成了毛毛虫)连续行走,非一格一格行进,每吃一个苹果就在尾巴后面长一个身体结点。身体结点像铰链一样连在一起行进;当毛毛虫撞到墙壁反弹,并调整头的朝向为当前行进方向;鼠标按下,控制蛇头运动,拖动鼠标改变移动方向,松开鼠标停止控制,在同一鼠标点击位置继续按下鼠标并拖动,保持上一次鼠标点击蛇头朝向;游戏结束判定规则是蛇头撞到蛇身(除去紧挨蛇头的身体结点)则原创 2014-11-26 12:45:58 · 685 阅读 · 0 评论 -
Raycast用法
1.射线RayRay from the camera The Ray always corresponds to a point in the view, so the Camera class provides the ScreenPointToRay and ViewportPointToRay functions. The difference between the原创 2014-11-28 18:36:28 · 1558 阅读 · 0 评论 -
万向锁
这篇文章讲的很好点击打开链接转载 2015-01-11 11:51:47 · 538 阅读 · 0 评论 -
贪吃蛇总结之二
关于用Playmaker做显示分数的板子1.对于二位数,个位,十位,百位。在一个状态机里依次对个位,十位,百位赋值,所以赋值用同样的状态实现,即赋值0,1,2,3,4,5,6,7,8,9十个值是固定的,可重复使用。2.对于所得分数,算出个位,十位,百位数。3.每一位数的显示板子对应显示0,1,2,3,4,5,6,7,8,9十个值的材质。当分数超过9显示十位数分数板,超过99显示百位数分原创 2014-12-02 10:27:04 · 796 阅读 · 0 评论 -
unity Inspector
Editor interfacepublic enum Smoothing : int { None, Default, Medium, Aggressive }public Smoothing smoothing = Smoothing.Default;原创 2014-12-07 12:16:19 · 872 阅读 · 0 评论 -
在Unity3D中使用DV&Kinect
kinect的就是去看看脚本,基本用到的也就是些get开头的方法 If you need to invoke a public function from KinectManager in your scripts, use the following line to get reference to KinectManager: ‘KinectManager kinectMa原创 2014-12-07 20:49:26 · 2123 阅读 · 0 评论 -
Does Unity Care is a texture of power of two
1.I`ve heard rumours that future graphics cards are not longer bound to the pow 2 rule, but current Graphics cards uses a power of two texturesizes to work with them. 2, 4 , 8, 16 ... 128, 256,转载 2015-02-11 23:13:54 · 895 阅读 · 0 评论 -
Itween Stop
Itween stop .Question:Console-Error:ArgumentOutOfRangeException: startIndex + length > this.lengthParameter name: lengthSystem.String.Substring (Int32 startIndex, Int32 length) (at /Users/bu原创 2015-03-02 23:06:55 · 1355 阅读 · 0 评论 -
Particle Become Smaller When Game running
Particle system start working once it's attached gameObject is enabled .原创 2015-02-28 23:53:11 · 443 阅读 · 0 评论 -
Itween is coroutine
1.Itween is a coroutine which would make mistake once its attached game Object is disabled,2.coroutine is running in update method.原创 2015-03-03 22:27:59 · 569 阅读 · 0 评论 -
Playmaker edit Actions parameters at runtime
Solution:1.set Fsm variables ,by object of Action type2.A new Action accessing the Action to edit the parameters at runtime3. By writing special script原创 2015-03-04 22:54:18 · 501 阅读 · 0 评论 -
Unity3d美颜滤镜
这个美颜滤镜效果,是全局磨皮,保留了皮肤细节,去除了青春痘和皱纹,整体提亮了下,人一下子变漂亮了。手机上运行良好。借鉴了网上的平湖美颜算法,还有双边滤波。也参考shadertoy上的美颜效果。最后做出一版在unity运行的简单美颜效果。相关文章:平湖法磨皮算法:http://www.cnblogs.com/Imageshop/p/4709710.html简单探讨可牛影像软件中具...原创 2017-09-14 16:00:40 · 8225 阅读 · 6 评论