Programming/openGL2011. 11. 22. 21:04
소스들을 보면 glsl을 위해서는 항상 glew를 사용하는데
왜 사용하는지 문득 궁금해져서 뒤져보니

과거에 GLSL은 OpenGL 1.4의 extension으로 시작되었다고 한다.
그리고 ARB는 OpenGL ARB에 의해 공식적으로 승인된 Extension이라고 한다.

즉, GLSL 역시 Extention 이므로, GLEW(GL Extention Wrangler) 를 사용해서 
편리하게(?) 확장하여 사용을 하게 된다.

ARB - Extensions officially approved by the OpenGL Architecture Review Board
[링크 : http://www.opengl.org/resources/features/OGLextensions/]
[링크 : http://glew.sourceforge.net/basic.html]

Originally introduced as an extension to OpenGL 1.4, GLSL was formally included into the OpenGL 2.0 core by the OpenGL ARB.
[링크 : http://en.wikipedia.org/wiki/GLSL]
[링크 : http://en.wikipedia.org/wiki/OpenGL#Extensions


사족 : 그러고 보니. Nvidia는 Geforce 8000 이상부터 ATI는 HD 급 부터라고 한거 봐서는..
         Nvidia의 CUDA / ATI의 ATI Stream(OpenCL) 적용 하드웨어와 일치하는 느낌이 드는데..
         결국에는 GLSL은 특화된 CUDA/OpenCL 이라고 보면 되려나?

'Programming > openGL' 카테고리의 다른 글

openGL에서 AVI 동영상 재생하기  (0) 2013.04.09
openGL gcc에서 컴파일 하기  (0) 2012.06.02
GLSL 관련 링크  (0) 2011.11.20
GLSL 함수목록 정리  (0) 2011.11.20
GLSL 은.. intel 내장형으로는 무리?  (0) 2011.11.19
Posted by 구차니


직권상정으로 통과시키는 위대한 한나라당!
그럼.. 대한민국은 앞으로 미국껀가 일본껀가? 
 

동아일보 답게(!) 날치기를 속결로 표기하는 센스~!
이날 여당이 비준안을 포함한 지방세법, 독점규제·공정거래법, 약사법 등 14개 이행 법안을 속결로 모두 처리했기 때문에 한미 FTA 발효에 필요한 기본적인 제도적 요건은 모두 갖췄다. 
[링크 : http://stock.daum.net/news/news_content.daum?type=main&sub_type=&docid=MD20111122172618004



Posted by 구차니
Microsoft/Office2011. 11. 22. 10:35
아이폰에서 보내면 꼭 깨지는데 UTF-8로 보내서 그럴려나? 

 
Posted by 구차니
Microsoft/Windows2011. 11. 21. 22:54
제어판 - 프로그램 추가/제거 - 구성 요소 추가/제거 -관리 및 모니터링 도구
에서 SNMP를 추가해주면 되는데.. 안된다 OTL
SP3 설치파일들 삭제하면서 문제가 생긴건가 -_-




[링크 : http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/snmp_install.mspx]
Posted by 구차니
Linux/Ubuntu2011. 11. 21. 17:05
패키지는 클라이언트용 snmp와 서버용 snmpd가 존재한다.
snmp - SNMP (Simple Network Management Protocol) applications
snmpd - SNMP (Simple Network Management Protocol) agents

$ snmpwalk -v 2c -c public 192.168.10.19
심심해서 복사기에 snmp가 지원한다고 하길래 해봤더니.. -_-
무려 1393라인에 걸쳐 나오는 센스

[링크 : http://www.joinc.co.kr/modules/moniwiki/wiki.php/article/SNMP_%B0%B3%BF%E4]
[링크 : http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/SNMP/document/net_snmp5]
[링크 : http://www.it-slav.net/blogs/2009/02/05/install-and-configure-snmp-on-ubuntu/]

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu server / desktop edition의 차이점  (0) 2011.12.03
ubuntu 64bit server 10.04 LTS 부팅이 안돼!  (0) 2011.12.03
ubuntu 10.04 LTS 최소 디스크 사이즈  (0) 2011.11.15
vlan 1은 지원안함?  (0) 2011.11.06
ip alias on ubuntu  (0) 2011.11.05
Posted by 구차니
쉐이더는 프로그램 가능한 하드웨어를 조작하기 위한 언어라고 하면 맞을려나?

[링크 : http://www.opengl.org/sdk/docs/tutorials/TyphoonLabs/Chapter_1.pdf]


*******
아무튼, 쉐이더는 3가지가 존재하는데
openGL에서 그림을 그리기 위한 최소 단위인 Vertex 별로 처리하는 것은 Vertex 쉐이더
2d화된 이미지 기준으로 픽셀단위로 처리하는 것은 Pixel/Fragment 쉐이더 라고 한다.
Vertex -> Geometry -> Pixel 로 연결되는 느낌인데..

Pixel shaders (fragment shaders)
Vertex shaders
Geometry shaders (above Direct3D 10 and OpenGL 3.2)
intel 915GM 에서 glxinfo 실행해서 뽑아낸 결과
$ glxinfo 
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, 
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, 
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_make_current_read, 
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, 
    GLX_EXT_texture_from_pixmap
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 915GM GEM 20091221 2009Q4 x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.7.1
OpenGL extensions:
    GL_EXT_compiled_vertex_array, GL_EXT_texture_env_add, GL_ARB_copy_buffer, 
    GL_ARB_depth_texture, GL_ARB_draw_buffers, 
    GL_ARB_draw_elements_base_vertex, GL_ARB_fragment_program, 
    GL_ARB_half_float_pixel, GL_ARB_map_buffer_range, GL_ARB_multisample, 
    GL_ARB_multitexture, GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, 
    GL_ARB_point_sprite, GL_ARB_provoking_vertex, GL_ARB_shader_objects
    GL_ARB_shading_language_100, GL_ARB_shading_language_120, GL_ARB_shadow, 
    GL_ARB_sync, GL_ARB_texture_border_clamp, GL_ARB_texture_compression, 
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add, 
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar, 
    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat, 
    GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle, 
    GL_ARB_transpose_matrix, GL_ARB_vertex_array_object, 
    GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader
    GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, 
    GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate, 
    GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract, 
    GL_EXT_cull_vertex, GL_EXT_copy_texture, GL_EXT_draw_range_elements, 
    GL_EXT_framebuffer_blit, GL_EXT_framebuffer_object, GL_EXT_fog_coord, 
    GL_EXT_gpu_program_parameters, GL_EXT_multi_draw_arrays, 
    GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels, 
    GL_EXT_pixel_buffer_object, GL_EXT_point_parameters, 
    GL_EXT_polygon_offset, GL_EXT_provoking_vertex, GL_EXT_rescale_normal, 
    GL_EXT_secondary_color, GL_EXT_separate_specular_color, 
    GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, 
    GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D, 
    GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp, 
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, 
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias, 
    GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array, 
    GL_3DFX_texture_compression_FXT1, GL_APPLE_client_storage, 
    GL_APPLE_packed_pixels, GL_APPLE_vertex_array_object, 
    GL_ATI_blend_equation_separate, GL_ATI_texture_env_combine3, 
    GL_ATI_separate_stencil, GL_IBM_multimode_draw_arrays, 
    GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat, 
    GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture, 
    GL_MESA_window_pos, GL_NV_blend_square, GL_NV_light_max_exponent, 
    GL_NV_packed_depth_stencil, GL_NV_texture_env_combine4, 
    GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program, 
    GL_NV_vertex_program1_1, GL_OES_read_format, GL_SGIS_generate_mipmap, 
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp, 
    GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays 

[링크 : http://feedback.wildfiregames.com/report/opengl/feature/GL_ARB_shading_language_120]

'이론 관련 > 3D 그래픽 관련' 카테고리의 다른 글

극좌표계, 구면좌표계...  (0) 2015.07.22
극좌표계 / 구면좌표계  (0) 2013.03.26
vertex normal - 버텍스 노말  (0) 2011.10.13
affine / point at inffinity  (0) 2011.05.01
OCTREE / PVS / BSP  (2) 2009.11.09
Posted by 구차니
Programming/openGL2011. 11. 20. 14:40
GLSL 관련 문서들 링크

개인적으로 in vec3 val, 이런게 보이길래 찾다보니
pdf 문서가 무진장 정리 잘되어 있는것 같아서 득템한기분임 ㅋㅋ

in 은 함수 안으로 들어가는 변수. 없으면 in과 비슷하다고 보면 될 듯하고
uniform은 GLSL과 어플리케이션의 변수를 공유하도록 하는 구분자이다.


[링크 : http://www.jrr.kr/entry/8-GLSL-Animation] << 펄럭이는 예제

[링크 : http://en.wikibooks.org/wiki/GLSL_Programming/Vector_and_Matrix_Operations] << 벡터 업 캐스팅/다운캐스팅
[링크 : http://www.opengl.org/documentation/glsl/]
    [링크 : http://www.opengl.org/sdk/docs/tutorials/TyphoonLabs/]
        [링크 : http://www.opengl.org/sdk/docs/tutorials/TyphoonLabs/Chapter_2.pdf] << 요거 좋은듯
 [링크 : http://en.wikipedia.org/wiki/GLSL]

'Programming > openGL' 카테고리의 다른 글

openGL gcc에서 컴파일 하기  (0) 2012.06.02
glsl과 glew의 연관관계  (0) 2011.11.22
GLSL 함수목록 정리  (0) 2011.11.20
GLSL 은.. intel 내장형으로는 무리?  (0) 2011.11.19
GLSL 관련 링크  (0) 2011.11.12
Posted by 구차니
Programming/openGL2011. 11. 20. 11:27
예제소스를 보고 정리한 GLSL에서 사용하는 함수들 목록
glShaderSource()의 경우에는 파일의 내용을 직접 넣어주고
glCompileShader()를 통해 모종의 작업을 하는듯 -_-

[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glCreateShader.xml ]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glShaderSource.xml]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glCompileShader.xml]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glAttachShader.xml]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glCreateProgram.xml]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glLinkProgram.xml]

'Programming > openGL' 카테고리의 다른 글

glsl과 glew의 연관관계  (0) 2011.11.22
GLSL 관련 링크  (0) 2011.11.20
GLSL 은.. intel 내장형으로는 무리?  (0) 2011.11.19
GLSL 관련 링크  (0) 2011.11.12
gluUnProject / glRenderMode(GL_SELECT)  (0) 2011.10.19
Posted by 구차니
프로그램 사용/vi2011. 11. 20. 10:12
되긴되는데.. 손가락에 쥐나는 느낌이야 -_-

 

To change two vertically split windows to horizonally split

    ^Wt^WK

Horizontally to vertically:

    ^Wt^WH

where ^W means "hit Ctrl-W". Explanations:

    ^Wt     makes the first (topleft) window current
    ^WK     moves the current window to full-width at the very top
    ^WH     moves the current window to full-height at far left
[링크 : http://stackoverflow.com/questions/1269603/to-switch-from-vertical-split-to-horizontal-split-fast-in-vim

'프로그램 사용 > vi' 카테고리의 다른 글

vi 에서 탐색기(?)  (0) 2014.08.26
vi 기능 - 자동완성 / SH html export  (0) 2014.08.25
vi 코드 자동 정렬  (0) 2011.09.26
vi 에서 탭 간격 조절하기  (0) 2011.09.26
vi 에서 파일 다시 읽기  (2) 2010.06.17
Posted by 구차니
Programming/openGL2011. 11. 19. 00:03
다뤄지지 않은 예외가 발생해서 이래저래 뒤적여 보는데..

OpenGL Version = '1.4.0 - Build 7.14.10.4704'
Shading Language Version = '(null)'
Warning: Your graphics card or the driver may be old.
   The next assignment will require OpenGL 3.2 and GLSL 1.50 support.
   Please change the "#version" tag to 110 in your GLSL shader file.
   Compiling shader "..\shaders\blinn_phong_vert.glsl". 

Intel 945GM 으로는 openGL 1.4만 지원하고
965나 946GZ에서나 openGL 2.1을 지원한다고 한다.
[링크 : http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=248717]

6) What NVIDIA hardware will support OpenGL 3?

The new features in OpenGL 3 require G80, or newer hardware. Thus OpenGL 3.0/3.1/3.2/3.3 is not supported on NV3x, NV4x nor G7x hardware. This means you need one of the following NVIDIA graphics accelerators to use OpenGL 3:

Desktop
Quadro FX 370, 570, 1700, 3700, 4600, 4700x2, 4800, 5600, 5800, Quadro VX200, Quadro CX
GeForce 8000 series or higher; Geforce G100, GT120, 130, 220, GTS 150, GTS 250, GT310, 320, 330, 340, GeForce GTX 260 and higher, any ION based products.
 
Notebook
Quadro FX 360M, 370M, 570M, 770M, 1600M, 1700M, 2700M, 2800M, 3600M, 3700M, 3800M
GeForce 8000 series or higher
 
[링크 : http://developer.nvidia.com/opengl-driver

OpenGL 3.2
Released on August 3, 2009 and updated on December 7, 2009.
Supported Cards: GeForce 8, GeForce 9, GeForce 100, GeForce 200 and GeForce 300 series, Radeon HD series
Features:
OpenGL Shading Language revision 1.50 (GLSL)

[링크 : http://en.wikipedia.org/wiki/OpenGL]

결론 : Intel 내장형으로는 포기하면 편해~ 라는거?

'Programming > openGL' 카테고리의 다른 글

GLSL 관련 링크  (0) 2011.11.20
GLSL 함수목록 정리  (0) 2011.11.20
GLSL 관련 링크  (0) 2011.11.12
gluUnProject / glRenderMode(GL_SELECT)  (0) 2011.10.19
glNormal()  (0) 2011.10.18
Posted by 구차니