Posts

Showing posts from July, 2012

Turbulenz WebGL Engine using Quake 4 assets

Image

Photoshop Overlay

Image
Target: lower layer texture Blend: upper layer texture Overlay  = (Target > 0.5) * (1 - (1-2*(Target-0.5)) * (1-Blend)) + (Target <= 0.5) * ((2*Target) * Blend) http://www.binary-artist.com/photoshop_tutorials/layer/photoshop_layer_blend_mode_overlay.php http://blog.deepskycolors.com/archivo/2010/04/21/formulas-for-Photoshop-blending-modes.html

年輕人該負起的責任

這幾年來確實台灣的經濟環境變得很差,如果說是失落的十年,那我們這十年錯過了什麼? 1980-90 年代,台積電, 宏碁, 華碩替台灣建立了半導體以及個人電腦的經濟體,讓台灣賺進了大量的外匯,也擠身亞洲四小龍,那時也奠定了科技島的美譽。那時的時空背景會這麼成功的原因是我們與國際接軌了,我們在跟美國矽谷的創新作了一樣的事情,我們走的是朝陽的產業,是未來獲利十分看好的產業。 2000年代,.com網路產業興起,從美國湧起的Yahoo, eBay,這時台灣沒有缺席,Kimo, yam, PChome帶領台灣面對挑戰,雖然後來Kimo被Yahoo收購, yam變得比較沒這麼影響力,PChome後來經過幾次轉型變成大型的網路購物平台,這些網路公司都帶來台灣非常優秀的研發能量,這些技術力一樣是跟國際接軌的。 2005年左右,Web走向2.0時代,內容分享變成重點,搜尋引擎龍頭Google在矽谷發跡,中國大陸的百度也在之後藉由主打中國市場也被創立了,Youtube讓大家上傳有趣的影片,電腦桌變成家裡的客廳,中國出了土豆網,台灣也出了個無名小站,一群還沒畢業的交大學生讓台灣發光發熱,在這個平台上捧紅了很多網路作家。 2008年開始,社群網路崛起,Facebook席捲全球,中國人人網,日本mixi相繼出頭。台灣這次沒有人成功。或許是國內人口數沒這麼多,社群網站發展不起來。不過人口數,文化背景並不是絕對先天上的劣勢,Rovio在2011憑著Angry bird席捲全球,芬蘭國家只有500萬人,我們有2000萬人口,我們一定也有機會! 2010年,智慧手機的App經濟體被蘋果賈伯斯所建立完成。全世界的人都對它開啓了掏金夢,Rovio因為Angry bird市值56億英鎊,Instagram 十億美金被Facebook收購, Omgpop因為DrawSomething被Zynga以2.1億收購。這次台灣尚未發生一個巨額的併購案,或是因為App而締造一個產業,不過周遭很多聲音都在努力着,期待他們成功的發生。 創新的事業是由年輕人所創造的,如果年輕人過得很辛苦而又不肯站出來突破,告訴世界我們要的是怎樣的生活,那又有誰能保證你十年後會過得怎樣呢? 如果是不敢冒險,那麼二三十年前的年輕人又有誰能成功呢?我們現在能過的尚有一定水準其實是他們給的...以前的年輕人或許害怕未來會與

Texture compression on GPU

Reduce texture memory size, it can reduce gpu memory bandwidth to read texture while rendering, and compressed format can have better performance because it use less memory. Fast decompress, it compressed on the GPU card, and while rendering it be decompressed at least once per frame. Fast random access,  if a texture cover a mesh but the mesh just can be seen on one side, GPU will only decompress the part of texture which can be seen. Therefore, if we do well in Hidden Surface Removal that can help us reduce GPU card loading. old D3D new D3D OpenGL D3D support OpenGL support DXT1 BC1 S3TC 6.0 EXT_texture_compression_s3tc DXT3 BC2 S3TC 6.0 EXT_texture_compression_s3tc DXT5 BC3 S3TC 6.0 EXT_texture_compression_s3tc ATI1 BC4 RGTC1 10.0 3.0 ( or via extension ) ATI2 BC5 RGTC2 10.0 3.0 ( or via extension ) - BC6H BPTC_FLOAT 11.0 4.2 ( or via extension ) - BC7 BPTC 11.0 4.2 ( or via extension ) Reference: http://renderingpipeline.com/2012/07/texture-compression/ http:

Mobile design matters - iOS and Android

Mobile design matters - iOS and Android View more presentations from Light Lin

Friend fumction in C++ class

// in the header file void changeVar(); // define it. class testFriend { friend void changeVar(); // declare it private: int m_i; } // in the cpp file void changeVar( testFriend&i ) // implement it { i.m_i++; } // in the main file int main() { testFriend test; changeVar(test); }

Android ListView pull to refresh library

Image
http://erikw.eu/open-source-android-pull-to-refresh-library/

Google I/O 2012 - GRITS: PvP Gaming with HTML5

Image