Giter VIP home page Giter VIP logo

cg_robot_arcball's Introduction

"Robot on Arcball Interface"

OpenGL, GLUT, C++ 이용하여 개발

1. Robot on Arcball Interface

a. 프로젝트 설명

1) robot.cpp :

키보드 버튼 누르면 각 case별로 움직임이 달라진다.

  • 1 버튼 : Base가 이동되어 로봇 전체가 스페이스 위로 이동 - glTranslated(BaseTransX, 0.00f, BaseTransZ)
  • 2 버튼 : Base 위의 Shoulder가 360도로 이동 - glRotated(BaseSpin, 0, 1, 0)
  • 3 버튼 : Base 위의 Shoulder와 Elbow가 상하로 이동 - glRotated(ShoulderAng, 0, 0, 1), glRotated(ElbowAng, 0, 0, 1)
  • 4 버튼 : 빨간 Wrist가 사방으로 이동 - glRotated(WristAng, 0, 0, 1), glRotated(-WristTwistAng, 1, 0, 0)
  • 5 버튼 : 빨간 Finger가 집게처럼 이동 - glRotated(FingerAng1, 0, 0, 1), glRotated(FingerAng2, 0, 0, 1), glRotated(-FingerAng1, 0, 0, 1), glRotated(-FingerAng2, 0, 0, 1)

2) modified_robot.cpp :

robot.cpp을 기본으로 하여 arcball interface를 접목시켰다. (주석에서 for HW4라고 쓰인 부분)

  • Arcball 이란?

마우스를 이용한 view 회전으로, 물체 주위에 구를 만들어서 마우스로 물체를 회전시킨다.

arcball.h와 arcball.cpp를 가져와서 이용하였다.

c. 시연

기본 모습

1

1번, 2번, 3번, 4번, 5번 버튼 모습

2

Arcball

3

4

4. 개발자 정보

홍정수

5. 최종 업데이트 날짜

2018.10.24 (WED)

cg_robot_arcball's People

Contributors

inthong610 avatar

Stargazers

KyeonghunKim avatar  avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.