06 2016 档案

unity, animtion倒放
摘要:AnimationState.speed Description The playback speed of the animation. 1 is normal playback speed. A negative playback speed will play the animation ba 阅读全文

posted @ 2016-06-30 18:47 wantnon 阅读(855) 评论(0) 推荐(0) 编辑

反射矩阵(reflection matrix)推导
摘要:设平面为(nx,ny,nz,d),则以此平面为镜面的列主序反射矩阵如下: 推导如下: 一,平面的表示: 如图所示,过点p,法向量为n的平面,可表示为: np+d=0 其中d为平面到原点的有向距离。如果平面面向原点,则d为正,如果平面背向原点,则d为负。 于是平面可以表示为四维向量(nx,ny,nz, 阅读全文

posted @ 2016-06-30 18:41 wantnon 阅读(15719) 评论(1) 推荐(0) 编辑

unity, 用unity profiler进行真机profile,需要退出360
摘要:用unity profiler进行真机profile,需要退出360。 阅读全文

posted @ 2016-06-28 16:53 wantnon 阅读(608) 评论(0) 推荐(0) 编辑

unity, SkinnedMeshRenderer.updateWhenOffscreen
摘要:发现,必须勾选update when offscreen,当skinnedMeshRenderer发生形变时bounds才会更新。 阅读全文

posted @ 2016-06-28 14:30 wantnon 阅读(1229) 评论(0) 推荐(0) 编辑

unity, particleSystem的batch优化
摘要:一,单个光效的batch优化 理想状态下一个由若干粒子堆出来的光效只需要一至两个draw call: (1)至多使用alpha blend(垫底色)和additive(曝光)两个材质球,两shader均需要支持顶点色,不需要带tint color。 (2)使用粒子系统的Start Color和Col 阅读全文

posted @ 2016-06-27 10:17 wantnon 阅读(3793) 评论(0) 推荐(0) 编辑

unity, 同步物体坐标一定要在LateUpdate中进行
摘要:设a为主动物体,b为跟随物体。 如果a,b都在同一个Update里更新坐标,那么两者自然是同步的。 如果a在a.Update里更新位置,而b在b.Update里将自己的位置更新为与a相同,那就会有误差。 而且即使a的运动非常缓慢平滑,b也会出现到处乱闪的情况(总之不是我们臆想得那样,b至多比a延迟一 阅读全文

posted @ 2016-06-26 14:08 wantnon 阅读(2136) 评论(0) 推荐(0) 编辑

unity, LoadLevelAdditive到帧末才完成
摘要:Application.LoadLevelAdditive文档中说: LoadLevel and LoadLevelAdditive don't happen immediately - a new level is loaded after the current game frame finis 阅读全文

posted @ 2016-06-26 01:20 wantnon 阅读(1028) 评论(0) 推荐(0) 编辑

unity,将camera设为don't clear在android上会显示不正常
摘要:将camera设置为don't clear,在pc和ios上显示没问题,但在android上显示不正常,改为only depth可以。 阅读全文

posted @ 2016-06-21 20:17 wantnon 阅读(701) 评论(0) 推荐(0) 编辑

[Unity 5.2] The imported type `UnityEngine.Advertisements.ShowResult' is defined multiple times
摘要:unityAds报这个错: The imported type `UnityEngine.Advertisements.ShowResult' is defined multiple times google了一下,说是由于unit5.2内置了unityAds,不必再从asset store导入un 阅读全文

posted @ 2016-06-21 20:14 wantnon 阅读(2403) 评论(0) 推荐(0) 编辑

proBuilder编辑的模型变黑
摘要:更正: 旧帖中方法有误,解决不了问题。 更正确法: 将proBuilder创建的模型的Static属性由“-”改为去掉勾选: 旧帖 proBuilder编辑的模型变黑解法: 1,Unity Preferences->ProBuilder Basic->Disable Auto UV2 Generat 阅读全文

posted @ 2016-06-19 15:54 wantnon 阅读(808) 评论(0) 推荐(0) 编辑

maxsdk sample中3dsexp.rc点不开并提示specstrings.h中找不到sal.h解法
摘要:在网上下载sal.h文件并拷贝到specstrings.h所在目录(C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include)即可。 sal.h下载:http://pan.baidu.com/s/1hswd5tU 阅读全文

posted @ 2016-06-14 01:06 wantnon 阅读(259) 评论(0) 推荐(0) 编辑

安装max plugin wizard
摘要:参考:http://liweizhaolili.blog.163.com/blog/static/162307442013117731953/ 阅读全文

posted @ 2016-06-13 11:56 wantnon 阅读(221) 评论(0) 推荐(0) 编辑

max plugin wizard,project creation faild解法
摘要:两点需要注意: 1,要将maxsdk的3dsmaxPluginWizard文件夹设为只读。 2,要将3dsmaxPluginWizard.vsz中的"Wizard="设置为正确的vs版本号。例如在vs2010中安装max plugin wizard,则应设置为: Wizard=VsWizard.Vs 阅读全文

posted @ 2016-06-13 11:12 wantnon 阅读(290) 评论(0) 推荐(0) 编辑

unity, 由5.2.1f1升级到5.3.5f1,2d物理不正常解法
摘要:由5.2.1f1升级到5.3.5f1,物理不正常。 最后发现问题出在我的游戏中的下面一段代码: Vector2 targetPosition=...; Vector2 targetVelocity=...; GetComponent<Rigidbody2D> ().MovePosition (tar 阅读全文

posted @ 2016-06-12 20:14 wantnon 阅读(792) 评论(0) 推荐(0) 编辑

原创科幻短篇《腿控》
摘要:前一阵子发过一条说说,提到写一个“屌丝在外星人点拔下由腿控变为脱离低级趣味的人”的故事的想法,路子借鉴刘慈欣的“大艺术三部曲”和《山》。经过无数个地铁上下班,终于谋成本篇。格调虽不髙,宏扬主旋律! 以下为正文: 一一腿控 沈聪坐在地铁上,抬了一下眼皮,正对面坐着一个美女,面容清秀,长发微卷,穿了件露 阅读全文

posted @ 2016-06-09 11:53 wantnon 阅读(2220) 评论(2) 推荐(1) 编辑

maxscript,#号和$号
摘要:一,#号: 1,数组 #(123, "hi") 2,系统目录 fileName = getDir #scripts + "\\xxx.ms" 二,$号 节点路径$box03/box01 阅读全文

posted @ 2016-06-03 16:36 wantnon 阅读(386) 评论(0) 推荐(0) 编辑

maxscript,执行选中代码片段
摘要:选中一行或几行代码,然后按数字小键盘上的Enter键,即可单独运行之。此法方便调试。 阅读全文

posted @ 2016-06-03 14:10 wantnon 阅读(198) 评论(0) 推荐(0) 编辑

maxscript,MAXScript Listener下输入print "hi"为什么输出两次
摘要:第一次是print "hi"的输出,第二次是print "hi" 的返回值被输出。 参考:https://davewortley.wordpress.com/2012/06/25/lesson-3-challenge-and-the-maxscript-listener/ 阅读全文

posted @ 2016-06-03 14:06 wantnon 阅读(349) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示