티스토리

구차니의 잡동사니 모음
검색하기

블로그 홈

구차니의 잡동사니 모음

minimonk.net/m

나란히 동등하게 함께

구독자
7
방명록 방문하기
공지 블로그 주인장 장가갑니다 모두보기

주요 글 목록

  • blender in openGL Open Asset Import Library(assimp) 를 이용해서 blender를 읽어오고 openGL로 그릴수 있는 것으로 보인다. FeaturesReads more than 30 3D file formats, including Collada, X, 3DS, Blend, ObjConverts them to a hierarchical in-memory data structureProvides 'post-processing steps' to improve the input data, i.e. generate normals and tangents or fix import issues.Provides APIs for both C and C++Imports skeleton animations and sk.. 공감수 0 댓글수 0 2025. 4. 28.
  • opengl glortho gluperspective orthogonal(직교) perspective(원근) -1.0 ~ 1.0 사이로 정규화 해야 한다는데, 그래서 이전에 막 잘리고 난리였던 듯.. [링크 : https://www.scratchapixel.com/lessons/3d-basic-rendering/perspective-and-orthographic-projection-matrix/orthographic-projection-matrix.html] [링크 : https://heinleinsgame.tistory.com/m/11] 공감수 0 댓글수 0 2023. 8. 28.
  • glReadPixels() 와 glUseProgram() wayland / weston 에서 glReadPixels를 통해 읽어 오는게 실패해서 찾아보니 glUserProgram()을 하면 된다는데.. 문제는 어떤 컨텍스트의 정보를 어떻게 받아오냐 일 듯.. glPixelStorei(GL_PACK_ALIGNMENT, 1); glReadPixels(0, 0, output->width, output->height, GL_RGBA, GL_UNSIGNED_BYTE, data); [링크 : https://github.com/ereslibre/wayland/blob/master/compositor/screenshooter.c] It's an error to call anything but a very limited set of functions between glBegi.. 공감수 0 댓글수 0 2022. 11. 17.
  • openCV + openGL mat 변수가 나오는걸 봐서는 구버전이라.. 요즘꺼에 돌려보려면 조금 고생할 듯. openGL은 텍스쳐까진 보질 못해서 코드를 이해 못하겠네.. [링크 : https://webnautes.tistory.com/1098] 공감수 0 댓글수 0 2022. 2. 8.
  • glMatrixMode() GL_MODELVIEW와 GL_PROJECTION만 예제로 많이 보았는데 GL_COLOR와 GL_TEXTURE도 가능한 옵션(?)이다. void glMatrixMode(GLenum mode); GL_MODELVIEW Applies subsequent matrix operations to the modelview matrix stack. GL_PROJECTION Applies subsequent matrix operations to the projection matrix stack. GL_TEXTURE Applies subsequent matrix operations to the texture matrix stack. GL_COLOR Applies subsequent matrix operations to .. 공감수 0 댓글수 0 2020. 4. 14.
  • opengl superbible 3rd 리눅스 빌드 패키지 2004년 책이라 안될줄 알았는데 다행이 몇개 패키지 설치하니 정상적으로 빌드되도 잘 작동된다. $ sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev [링크 : http://www.codebind.com/linux-tutorials/install-opengl-ubuntu-linux/] $ sudo apt-get install libxmu-dev libxi-dev [링크 : https://ubuntuforums.org/showthread.php?t=1703770] 공감수 0 댓글수 0 2020. 4. 8.
  • opengl super bible 3rd - 4,5 chapter 아 정리하기 귀찮다 -ㅁ- 공감수 0 댓글수 0 2020. 4. 6.
  • openGL 책 보면서 정리중 - 챕터3 이건 블로그 보다 위키에 정리 하는게 나으려나? 점 glBegin(GL_POINTS) glPointSize() glGetFloatv(GL_POINT_SIZE_RANGE,..) glGetFloatv(GL_POINT_SIZE_GRANULARITY,..) // 낱알 모양, 입자의 형상 glEnd() 선 glBegin(GL_LINES) glLineWidth(GLFloat value) glGetFloatv(GL_LINE_WIDTH_RANGE,..) glGetFloatv(GL_LINE_WIDTH_GRANULARITY,..) // 낱알 모양, 입자의 형상 glEnd() glBegin(GL_LINE_STRIP) glBegin(GL_LINE_STIPPLE) glLineStipple(GLint factor, GLushor.. 공감수 0 댓글수 0 2020. 4. 5.
  • glEnable(), glPushAttrib() 두 함수가 다루는 내용이 비슷한 느낌이라 일단 스크랩 glEnable()은 GL_FOG 이런걸 쓰다면 glPushAttrib()는 GL_FOG_BIT 이런걸 쓴다. 접미가 다른게 붙는걸 보니 다른 enum을 쓰는 함수이긴 한데 내부 구조가 어떻게 짜여있는지가 궁금해지는 함수 [링크 : https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glEnable.xml] [링크 : https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glPushAttrib.xml] 공감수 0 댓글수 0 2020. 4. 4.
  • openGL superbible 3rd ed. 읽기 시작 예전에 줄을 그어가면서 열심히 읽었구나... 그런데 놓친게 왜이리 많았지? 그래서 이해를 못했던 건가? 이런 생각이 많이 드네 아무튼 다시 공부 시작해보자.. 틈틈히 공감수 0 댓글수 0 2020. 4. 3.
  • gluPerspective / gluLookat 소스코드 답답해서 뜯어보는중 ㅋㅋ 왜 이런 생각을 안했었지? 근데 본다고 이해할수 있는건 또 별개의 문제네 ㅋㅋㅋ #define __glPi 3.14159265358979323846 void GLAPIENTRY gluPerspective(GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar) { GLdouble m[4][4]; double sine, cotangent, deltaZ; double radians = fovy / 2 * __glPi / 180; deltaZ = zFar - zNear; sine = sin(radians); if ((deltaZ == 0) || (sine == 0) || (aspect == 0)) { return; } cotang.. 공감수 0 댓글수 0 2019. 6. 1.
  • gl glx glu glut 소스코드 일단은 소스도 분석을 좀 해봐야지 이해가 잘되려나? [링크 : https://www.mesa3d.org/download.html] [링크 : https://mesa.freedesktop.org/archive/] gl glx [링크 : http://ftp://ftp.freedesktop.org/pub/mesa/glu/] glu [링크 : http://ftp://ftp.freedesktop.org/pub/mesa/glut/] glut 공감수 0 댓글수 0 2019. 5. 31.
  • glulookat / gluperspective / glfrustrum / glortho 다른 유틸리티를 같은 레벨로 봤군... gluLookAt과 gluPerspective는 카메라를 조작하는 방법인데 glu로 시작하듯 gl Utility 계열이고 gl로 시작하는 glFrustum 과 glOrtho는 프로젝션 뷰를 perspective와 orthogonal로 설정하도록 한다. Name gluLookAt — define a viewing transformation C Specification void gluLookAt( GLdouble eyeX, GLdouble eyeY, GLdouble eyeZ, GLdouble centerX, GLdouble centerY, GLdouble centerZ, GLdouble upX, GLdouble upY, GLdouble upZ); [링크 : https:.. 공감수 0 댓글수 0 2019. 5. 30.
  • gl model view projection mat 오랫만에 다시 보니 기억이 하나도 안나네.. 큭... 행렬부터 다시 공부해야하나? [링크 : http://www.opengl-tutorial.org/kr/beginners-tutorials/tutorial-3-matrices/] [링크 : https://solarianprogrammer.com/2013/05/22/opengl-101-matrices-projection-view-model/] 공감수 0 댓글수 0 2019. 5. 29.
  • gluPerspective() 오랫만에 다시 공부하게 되네 후.. 일단 위의 함수는 z값에 대한 Near와 Far 값이 존재하는데 둘다 양수여야 하고 0 이상의 값을 가져야 한다. (그걸 모르고 예전엔 0을 넣고 왜 안되는 거야! 하고 있었으니..) zNear Specifies the distance from the viewer to the near clipping plane (always positive). zFar Specifies the distance from the viewer to the far clipping plane (always positive). Notes Depth buffer precision is affected by the values specified for zNear and zFar. The greate.. 공감수 0 댓글수 0 2019. 5. 28.
  • glfw3 in ubuntu 19.04 원인은 모르겠는데.. 링크할때 파일명이랑 순서가 영향을 주네? 머지? $ sudo apt-get install libglfw3-dev libglfw3 $ vi glfw.c #include #include #include static void error_callback(int error, const char* description) { fputs(description, stderr); } static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) glfwSetWindowShouldClose(window, GL_.. 공감수 0 댓글수 0 2019. 5. 10.
  • openGL vao(Vertex Array Object) gl3.0 버전 이후 부터 추가된 내용 기존에 버전에서는 Vertex Array Object가 아니라 Vertex Array나 List로 무언가 등록해서 쓰는게 있던거 같은데 기억이 가물가물 하네 [링크 : https://www.khronos.org/opengl/wiki/Vertex_Specification] 공감수 0 댓글수 0 2019. 5. 7.
  • glfw - gl framework openGL 3.0 하는데 glfw 라는 새로운 라이브러리가 보여서 검색. glut나 glu 등을 대체하는 녀석인가? [링크 : https://www.glfw.org] [링크 : https://en.wikipedia.org/wiki/GLFW] 공감수 0 댓글수 0 2019. 5. 7.
  • openGL 3.0 tutorial 언제 또 버전이 이렇게 올랐냐... 기존에 공부하던건 잊고 새로운 glfw라는걸 써야 할 듯 [링크 : http://www.opengl-tutorial.org/kr/beginners-tutorials/tutorial-2-the-first-triangle/] 공감수 0 댓글수 0 2019. 5. 7.
  • openGL Stereoscopic 어디였나.. 뷰포트로 두개 하면 된다고 하는데예전에 내가 스테레오 비전 만든것도 뷰포트였나? 기억이 안나네.. GLvoid display(GLvoid){ glDrawBuffer(GL_BACK); //draw into both back buffers glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //clear color and depth buffers glDrawBuffer(GL_BACK_LEFT); //draw into back left buffer glMatrixMode(GL_MODELVIEW); glLoadIdentity(); //reset modelview matrix gluLookAt(-IOD/2, //set camera position x=-IOD/.. 공감수 0 댓글수 0 2018. 4. 25.
  • openGL cardboard lens distortion 구글 카드보드 같은거 써서 보려면영상을 왜곡해야 하는데(왜곡이란 단어부터 생각이 안남... ㅠㅠ) [링크 : https://stackoverflow.com/questions/44489686/camera-lens-distortion-in-opengl][링크 : http://smus.com/vr-lens-distortion/][링크 : https://www.opengl.org/discussion_boards/showthread.php/197596-Pincushion-Distortion-with-a-Camera] +[링크 : https://github.com/googlevr/gvr-android-sdk/.../videoplayer/VideoScene.java][링크 : https://github.com/goo.. 공감수 0 댓글수 0 2018. 4. 25.
  • glxgears 소스 웬지 벤치마크 용으로 쓰이는 예제카메라 위치 라던가 애니메이션이라던가기어 크기라던가 중심으로 분석해봐야지 [링크 : https://fossies.org/dox/mesa-demos-8.3.0/glxgears_8c_source.html] 공감수 0 댓글수 0 2016. 9. 7.
  • opencv opengl [링크 : http://babytiger.tistory.com/entry/OpenCV로-생성한-영상을-OpenGL-윈도우에-표시][링크 : http://docs.opencv.org/2.4/modules/core/doc/opengl_interop.html#] 공감수 0 댓글수 0 2016. 2. 26.
  • opengl camera의 이해 8.010 How does the camera work in OpenGL? As far as OpenGL is concerned, there is no camera. More specifically, the camera is always located at the eye space coordinate (0., 0., 0.). To give the appearance of moving the camera, your OpenGL application must move the scene with the inverse of the camera transformation. 8.020 How can I move my eye, or camera, in my scene? OpenGL doesn't provide an .. 공감수 0 댓글수 0 2016. 2. 2.
  • myAHRS cube 예제 openGL 공부할겸 소스 뜯어 봐야겠다. [링크 : https://github.com/...master/odroid_c1/opengles_20/samples/opengles_20/cube_with_myahrs] [링크 : https://github.com/withrobot/myAHRS_plus/tree/master/odroid_c1/opengles_20] 대충 봤는데.. EGL 초기화하고 vertex shader 쓰고...흐음.. 내가 생각하던 그 예제랑은 달라서 의미가 없으려나? ㅠㅠ 공감수 0 댓글수 0 2016. 2. 2.
  • openCV <-> openGL 어느게 나을진 모르겠지만.. openGL에서 openCV로 그린걸 받아와서 띄우는게 더 간단할 기분이다. [링크 : http://babytiger.tistory.com/entry/OpenCV...] openGL에서 openCV 이미지 그리기[링크 : http://babytiger.tistory.com/entry/OpenGL...] openCV에서 openGL 이미지 그리기 [링크 : http://r3dux.org/2010/12/how-to-manipulate-webcam-streams-with-opencv-and-opengl/] 공감수 0 댓글수 0 2015. 9. 24.
  • openGL triangle winding openGL Super bible에 보이진 않아서 찾아보니 명확하게! EvenT=[n-1 n-2 n] OddT=[n-2 n-1 n] [링크 : http://www.matrix44.net/cms/notes/opengl-3d-graphics/understanding-gl_triangle_strip] 공감수 0 댓글수 0 2015. 7. 22.
  • openGL super bible 3rd ed - 깊이, 은면처리 depth 테스트 - 픽셀별 계산으로 부하가 많음glutInitDisplayMode(GLUT_DEPTH);glEnable(GL_DEPTH_TEST);glClear(GL_DEPTH_BUFFER_BIT);glDepthMask(bMask); cull - 법선벡터의 방향으로 면을 추려냄glEnable(GL_CULL_FACE);glFrontFace(GL_CCW); // defaultglFrontFace(GL_CW);삼각형이나 폴라곤 그릴시 와인딩이 중요 공감수 0 댓글수 0 2015. 7. 21.
  • openGL super bible 3rd ed - 점선면 관련 // 점glGetFloatv(GL_POINT_SIZE_RANGE);glGetFloatv(GL_POINT_SIZE_GRANULARITY);glPointSize(pointsize);glBegin(GL_POINTS);glVertex3f(0.0, 0.0, 0.0);glEnd(); // 선glGetFloatv(GL_LINE_WIDTH_RANGE);glGetFloatv(GL_LINE_WIDTH_GRANULARITY);glLineWidth(linewidth);glBegin(GL_LINES);glVertex3f(0.0, 0.0, 0.0);glVertex3f(1.0, 0.0, 0.0);glEnd(); // 점선glEnable(GL_LINE_STIPPLE);glLineStipple(factor, pattern); // 폴.. 공감수 0 댓글수 0 2015. 7. 21.
  • glColor* glColor의 경우 클램프되어 있는 변수는 아니나내부적으로 clamp 되어 사용이 된다. void glColor3f( GLfloat red, GLfloat green, GLfloat blue ) Neither floating-point nor signed integer values are clamped to the range [0,1] before the current color is updated. However, color components are clamped to this range before they are interpolated or written into a color buffer.[링크 : http://linux.die.net/man/3/glcolor3f] void glClearCol.. 공감수 0 댓글수 0 2015. 7. 20.
    문의안내
    • 티스토리
    • 로그인
    • 고객센터

    티스토리는 카카오에서 사랑을 담아 만듭니다.

    © Kakao Corp.