Programming/openGL2020. 4. 6. 21:51

아 정리하기 귀찮다 -ㅁ-

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

glMatrixMode()  (0) 2020.04.14
opengl superbible 3rd 리눅스 빌드 패키지  (0) 2020.04.08
openGL 책 보면서 정리중 - 챕터3  (0) 2020.04.05
glEnable(), glPushAttrib()  (0) 2020.04.04
openGL superbible 3rd ed. 읽기 시작  (0) 2020.04.03
Posted by 구차니
Programming/openGL2020. 4. 5. 22:11

이건 블로그 보다 위키에 정리 하는게 나으려나?

 

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, GLushort pattern) // factor : 픽셀 단위 길이, pattern : 선의 형상

glEnd()

 

glBegin(GL_LINE_LOOP)

 

 

삼각형

glEnable(GL_CULL_FACE)

glDisable(GL_CULL_FACE)

glShadeModel(GL_FLAT) // GL_SMOOTH

glBegin(GL_TRIANGLES)

glBegin(GL_TRIANGLE_STRIP)

glBegin(GL_TRIANGLE_FAN)

    glFrontFace(GL_CW)

    glFrontFace(GL_CCW)

glEnd()

 

glEnable(GL_DEPTH_TEST)

    glDepthMask(GL_FALSE) // GL_TRUE

    glClearDepth(GLclampd value)

 

stipple (점묘법)

1bit color bitmap으로 선에 패턴을 그리거나 폴리곤에 32x32 사이즈의 패턴을 입힐 수 있으나

텍스쳐와는 다르게 rotate 되지 않는 특성을 지님(반대로 생각하면 선에 패턴을 그어 두면 줌 배율 상관없이 선 크기가 고정된다?)

 

scissor

win32api에서 갱신영역 지정해서 cpu 조금 먹게 하는 것과 비슷한 기법

직사각형 식으로 x,y,w,h 로만 지정이 가능

 

stencil

스텐실 마스크를 통해서 원하는 위치만을 렌더링 할 수 있다고 하는데 좀 많이 복잡함

glutInitDisplayMode(GLUT_STENCIL)

glEnable(GL_STENCIL_TEST)

glStencilFunc()

glClear(GL_STENCIL_BUFFER_BIT)

glClearStencil(GLint s)

glStencilOp(fail, z-fail, z-succes)

/*

GL_KEEP - 보존

GL_ZERO - 0으로

GL_REPLACE - glStencilFunc() 지정값으로 대체

GL_INCR - 증가

GL_DECR - 감소

GL_INVERT - 반전

GL_INCR_WRAP - 조건에 의해 증가

GL_DECR_WRAP - 조건에 의해 감소

*/

Posted by 구차니
Programming/openGL2020. 4. 4. 10:15

두 함수가 다루는 내용이 비슷한 느낌이라 일단 스크랩

 

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]

Posted by 구차니
Programming/openGL2020. 4. 3. 23:21

예전에 줄을 그어가면서 열심히 읽었구나...

그런데 놓친게 왜이리 많았지? 그래서 이해를 못했던 건가? 이런 생각이 많이 드네

 

아무튼 다시 공부 시작해보자.. 틈틈히

Posted by 구차니

그나마 자가격리 잘하고 있는 분이라 칭찬하고 응원해드리고 싶지만

그래도 100미터 될까 말까한 거리라 조금 불안불안 ㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

아동돌봄 포인트?  (0) 2020.04.07
언넝 재취업을 해야 하나..  (2) 2020.04.06
간만에 외식  (4) 2020.03.25
실업급여 1회차 받으러 갔는데.  (0) 2020.03.24
인생의 쓴맛(?)을 본 날  (4) 2020.03.23
Posted by 구차니
embeded/DSP C2000 Ti2020. 4. 2. 11:52

보드가 문제인지 JTAG이 문제인지 알수가 없으니 더 어렵네

 

target 보드를 연결하지 않고 하면 아래와 같이 나오고

** Checking emulator/eZdsp scan connection
** Emulator Test **
 $$ EmuProductName=XDS510USB
 $$ EmuPortAddr=0x510
 $$ EmuPortMode=USB
 $$ ProductId=510
 $$ ProductVersion=84
 ** Emulator Scan Test

  >> Check power to your emulator/eZdsp
  >> Then check your port mode/address

CCS(eclipse)에서는 아래와 같은 에러가 나온다.

Error connecting to the target:
Error 0x80000200/-2082
Fatal Error during: OCS, 
Device driver: Emulation Connection Loss Detected on Target CPU.
It is recommended to RESET EMULATOR.  This will disconnect each 
target from the emulator.  The targets should then be power cycled
or hard reset followed by an emureset and reconnect to each target.

 

타겟 보드 연결해서 전원 연결해주고 하면 다음과 같이 나온다.

** Checking emulator/eZdsp scan connection
** Emulator Test **
 $$ EmuProductName=XDS510USB
 $$ EmuPortAddr=0x510
 $$ EmuPortMode=USB
 $$ ProductId=510
 $$ ProductVersion=84
 ** Emulator Scan Test
   -- Found JTAG IR length of 3
   -- Found 1 JTAG device(s) in the scan chain

