2018年8月23日

摘要: 原理 根据能量守恒,以及一系列光照原理得出微表面BRDF(Bidirectional Reflectance Distribution Function)公式 // D(h) F(v,h) G(l,v,h) //f(l,v) = // 4(n·l)(n·v) D;微表面法线分布函数,选取ggx近似 阅读全文
posted @ 2018-08-23 14:45 marcher 阅读(399) 评论(0) 推荐(0) 编辑

2018年8月20日

摘要: 1max里的模型,角度值都是0,到了unity里就有个x轴-90度,需要在max里,按x轴转正90度,到unity里就都是0,0,0 2动画有抖动,是因为动画压缩导致的 阅读全文
posted @ 2018-08-20 17:53 marcher 阅读(127) 评论(0) 推荐(0) 编辑

2014年7月28日

摘要: 手游休闲单机游戏,用户主要来源于三大运营商,付费方式主要为短信付费,付费率和付费值偏低,生命周期短,基本沦落到骗钱为生了,遇到的骗术:1免费英雄,免费道具,后面好的要花钱,但是显示不明显,玩家误以为也是免费的,...2退出时,提示消费,玩家习惯以为是确认取消,误操作,结果就扣钱了降低付费玩家投诉率的... 阅读全文
posted @ 2014-07-28 16:10 marcher 阅读(231) 评论(0) 推荐(0) 编辑

2014年7月21日

摘要: JsonDecoder={ pos:0, isDigit:function(ch){ return ( ch >= '0' && ch = 'A' && ch = 'a' && ch <= 'f' ) ); }, toTrue:function(str, from,to) { JsonDeco... 阅读全文
posted @ 2014-07-21 19:39 marcher 阅读(1723) 评论(0) 推荐(0) 编辑

2014年6月23日

摘要: cocos2dx里加载cocosudio导出的ui配置文件,在这之上封装了一下,封装核心类包括UIManager,UILayer,UIOwnerUIManager是所有ui总的管理类,代码如下:UIManager = { battle = 1, city = 2, login = 4, ... 阅读全文
posted @ 2014-06-23 16:32 marcher 阅读(820) 评论(0) 推荐(0) 编辑

2014年6月21日

摘要: 多玩大厅在接受到了页面的documentcompleted事件,才会把遮在页面前面的YY游戏中去掉,a56爆大奖在线娱乐们的游戏页面,YY大厅接收不到事件,a56爆大奖在线娱乐就排查了下发现原因在于js脚本里有个用iframe做上报功能的代码,大致代码如下:document.getElementById("report").src=... 阅读全文
posted @ 2014-06-21 22:27 marcher 阅读(194) 评论(0) 推荐(0) 编辑

2014年6月18日

摘要: local uilocal function createLayerUI() if not ui then ui=cc.Layer:create(); createLayerUI=nil; end return ui;endlocal sclocal function createLayerSc... 阅读全文
posted @ 2014-06-18 17:57 marcher 阅读(869) 评论(0) 推荐(0) 编辑
摘要: local uilocal function createLayerUI() if not ui then ui=cc.Layer:create(); createLayerUI=nil; end return ui;endlocal sclocal function createLayerSc... 阅读全文
posted @ 2014-06-18 15:54 marcher 阅读(324) 评论(0) 推荐(0) 编辑
摘要: local uilocal function createLayerUI() if not ui then ui=cc.Layer:create(); createLayerUI=nil; end return ui;endlocal sceneGame=cc.Scene:create()sce... 阅读全文
posted @ 2014-06-18 13:59 marcher 阅读(299) 评论(0) 推荐(0) 编辑

2014年6月17日

摘要: #include #include #include "FreeImage.h"#include #include #pragma comment(lib, "FreeImage.lib")GLuint texture; // Storage For One Texture ( NEW )/... 阅读全文
posted @ 2014-06-17 18:22 marcher 阅读(1539) 评论(0) 推荐(0) 编辑

导航