自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (10)
  • 收藏
  • 关注

原创 OpenGL纹理上下颠倒翻转的三种解决办法

综述在使用OpenGL函数加载纹理到图形时,经常遇到纹理上下颠倒的问题。原因是因为OpenGL要求纹理坐标原点在图片最下面,如图: 而图片信息中的原点一般都在最上方,一行行记录下来的,就会导致整个图片上下颠倒了。 如图: 从这个思路触发共有三种办法解决问题:一.翻转顶点信息中的纹理坐标原始顶点如图: 因为纹理坐标的范围是0-1,所以翻转的话都统一用1去减 得到正确的图片: 二

2016-07-18 11:56:04 16734 1

原创 像素横纵比公式的原理

在《3D数学基础-图形与游戏开发》一书中,看到了像素横纵比这个概念。当然很好理解,比如像素是正方形,那么像素横纵比就是1喽。关于像素横纵比细节,请参考MSDN:https://msdn.microsoft.com/zh-cn/library/cc294571.aspx,我在引用之后将会解析一下公式含义引用如下:像素纵横比是指像素的宽 (x) 与高 (y) 之比。正方形像素的比例

2016-07-11 16:04:20 4909

原创 使用BitConverter.GetBytes转换double到byte[]中,得到的数据怎么理解

一.获得用户输入的密钥我这里的讨论使用的平台C# 。 我原本的目的是为了对一组byte[]进行简单的异或加密,而密钥就是从用户输入而来。那么通过何种控件何种方式获得用户的输入呢?1.方式一,Textbox第一种就是直接使用Textbox接收用户输入的string,然后使用Encoding的GetBytes[]方法获得byte[]密钥数组。这种的优点是很直观,缺点是用户并不知道最终的密钥Byte[]

2016-07-05 15:12:02 6197

OpenGL 数学库 GLM

GLM是OpenGL Mathematics的缩写,专门为OpenGL量身定做的数学库,它是一个只有头文件的库,也就是说我们只需包含合适的头文件就行了;不用链接和编译。把头文件的根目录复制到你的includes文件夹,然后你就可以使用这个库了。官网:http://glm.g-truc.net/0.9.5/index.html。

2016-07-18

TortoiseSVN-1.9.4-x64

SVN是Subversion的简称,是一个开放源代码的版本控制系统,相较于RCS、CVS,它采用了分支管理系统,它的设计目标就是取代CVS。互联网上很多版本控制服务已从CVS迁移到Subversion。说得简单一点SVN就是用于多个人共同开发同一个项目,共用资源的目的。 这个版本的官方说明: This is a a bugfix release with two security issues fixed in the svn library: CVE-2016-2167: svnserve/sasl may authenticate users using the wrong realm CVE-2016-2168: Remotely triggerable DoS vulnerability in mod_authz_svn during COPY/MOVE authorization check Please read the release notes to get a list of many of the new features in TortoiseSVN. Apart from the features listed in the release notes, there were also a lot of smaller improvements which are too many to list. Before upgrading from pre 1.9 versions please read the release notes. Please read those thoroughly before you upgrade to TortoiseSVN 1.9 to avoid any surprises.

2016-07-08

TortoiseSVN_1.9.4_win32

SVN是Subversion的简称,是一个开放源代码的版本控制系统,相较于RCS、CVS,它采用了分支管理系统,它的设计目标就是取代CVS。互联网上很多版本控制服务已从CVS迁移到Subversion。说得简单一点SVN就是用于多个人共同开发同一个项目,共用资源的目的。 这个版本的官方说明: This is a a bugfix release with two security issues fixed in the svn library: CVE-2016-2167: svnserve/sasl may authenticate users using the wrong realm CVE-2016-2168: Remotely triggerable DoS vulnerability in mod_authz_svn during COPY/MOVE authorization check Please read the release notes to get a list of many of the new features in TortoiseSVN. Apart from the features listed in the release notes, there were also a lot of smaller improvements which are too many to list. Before upgrading from pre 1.9 versions please read the release notes. Please read those thoroughly before you upgrade to TortoiseSVN 1.9 to avoid any surprises.

2016-07-08

Untiy官方资源Car主控脚本CarController全注释版本

本资源是我关于官方资源Standard Assets -->Vehicles-->Car中车的主控脚本CarController.cs的个人全注释,及一些心得,我当时觉得这个脚本中有一些属性不是很理解,于是做了分析。希望能帮到有需要的朋友

2016-05-11

Unity Remote 4 及源码

Unity Remote (currently at version 4), is a downloadable app designed to help with Android or iOS development. The app connects with Unity while you are running your project in Play mode from the editor. The visual output from the editor is sent to the device’s screen and the live inputs are sent back to the running project in Unity. This allows you to get a good impression of how your game really looks and handles on the target device without the nuisance of a full build for each test. With version 4, Unity Remote has been completely rewritten and replaces the separate iOS and Android Remote apps used with earlier versions.

2016-04-20

UnityStudio V0.5.1b3

用来提取Unity生成的apk的资源的工具,有篇文章将这个了,请参考http://forum.gamer.com.tw/Co.php?bsn=23805&sn=2998323,这个是带界面的工具,虽然没有disunity全面,但是贵在好用

2016-04-08

disunity_v0.4.0及源码

提取Unity生成的APK内部资源的工具,用法在工具里边有个readme可以看看

2016-04-08

disunity_v0.5.0 及源码

Unity3D安装文件资源提取工具,这个工具Github上有:https://github.com/ata4/disunity/releases/download/v0.5.0/disunity_v0.5.0.zip 但是有时候翻不了墙把人急得,这个提供给大家,方便大家。是最新版本了。这个版本我用的并不顺利,没有最终把资源拿出来,我会在博客里边写一篇心得供参考。比如这个新的工具,已经不是disunity distract [files]的格式了,而是disunity distract [commands] [files]的格式了,有命令了。多多交流

2016-04-07

Netbeans java GUI 背景图片加载图文攻略

这是Netbeans为jframe加载背景图片的办法,尽管看起来很简单。但在我不会之前,怎么都搞不到一起。会了之后,原来一行代码也不用写,就可以生成了 该资源:图文步骤俱全,绝对可以看明白。欢迎留言

2012-04-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除