전체 글 썸네일형 리스트형 CARLA fisheye lens 구현하기 보호되어 있는 글입니다. 더보기 opencv를 총으로 쏘고싶다 opencv with cuda 버전 빌드 nvidia 그래픽 드라이버 재설치 visual studio 재설치 opencv 버전 변경 (4.8 -> 4.55 -> 4.6) cudatoolkit 재설치 (12.2 -> 11.7 -> 12.1) 2일동안 별짓을 다 해봤는데 안된다. 우분투 기준으로는 cudatoolkit 12.1, cudnn 8.8.1, opencv 4.6, contrib 4.6이 돌아간다고 한다. 윈도우는 왜 안되는가? 더보기 [python] ArgumentParser(argparse) 정리 ArgumentParser라는 이름에서 부터 알 수 있듯이, argument를 parsing하는 module이다. python의 standard library에 속해있는 module로 따로 설치할 필요는 없다. 특히 command line에 입력하는 인수(argument)를 구문 분석(parsing)하는 데 쓰인다. 사용법은 다음과 같다. 1. import argparse 2. declare parser 3. add argument 4. parsing the argument 코드와 함께 설명하자면 다음과 같다. 1. import argparse import os ... import argparse ... import numpy as np 2. declare parser if __name__ == "__m.. 더보기 OpenGL tutorial 12 (Face culling & Blending & FPS Counter ) Today I'll show you what face culling is, and how it affects performance. We are also gonna measure this performance change by making an FPS counter. So face culling is a step in the graphics pipeline that decides if a triangle will move on to the fragment shader (aka, if the triangle will be drawn or not). OpenGL decides this by seeing which side of the triangle is currently facing the camera. .. 더보기 OpenGL tutorial 11 (Stencil buffer & outlining) The Stencil bufferis use to create outlining effect. the Stencil Buffer, just like the Depth Buffer, holds a value for each pixel, these values being used for image masking in general. Unlike the Depth Buffer though, where each pixel holds between 2 and 4 bytes of data, for the Stencil Buffer each pixel only holds 1 byte of data, so values from 0 to 255. But you'll mainly only use the values of .. 더보기 OpenGL tutorial 10 (Depth) // Enables the Depth Buffer glEnable(GL_DEPTH_TEST); Since the buffer is turned off by default, we want to make sure we have it enabled, and that we clear it each frame just like the Color Buffer. Now what this buffer basically does, is that it stores "depth" values that represent how far away from the near plane of the projection matrix a certain fragment is. (The depth value represents 0 to 1... 더보기 OpenGL tutorial 9 (Model Loading) https://youtu.be/AB_f4slL2H0 opengl에서 가장 복잡하지만 가장 필요한 파트. the image file format is pretty standardized with png and jpg. but the model is not, there are dozen upon dozen of file format. the diversity of file formats makes a lot more difficult to export and import models, from one program to another. in the spirit of standardization, we use the glTF file format. the glTF is made by same people wh.. 더보기 OpenGL tutorial 8 (Mesh) We'll warp up all the classes Mesh is a data set that almost always contains vertices, often contains indices, and somtimes contains texture. the tree of our classes dependencies. we will declare three vectors named vertices, indices and textures. note that these are c++ vectors, instead of glm vectors (c++ vector is dynamic array) 1. store our VAO since we'll be initializing it using this class.. 더보기 이전 1 2 3 4 ··· 8 다음