Code Monkey home page Code Monkey logo

opengl_3d_gasket's Introduction

opengl_3D_gasket

Opengl을 사용한 3차원 Gasket구현 glew와 glfw shader를 사용하였습니다.

면마다의 다른 색상도 구현하였습니다.

3D gasket을 통한 키보드,마우스interface 또한 구현하였습니다.

사용법

  • Q/q 키를 누르면 프로그램 종료

  • 숫자 1, 2, 3, 4 키를 눌렀을 때, 각 4면을 칠하는 색상이 바뀜

  • 마우스 왼쪽 클릭 시 숫자 1, 2, 3, 4에 부여되었던 색상 조합이 순차적으로 변경됨

    : 1 -> 2 -> 3 -> 3 -> 4 -> 1 ->...

  • U/u 키를 누르면 사면체 분할 횟수 증가(10이상 증가 시 메모리 부족으로 인하여 10이상은 막아둠)

  • D/d 키를 누르면 사면체 분할 횟수 감소(값은 음수가 되지 않음)

  • '+' 키를 누르면 사면체 크기 증가

  • '-' 키를 누르면 사면체 크기 감소(스케일 값은 음수가 되지 않음)

  • 마우스 오른쪽 클릭 시 회전축 변경(회전축 변경시 회전각 0도로 리셋)

    : 정지(default) -> z축 -> x축 -> y축 -> 정지 ->...

opengl_3d_gasket's People

Contributors

junuu avatar

Watchers

 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.