왜 CCS에서 디버깅이나 load 하려고 하면 아래와 같은 에러가 나올까..

Error connecting to the target:
Error 0x80000200/-1135
Fatal Error during: OCS, 
Unrecoverable emulation error

'embeded > DSP C2000 Ti' 카테고리의 다른 글

spectrum digital XDS510 USB  (0) 2023.07.14
TMS320 소비전력  (0) 2023.07.13
TMS320 보드 버전  (0) 2020.02.18
TMS320 DSP 준비..  (0) 2020.02.16
JTAG ETM / ETB / ITM  (0) 2018.02.12
Posted by 구차니

리눅스에서 하니 잘되네

그나저나.. odroid xu4 에서 돌리는데 ffmpeg 변환은 neon을 써서 그런지

cpu 클럭과 상관없이(300Mhz / 1.5Ghz) 변환 속도가 13.0x 정도로 나온다.

size=     256kB time=00:00:19.85 bitrate= 105.6kbits/s speed=13.2x

 

find . -type f -iname "*.webm" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3";' _ '{}' \;

[링크 : https://bytefreaks.net/gnulinux/bash/ffmpeg-extract-audio-from-webm-to-mp3]

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

ffmpeg fbdev  (0) 2021.02.09
ffmpeg build  (0) 2020.11.25
ffmpeg h264 encoding 옵션  (0) 2019.02.22
ffmpeg으로 비디오 비트레이트 바꾸기  (0) 2019.02.22
ffmpeg 레이턴시 관련 옵션 조사  (0) 2018.12.16
Posted by 구차니
Linux/centos2020. 4. 1. 16:59

drwr-xr-x. 이라고 표시되는 게 있는데

selinux security context가 있을 경우 . 으로 표기 된다고 한다.

+로 표기 되는건 다른 alternate access method의 조합이 있을 경우라는데 그게 어떤 의미인진 모르겠다.

setfacl로 세부 조정된 내용이 있으면 +가 뜨는 걸까?

 

from info coreutils 'ls invocation' under Linux

GNU `ls' uses a `.' character to indicate a file with an SELinux
     security context, but no other alternate access method.

A file with any other combination of alternate access methods is
     marked with a `+' character.

[링크 : https://stackoverflow.com/.../what-does-the-dot-at-the-end-of-the-permissions-in-the-output-of-ls-lah-mean]

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

centos stream?  (0) 2020.12.10
centos 8.2 네트워크 설정  (0) 2020.12.02
centos7 minimal / X11 사용하기  (0) 2020.02.04
리눅스 로그인 실패 로그  (2) 2019.07.07
centos7 USB 설치 중 /dev/root dose not exist 에러  (0) 2019.07.02
Posted by 구차니
게임2020. 4. 1. 11:01

교회에서 좀비들 잡고 다음 챕터 가야 하는데 계속 튕김 -_ㅠ

에러 로그는 아래와 같은데 구글로 검색해보니 스팀 포럼에서

그래픽 문제라고 하는데.. 혹시나 해서 i3-2100 내장 그래픽으로 해상도 팍팍 내려서 했음에도 불구하고

intel 내장 그래픽으로도 튕기는 문제 발생 -_-

머 그렇다면 우회할 방법이 없으니 게임을 포기할 수 밖에 ㅠㅠ

 

Version: 1.10.4.2 Thread: LoaderThread


System.InvalidOperationException: The active render target and depth stencil surface must have the same pixel size and multisampling type.
   위치: Microsoft.Xna.Framework.Graphics.GraphicsDevice.VerifyDepthRenderTargetCompat()
   위치: Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(ClearOptions options, Color color, Single depth, Int32 stencil, Rectangle[] regions)
   위치: Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(ClearOptions options, Color color, Single depth, Int32 stencil)
   위치: Magicka.GameLogic.GameStates.LoadingScreen.Initialize(Boolean iShowProgress, String iTipText, Boolean managedMode)
   위치: Magicka.GameLogic.GameStates.PlayState.HookupLoadingScreen(Action`1& loadingCallBack, Action& whenDoneCallBack, Single startPercentage, Single targetPercentage)
   위치: Magicka.Levels.Level.ChangeScene()
   위치: Magicka.Game.LoaderFunction()
   위치: Magicka.Misc.TrackedThread.StartThread()
   위치: System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   위치: System.Threading.ThreadHelper.ThreadStart()


