seckcoder

Bring Reality to Games

 

2011年11月5日

[Paper]2011/11/05

摘要: A Multidimensinal Occlusion Shading Model for Direct Volume RenderingIn the Directional Occlusion Shading Model, because of the backward-peakedproperty of the cone phase function,the light direction has to coincide with the viewing direction. However, in this paper, it enables the flexibility of pos 阅读全文

posted @ 2011-11-05 15:30 seckcoder 阅读(140) 评论(0) 推荐(0) 编辑

2011年8月27日

operator T * () {return v;}

摘要: operator T*() {return v;}这是TriMesh的 Vec.h 文件中的一个运算符重载。 这里的operator不是(), 而是T * ()。 通过下面这个例子来说明其用途:TriMesh中的Color类继承自Vec<3,float>, 因此也是VecColor color = red(); //red() returns the red colorglColor3fv(color); //right!这里传进color后实际上经过了一次运算符重载的调用, 调用的是 operator const T* () const {return v;} .Vec.h 里面 阅读全文

posted @ 2011-08-27 20:30 seckcoder 阅读(934) 评论(0) 推荐(0) 编辑

2011年8月26日

Qt: OpenMP, undefined reference 错误

摘要: Qt 默认情况下不能直接编译OpenMP程序; 在gcc中有对应的-fopenmp option; 在Qt中有QMAKE_CXXFLAGS += -fopenmp同时, LIBS += -lgomp -lpthread 添加相应库, 即可解决undefined reference 错误 阅读全文

posted @ 2011-08-26 19:53 seckcoder 阅读(324) 评论(0) 推荐(0) 编辑

2011年8月25日

这.......

摘要: "1942年2月16日的凌晨,天空晴朗。抗日游击队密营地的木房以及茂密的森林全都覆盖着银白色的雪。霎时出现的两道绚丽斑斓的彩虹和一颗圣星(光明星)宣告着他的到来,忽又飞来一只喜鹊——一个将来要拯救全人类的领袖——金正日诞生了!"Reference: baike.baidu.com : 金正日词条 阅读全文

posted @ 2011-08-25 21:06 seckcoder 阅读(123) 评论(0) 推荐(0) 编辑

2011年8月23日

gnuplot 设定点的颜色

摘要: Example:#!/bin/shgnuplot << EOFset terminal pngset output "../Data/test_Mean_Shift.png"plot "$1" using 1:2:3 with circles,\"$2" using 1:2:3 with points lc rgb varEOF其中"rgb var"指lc 的 rgbcolor是一个与using中的第三个量即$3。假如改为plot "$1" using 1:2:3 with circ 阅读全文

posted @ 2011-08-23 20:34 seckcoder 阅读(2438) 评论(0) 推荐(1) 编辑

2011年8月20日

armadillo: run time error: need lapack

摘要: armadillo的一些函数需要lapack/atlas的支持。如果没有安装armadillo, 可以直接armadillo安装文件中的include/armadillo_bits/config.hpp, 将define ARMA_USE_LAPACK和define ARMA_USE_BLAS的注释去掉, 以支持lapack。 当然前提是你的机器上有lapack和blas的库。如果已安装, 也可直接修改<ARMA_INSTALL_PATH>/include/armadillo_bits/config.hpp, 操作同上。然后在Makefile中需要添加lapack,blas的静态链 阅读全文

posted @ 2011-08-20 20:06 seckcoder 阅读(264) 评论(0) 推荐(0) 编辑

2011年8月4日

共享库链接

摘要: 应尽量避免使用LD_LIBRARY_PATH通过在Makefile中设置 LD_RUN_PATH = -R...来设置Reference:http://www.eyrie.org/~eagle/notes/rpath.html 阅读全文

posted @ 2011-08-04 16:50 seckcoder 阅读(136) 评论(0) 推荐(0) 编辑

2011年8月3日

关于struct

摘要: 今天写code时突然发现一个很简单, 很容易弄错, 便之前却没有意识到的问题typdef struct some_struct {}structAnotherName;struct some_struct {}struct_entity;正如我对其命名所显示的那样, 这两个看起来相似但是, structAnotherName和struct_entity显然是不同的东西。 阅读全文

posted @ 2011-08-03 23:00 seckcoder 阅读(117) 评论(0) 推荐(0) 编辑

2011年8月1日

linux下浏览器启动java plugin

摘要: OS: openSUSE 11.4Web Browser: firefox/opera.首先当然是安装java, 同时需要安装java plugin. 在openSUSE上, 可以直接用zypper安装, 也可在官网下载最新版本安装。官网上也有关于安装和配置浏览器的内容。查看firefox plugin安装位置的方法:about:config启用plugin.expose_full_path。about:plugins可看到你的plugin都安装到了哪些位置。我将java plugin安装到系统的所有浏览器的plugin路径里, 这样可以在所有支持java的浏览器中使用。 阅读全文

posted @ 2011-08-01 15:50 seckcoder 阅读(343) 评论(0) 推荐(0) 编辑

导航