'2019/05/30'에 해당되는 글 3건

  1. 2019.05.30 glulookat / gluperspective / glfrustrum / glortho
  2. 2019.05.30 rpi as bt device
  3. 2019.05.30 docker create와 docker rm
Programming/openGL2019. 5. 30. 19:04

다른 유틸리티를 같은 레벨로 봤군...

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://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluLookAt.xml]

 

Name
gluPerspective — set up a perspective projection matrix

C Specification
void gluPerspective( GLdouble fovy,
  GLdouble aspect,
  GLdouble zNear,
  GLdouble zFar);

[링크 : https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluPerspective.xml]

 

Name
glFrustum — multiply the current matrix by a perspective matrix

C Specification
void glFrustum( GLdouble left,
  GLdouble right,
  GLdouble bottom,
  GLdouble top,
  GLdouble nearVal,
  GLdouble farVal);

[링크 : h]ttps://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glFrustum.xml]

 

Name
glOrtho — multiply the current matrix with an orthographic matrix

C Specification
void glOrtho( GLdouble left,
  GLdouble right,
  GLdouble bottom,
  GLdouble top,
  GLdouble nearVal,
  GLdouble farVal);

[링크 : https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glOrtho.xml]

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

gluPerspective / gluLookat 소스코드  (0) 2019.06.01
gl glx glu glut 소스코드  (0) 2019.05.31
gl model view projection mat  (0) 2019.05.29
gluPerspective()  (0) 2019.05.28
glfw3 in ubuntu 19.04  (0) 2019.05.10
Posted by 구차니
embeded/raspberry pi2019. 5. 30. 18:29

 

[링크 : http://www.python-exemplary.com/index_en.php?inhalt_links=navigation_en.inc.php&inhalt_mitte=raspi/en/bluetooth.inc.php]

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=181792]

 

$ hciconfig -a
hci0: Type: Primary  Bus: USB
BD Address: 40:2C:F4:DB:D9:97  ACL MTU: 1021:8  SCO MTU: 64:1
UP RUNNING PSCAN ISCAN 
RX bytes:697 acl:0 sco:0 events:55 errors:0
TX bytes:5299 acl:0 sco:0 commands:53 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x83
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
Link policy: RSWITCH HOLD SNIFF PARK 
Link mode: SLAVE ACCEPT 
Name: 'mini2760'
Class: 0x1c010c
Service Classes: Rendering, Capturing, Object Transfer
Device Class: Computer, Laptop
HCI Version: 2.1 (0x4)  Revision: 0x132
LMP Version: 2.1 (0x4)  Subversion: 0x4203
Manufacturer: Broadcom Corporation (15)

[링크 : https://www.instructables.com/id/Turn-the-Raspberry-Pi-into-a-Bluetooth-Device/] << 

[: https://www.instructables.com/id/Install-Bluetooth-in-Linux-System/]

 

[링크 : https://raspberrypi.stackexchange.com/questions/47708/setup-raspberry-pi-3-as-bluetooth-speaker]

 

+

Setting Up Bluetooth Serial Port Profile on Raspberry Pi using sdptool

[링크 : https://scribles.net/setting-up-bluetooth-serial-port-profile-on-raspberry-pi/]

 

app

[링크 : https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal&hl=en_US]

'embeded > raspberry pi' 카테고리의 다른 글

sd formatter 바뀌었네?  (0) 2019.07.23
라즈베리 파이 2 lakka 설정  (1) 2019.07.23
라즈베리 파이 3.5인치 모니터(SPI)  (0) 2019.04.17
rpi bt  (0) 2019.04.08
라즈베리 파이 3b 외장 안테나 부품 실장 관련  (0) 2019.04.05
Posted by 구차니
프로그램 사용/docker2019. 5. 30. 17:18

아무생각이 없으니 이렇게 했겠지만..

docker create를 통해서 다운로드 받은 이미지를

컨테이너로 생성하는데 아무생각 없이 계속 create를 하니 계속 생겨날줄 알았는데 하나만 생겨난다.

$ sudo docker create atmoz/sftp
0eccda7b1d98f8a1c0330eaa6c8a507c7e4f8a52b65bc9667425be0b1b26dc94

$ sudo docker container ls
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

$ sudo docker create atmoz/sftp
1ff507e5604be9a49cc235137eef12accfe8385c098b5a980089b6badc5398aa

$ sudo docker container ls -all
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
1ff507e5604b        atmoz/sftp          "/entrypoint"       9 seconds ago       Created                                 suspicious_colden

$ sudo docker create atmoz/sftp
cbc11639cbb8263621b2106ecd9c50e265924052f620245a477e00e08c30cdbb

$ sudo docker container ls -all
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
cbc11639cbb8        atmoz/sftp          "/entrypoint"       2 seconds ago       Created                                 xenodochial_goldstine

 

그래서 테스트 하고 나서 삭제하려는데 어라?

지워도 지워도 계속 생겨난다 -ㅁ-?

 

$ sudo docker ps -all
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
1ff507e5604b        atmoz/sftp          "/entrypoint"       7 minutes ago       Created                                 suspicious_colden

$ sudo docker rm 1ff507e5604b
1ff507e5604b

$ sudo docker ps -all
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
0eccda7b1d98        atmoz/sftp          "/entrypoint"       8 minutes ago       Created                                 hopeful_hugle

$ sudo docker rm 0eccda7b1d98
0eccda7b1d98

$ sudo docker ps -all
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

 

의도된 작동인지 버그인지 내가 착각하는건지 모르겠네 -ㅁ-?

 

요약)

1. create로 container 생성시 계속 생겨나지만 가장 최신 녀석만 목록에 나옴

2. rm으로 container 삭제시에도 fifo 처럼 마지막에 생성된 녀석들의 이름만 나옴

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

docker ps 옵션 차이  (0) 2019.06.11
docker 컨테이너 이미지 이름으로 검색하기  (0) 2019.06.10
docker 자원 제한하기  (0) 2019.05.17
docker exited  (0) 2019.05.17
docker start run attach  (0) 2019.05.17
Posted by 구차니