Git Product home page Git Product logo

openglrotation-translation's Introduction

Author: Ahmad Moussa

How it works: 1 - Upon running the program a window will open waiting for user clicks inside the window

2 - clicking on the window generates points in 3D space, note that the points can be rotated by pressing the arrow keys, and the user can switch between rendering lines and points by pressing the 'L' and 'P' buttons respectively.

3 - Hitting 'Enter' on the keyboard wil generate a smooth curve from the previously given points, this curve can also be rotated in 3D space and switched betweenr endering modes.

4 - By hitting 'Enter' while displaying the rendered curve it will take you back to seeing the input points. Pressing 'C' in that view will take you also back to seeing the input points, and pressing 'C' again will clear the window and the user can input new points.

5 - While in seeing the smooth curve the user can press 'R' to create a rotational sweep surface from the curve. However this view can only be exited by closing the window and reopening it (because I didn't have time to implement it otherwise).

6 - In the file splines.cpp is an alternative function for getting the smooth surface that uses the subdicision method but unfortunately I could not get it to work, it just produces garbage values for the given points. Instead i brute force the points and get them through the Basis and Control matrices.

openglrotation-translation's People

Contributors

ahmadmoussa avatar

Stargazers

Wiem Ben Rim avatar

Watchers

James Cloos avatar  avatar

Forkers

darisallc

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.