Thursday, May 31, 2007

Beware of Google Desktop Search...

....if your diskspace is low, because it takes up considerable space. In my PC, the index file size is about 1 GB + . I thought i would be much smaller, but maybe google puts something more into its indexing algorithm so that the size grows bigger. But on the other hand, the search time is definitely faster than native windows XP searching program, so it's still worth the cost.
Anyway, since most of us have hundreds gigabyte of harddisk space, it wouldn't be a big problem, except that you're like me who like to install a lot lot software into the system =.=

Wednesday, May 30, 2007

digimax > all


lately, i was approached by Asus, Quanta, and some others, and i have rejected the chances to have an interview = =". Hopefully my decisions are right ones, and the work permit for digimax can be solved immediately. Otherwise maybe i have to call them again to ask for interview =.=

Computing barycentric coordinate


I find a good website that teach me how to compute a barycentric coordinate of point P in the triangle T(v0,v1,v2). The formula can also be used to find is whether the P is inside T, which is the problem i want to solve.

Here is the link to the full explanation.

In short, the formula is like this:

u = V1-V0;
v = V2-V0;
w = P-V0;

The parametric coordinates (s,t) of P is the solution of the equation: w = su + tv, and the barycentric coordinates of P = b0V0 + b1V1 + b2V2 are equal to: b0 = (1-s-t), b1 = s, and b2 = t which satisfy: b0 + b1 + b2 = 1.

We can compute the solutions for s and t using only dot products as:

Thanks very much to Dan Sunday at http://softsurfer.com/index.html for providing the solution.

Monday, May 28, 2007

眷村

剛看了康熙某一集,邀請了一些在卷村長大的藝人.感覺真的很像我的家鄉,雖然我沒他們慘,但還是有那種feeling.希望以後有出頭了也可以給我的家鄉一些貢獻!

社會局核銷真離譜!!

規定也太多了吧!! 真的很不合理!
連電話費都要著名是打給誰的,然後工作人員交接加減也要報告給他們,我覺得社會局根本就沒有信任這概念.我們有不是拿這些錢來做生意,是在幫災民呢!!
海嘯是2004年發生的,現在已經2007年了.我想如果捐款者知道他們捐出來的前三年過後還呆在社會局帳戶裡,會很氣吧!這樣捐款的benefit 就沒了.

老闆也一樣不合理.問題這麼嚴重了還不想直接下手,一直叫根本沒什麼經驗的人去處理,然後又希望趕快弄好.還說什麼 " 你已經要進入社會了" ,我有不是去做行政的工作,我是寫程式的勒!!
咳,不想管那麼多了,反正先把薪水要來吧.

Monday, May 14, 2007

translucent happy buddha


Here is my newest rendering of translucent material using PBRT.
The rendering time is quite slow, about 2000 seconds using P4 with 768MB RAM.
I am quite satisfied with the result. But maybe i need to add more surface reflection to make it more jade-like.

Sunday, May 13, 2007

mood is temporary, class is permanent

can you learn to be classy?

Thursday, May 10, 2007

panorama stitching

This was my VFx assignment #2. We're supposed to combine multiple images into one panorama image. 
Here is one of my better results:


 For the full-size image you can go here:
http://r4inm4ker.m3.ntu.edu.tw/ok2.jpg