07 2013 档案

ATL ActiveX 非管理员权限发布(支持vs2005)
摘要:在win7系统中,vs2005开发的atl activex需要管理员权限才能注册。解决方法:PerUserRegistration.h#pragma onceclass PerUserRegistration{public: PerUserRegistration(bool perUser = true); ~PerUserRegistration();private:#if _ATL_VER #include PerUserRegistration::PerUserRegistration(bool perUser)#if _ATL_VER = 0900 AtlSetPer... 阅读全文

posted @ 2013-07-30 12:28 不吃鱼的猫 阅读(837) 评论(0) 推荐(0)

linearizing the depth in vertex shader
摘要:please refer to http://www.mvps.org/directx/articles/linear_z/linearz.htmWhen using a programmable vertex shader, we have direct control of the transformation process, and can implement our own. Vertex position can be read from the input registers, manipulated however we like, then output as a 4D ho 阅读全文

posted @ 2013-07-11 13:07 不吃鱼的猫 阅读(380) 评论(0) 推荐(0)

Normal Vector Using WorldInverseTranspose
摘要:shader里面经常看到normal向量是用WorldInverseTranspose矩阵做变换的,有时候也可以用WorldMatrix变换。原理:If your object is only ever rotated and translated, you can transform normal... 阅读全文

posted @ 2013-07-08 18:48 不吃鱼的猫 阅读(962) 评论(0) 推荐(0)