[RenderThread]0x0009 Microsoft.Xna.Framework.dll->Microsoft.Xna.Framework.Graphics.GraphicsDevice.Present
[RenderThread]0x0011 Microsoft.Xna.Framework.Game.dll->Microsoft.Xna.Framework.GraphicsDeviceManager.Microsoft.Xna.Framework.IGraphicsDeviceManager.EndDraw
[RenderThread]0x0013 Microsoft.Xna.Framework.Game.dll->Microsoft.Xna.Framework.Game.EndDraw
[RenderThread]0x00fd Magicka.exe->Magicka.Game.Draw
[RenderThread]0x009a Microsoft.Xna.Framework.Game.dll->Microsoft.Xna.Framework.Game.DrawFrame
[RenderThread]0x02fc Microsoft.Xna.Framework.Game.dll->Microsoft.Xna.Framework.Game.Tick
[RenderThread]0x0006 Microsoft.Xna.Framework.Game.dll->Microsoft.Xna.Framework.Game.HostIdle
[RenderThread]0x0019 Microsoft.Xna.Framework.Game.dll->Microsoft.Xna.Framework.GameHost.OnIdle
[RenderThread]0x0022 Microsoft.Xna.Framework.Game.dll->Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle
[RenderThread]0x001d System.Windows.Forms.dll->System.Windows.Forms.Application+ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle
[RenderThread]0x01d2 System.Windows.Forms.dll->System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop
[RenderThread]0x01de System.Windows.Forms.dll->System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner
[RenderThread]0x0013 System.Windows.Forms.dll->System.Windows.Forms.Application+ThreadContext.RunMessageLoop
[RenderThread]0x0011 System.Windows.Forms.dll->System.Windows.Forms.Application.Run
[RenderThread]0x0024 Microsoft.Xna.Framework.Game.dll->Microsoft.Xna.Framework.WindowsGameHost.Run
[RenderThread]0x00bf Microsoft.Xna.Framework.Game.dll->Microsoft.Xna.Framework.Game.Run
[RenderThread]0x01a1 Magicka.exe->Magicka.Program.Main


[LoaderThread]0x012a Microsoft.Xna.Framework.dll->Microsoft.Xna.Framework.Graphics.GraphicsDevice.VerifyDepthRenderTargetCompat
[LoaderThread]0x0023 Microsoft.Xna.Framework.dll->Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear
[LoaderThread]0x000c Microsoft.Xna.Framework.dll->Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear
[LoaderThread]0x0207 Magicka.exe->Magicka.GameLogic.GameStates.LoadingScreen.Initialize
[LoaderThread]0x0036 Magicka.exe->Magicka.GameLogic.GameStates.PlayState.HookupLoadingScreen
[LoaderThread]0x0060 Magicka.exe->Magicka.Levels.Level.ChangeScene
[LoaderThread]0x003a Magicka.exe->Magicka.Game.LoaderFunction
[LoaderThread]0x0000 Magicka.exe->Magicka.Misc.TrackedThread.StartThread
[LoaderThread]0x0024 CommonLanguageRuntimeLibrary->System.Threading.ThreadHelper.ThreadStart_Context
[LoaderThread]0x005f CommonLanguageRuntimeLibrary->System.Threading.ExecutionContext.Run
[LoaderThread]0x0019 CommonLanguageRuntimeLibrary->System.Threading.ThreadHelper.ThreadStart


[LogicThread]0x0080 Magicka.exe->Magicka.Game.ThreadedUpdate
[LogicThread]0x0000 Magicka.exe->Magicka.Misc.TrackedThread.StartThread
[LogicThread]0x0024 CommonLanguageRuntimeLibrary->System.Threading.ThreadHelper.ThreadStart_Context
[LogicThread]0x005f CommonLanguageRuntimeLibrary->System.Threading.ExecutionContext.Run
[LogicThread]0x0019 CommonLanguageRuntimeLibrary->System.Threading.ThreadHelper.ThreadStart


[WebCalls]0x0039 Magicka.exe->Magicka.Achievements.AchievementsManager.Worker
[WebCalls]0x0000 Magicka.exe->Magicka.Misc.TrackedThread.StartThread
[WebCalls]0x0024 CommonLanguageRuntimeLibrary->System.Threading.ThreadHelper.ThreadStart_Context
[WebCalls]0x005f CommonLanguageRuntimeLibrary->System.Threading.ExecutionContext.Run
[WebCalls]0x0019 CommonLanguageRuntimeLibrary->System.Threading.ThreadHelper.ThreadStart


'게임' 카테고리의 다른 글

forza horizon 4 - 가을시즌 획득!  (0) 2024.11.24
flight simulator X  (0) 2021.06.27
magicka 포기?  (0) 2020.03.30
magicka 챕터 4까지 완료!  (0) 2020.03.21
magicka 시작!  (0) 2020.03.20
Posted by 구차니
개소리 왈왈/컴퓨터2020. 3. 31. 21:37

i3-2120인줄 알았는데 i3-2100 이네..

그런데 좀 의외인건.. 이거 HT를 지원하네?

i5 에도 안 넣어 준건데.. 도대체 어떻게 되어먹은 라인업이야?

 

 

 

[링크 : https://ark.intel.com/.../53422/intel-core-i3-2100-processor-3m-cache-3-10-ghz.html]

[링크 : https://ark.intel.com/.../52209/intel-core-i5-2500-processor-6m-cache-up-to-3-70-ghz.html]

 

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

아내 친구분 집에서 컴퓨터 수리하려고 가져옴  (0) 2020.04.30
터치 스크린, 화상 키보드 단상  (0) 2020.04.21
지름 도착  (2) 2020.03.07
오늘의 지름  (0) 2020.03.03
AMD Eyefinity 시도  (0) 2020.03.03
Posted by 구차니