随笔分类 -  Computer Graphics & AR, VR

vc2005 掛opengl
摘要:http://www.gamedev.net/community/forums/topic.asp?topic_id=4689001>main.obj : error LNK2019: unresolved external symbol __imp____glutInitWithExit@12 referenced in function _glutInit_ATEXIT_HACK@81>main.obj : error LNK2019: unresolved external symbol __imp____glutCreateWindowWithExit@8 referenc 阅读全文
posted @ 2011-06-26 22:16 warmwar 阅读(200) 评论(0) 推荐(0)
Learning
摘要:perspective 透視popping 立體foreshortening 透視法textures 材質texture mapping:將真實物體表面的照片,貼在多邊形的表面 (材質中單一元素:texels)blending:改變每個物體混入場景的比例,可以使他變得透明而看到後面的物體transparency:透明anti-aliasing:去除鋸齒real-time 繪圖 api 設計方式:1.retained mode:物件和場景的描述提供給api,建立影像後,user只能改變攝影機2.immediate mode:建立影像後,可動態改變一些參數,其他影像會隨著改變primitives: 阅读全文
posted @ 2011-06-26 22:15 warmwar 阅读(157) 评论(0) 推荐(0)
Note - Shader - 2
摘要:OpenGL:*glflush(),glfinish()必要時才用GLSL:*primitive shader 沒有統一規格*vertex stream會提供一些vertex infomation給vertex shader*pixel shader 吃vertex shader output*pixel shader 不能額外宣告output*gl_fragcolor一定會出現在pixel shader*dynamic array 能利用的只有register(register 太小),所以不支援dynamicOpenGL shading language 變數型態:*attribute:v 阅读全文
posted @ 2011-06-26 22:14 warmwar 阅读(174) 评论(0) 推荐(0)
Note - 2
摘要:* projection 的scaling 倍數 會集中在W上* 用縮寫縮短句子*p=abc(object)abcobject* opengl用1d array 效率好(data 連續)2d array 不同的規格可能data會分散* shear need user matrix*hierarchy 架構 need push ,pop matrix 阅读全文
posted @ 2011-06-26 22:12 warmwar 阅读(150) 评论(0) 推荐(0)
Note
摘要:*Filtering:因為距離遠近,texture cover 到surface的pixel的數量會改變,filtering 控制這改變*near filtering performance high*mip mapping:預先準備多張解析度的圖,避免失真,跟ideal filtering有關係*GL指令中texture之level即為mip mapping的level*shader的texture mapping support pixel,vertex,surface level*texture mapping的performance高,用MATH model耗費時間高*texture 阅读全文
posted @ 2011-06-26 22:05 warmwar 阅读(156) 评论(0) 推荐(0)
Cook-Torrance Model implementation
摘要:Gold:Aluminum:Silver:Copper: 阅读全文
posted @ 2011-06-26 22:04 warmwar 阅读(227) 评论(0) 推荐(0)
Bump Mapping by shader
摘要:其實沒有甚麼技術,只是改變法向量,打光用SHADER,本來要用TBN MATRICES 去改法向量,觀念搞懂了,可是程式可能處理的瑕疵沒注意到,茶壺變很黑 可能數值上的計算錯誤沒有考慮到 阅读全文
posted @ 2011-06-26 21:55 warmwar 阅读(187) 评论(0) 推荐(0)
Photometric Stereo 初體驗
摘要:這技術是給你幾張2D圖片 物體最好是沒有強烈反射光的部分 然後算出此物體的3D形狀, 目前的結果 會有一些瑕疵 表面會有橫條紋 有使用Gaussian Filter ,但沒有用2D:3D: 阅读全文
posted @ 2011-06-26 21:44 warmwar 阅读(359) 评论(0) 推荐(0)
Shadow Volume & MultiTexture & MipMap
摘要: 阅读全文
posted @ 2011-06-26 21:37 warmwar 阅读(181) 评论(0) 推荐(0)
Photometric Stereo 比較
摘要: 阅读全文
posted @ 2011-06-26 21:34 warmwar 阅读(351) 评论(0) 推荐(0)