月度存档: 8月 2011

mysql 数据导出csv格式

select * from TABLE_NAME into outfile ‘code5.csv’ fields terminated by ‘,’ optionally enclosed by ‘”‘    lines terminated by ‘\n’;

jogl sun.java2d.noddraw

使用jogl时,设置sun.java2d.noddraw=true,避免在DirectDraw与OpenGL来回切换导致的不可预知的行为.

 

The “sun.java2d.noddraw” property disables Java 2D’s use of DirectDraw on
Windows. This avoid any nasty interactions between DirectDraw and OpenGL, which
can cause application crashes, poor performance, and flickering. The property is only
needed if you’re working on a Windows platform.
Another useful command line option is “-Dsun.java2d.opengl=true” which switches
on the Java2D OpenGL pipeline. The pipeline provides hardware acceleration for
many Java 2D rendering operations (e.g. text, images, lines, fills, complex transforms,
composites, clips). It’s essential when JOGL’s GLJPanel class is employed as a
drawing surface (as explained below).

3dsmax中多个animation合为一个

现在许多游戏引擎采用一个模型绑定一个animation,如果有多个不同的animation,则合为一个,不同动作指定startFrame与endFrame来区分。

3dsmax中将多个animation合为一个操作流程:

1、分别将不同的动作使用save animation保存为不同的动作文件。

2、打开其中一个动作文件,使用time configuration将animation endFrame设置多个动作frame数量之和。

3、使用load animation将其它动作插入。

OK。

dom4j 从xml文件中解析出document对象

SAXReader reader = new SAXReader();
Document document = reader.read(modelFile);

gr2 mesh converter

下载了gr2 mesh converter,发现有的gr2文件可以export mesh,有些文件不可以。

今天终于知道原因了,gr2 mesh converter生成的max script文件太大会导致3dsmax crack,而且只支持单一mesh文件导出,遇到多个mesh文件时就无法使用了。

photoshop的dds插件下载地址

photoshop的dds插件下载地址

http://developer.nvidia.com/nvidia-texture-tools-adobe-photoshop

dds文件

dds是DirectDraw Surface的缩写,实际上,它是DirectX纹理压缩(DirectX Texture Compression,简称DXTC)的产物。DXTC减少了纹理内存消耗的50%甚至更多,有3种DXTC的格式可供使用,它们分别是 DXT1,DXT3和DXT5。

pak文件解压

winRar解压即可。

mysql优化

show table status from db_name;

可以查看数据库中是否存在数据碎片。

碎片的产生是因为长时间的增删操作留下来的空白项。

清理碎片:

optimize table table_name;

清理碎片时最好关闭应用,清理碎片后对数据库读写操作有很大提升。

对unity3d弱智的js编辑器无语了

变量大小写都无法自动检测出来。