Programming/openGL2016. 2. 2. 12:47

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 쓰고...

흐음.. 내가 생각하던 그 예제랑은 달라서 의미가 없으려나? ㅠㅠ

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

opencv opengl  (0) 2016.02.26
opengl camera의 이해  (0) 2016.02.02
openCV <-> openGL  (0) 2015.09.24
openGL triangle winding  (0) 2015.07.22
openGL super bible 3rd ed - 깊이, 은면처리  (0) 2015.07.21
Posted by 구차니
Programming/openGL2015. 9. 24. 10:06

어느게 나을진 모르겠지만.. 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/]

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

opengl camera의 이해  (0) 2016.02.02
myAHRS cube 예제  (0) 2016.02.02
openGL triangle winding  (0) 2015.07.22
openGL super bible 3rd ed - 깊이, 은면처리  (0) 2015.07.21
openGL super bible 3rd ed - 점선면 관련  (0) 2015.07.21
Posted by 구차니
Programming/openGL2015. 7. 22. 19:24

openGL Super bible에 보이진 않아서 찾아보니 명확하게!


Even

T=[n-1 n-2 n]


Odd

T=[n-2 n-1 n]


[링크 : http://www.matrix44.net/cms/notes/opengl-3d-graphics/understanding-gl_triangle_strip]

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

myAHRS cube 예제  (0) 2016.02.02
openCV <-> openGL  (0) 2015.09.24
openGL super bible 3rd ed - 깊이, 은면처리  (0) 2015.07.21
openGL super bible 3rd ed - 점선면 관련  (0) 2015.07.21
glColor*  (0) 2015.07.20
Posted by 구차니
Programming/openGL2015. 7. 21. 22:23

depth 테스트 - 픽셀별 계산으로 부하가 많음

glutInitDisplayMode(GLUT_DEPTH);

glEnable(GL_DEPTH_TEST);

glClear(GL_DEPTH_BUFFER_BIT);

glDepthMask(bMask);



cull - 법선벡터의 방향으로 면을 추려냄

glEnable(GL_CULL_FACE);

glFrontFace(GL_CCW); // default

glFrontFace(GL_CW);

삼각형이나 폴라곤 그릴시 와인딩이 중요


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

openCV <-> openGL  (0) 2015.09.24
openGL triangle winding  (0) 2015.07.22
openGL super bible 3rd ed - 점선면 관련  (0) 2015.07.21
glColor*  (0) 2015.07.20
우분투에서 openGL 시작하기  (0) 2015.07.20
Posted by 구차니
Programming/openGL2015. 7. 21. 21:51

// 점

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);




// 폴리곤 평면채우기(각도에 변하지 않는 패턴반복)

glEnable(GL_POLYGON_STIPPLE);

glPolygonStipple(pBitmap); // 32x32 bitmap


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

openGL triangle winding  (0) 2015.07.22
openGL super bible 3rd ed - 깊이, 은면처리  (0) 2015.07.21
glColor*  (0) 2015.07.20
우분투에서 openGL 시작하기  (0) 2015.07.20
GL2PS : an OpenGL to PostScript printing library  (0) 2014.03.06
Posted by 구차니
Programming/openGL2015. 7. 20. 22:03

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 glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )

[링크 : http://linux.die.net/man/3/glclearcolor]

Posted by 구차니
Programming/openGL2015. 7. 20. 21:48

예전에 컴파일 하는법이랑 다 적은거 같은데..

다 어디로 갔지? ㅠㅠ


$ sudo apt-get install freeglut3-dev

$ gcc -lglut -lm -lGL -lGLU test.c


[링크 : http://ubuntuforums.org/showthread.php?t=345177]


2011/09/07 - [Linux/Ubuntu] - ubuntu 에서 openGL 프로그래밍하기

2012/06/02 - [Programming/openGL] - openGL gcc에서 컴파일 하기


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

openGL super bible 3rd ed - 점선면 관련  (0) 2015.07.21
glColor*  (0) 2015.07.20
GL2PS : an OpenGL to PostScript printing library  (0) 2014.03.06
openGL state variables  (0) 2013.12.12
openGL에서 AVI 동영상 재생하기  (0) 2013.04.09
Posted by 구차니
Programming/openGL2014. 3. 6. 15:03
조만간 쓸일이 있을 예정?


[링크 : http://www.geuz.org/gl2ps/]

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

glColor*  (0) 2015.07.20
우분투에서 openGL 시작하기  (0) 2015.07.20
openGL state variables  (0) 2013.12.12
openGL에서 AVI 동영상 재생하기  (0) 2013.04.09
openGL gcc에서 컴파일 하기  (0) 2012.06.02
Posted by 구차니
Programming/openGL2013. 12. 12. 22:01
조만간.. 이거 덤프하는 프로그램을 짜봐야지..


[링크 : http://www.glprogramming.com/]
    [링크 : http://www.glprogramming.com/red/appendixb.html]
Posted by 구차니
Programming/openGL2013. 4. 9. 22:45
나중에 해봐야징~
아무튼 기본 컨셉은 AVI 파일을 BMP로 변환해서 그걸 texture로 주기적으로 바꾸어 주는 것.

[링크 : http://nehe.gamedev.net/tutorial/playing_avi_files_in_opengl/23001/] << visual Studio / linux용 코드 존재
[링크 : http://blog.naver.com/treewild/20005011394] << 한글 번역본 

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

GL2PS : an OpenGL to PostScript printing library  (0) 2014.03.06
openGL state variables  (0) 2013.12.12
openGL gcc에서 컴파일 하기  (0) 2012.06.02
glsl과 glew의 연관관계  (0) 2011.11.22
GLSL 관련 링크  (0) 2011.11.20
Posted by 구차니