Coder Social home page Coder Social logo

mdecourse / computer-aided-design Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kpaonaut/computer-aided-design

0.0 0.0 0.0 72.53 MB

Utilizing openGL for CAD programming. Course project for Introduction to Computer-aided Design 2018 fall @ Tsinghua University. Adapted from CMU course Computer Aided Design.

Home Page: http://www.aray.pub/2018/12/20/CAD/

C++ 12.77% C 62.96% CMake 0.58% Makefile 2.76% CSS 0.18% HTML 14.10% JavaScript 0.17% Objective-C 0.93% Mathematica 0.07% GLSL 0.04% Shell 3.37% Awk 0.02% Python 0.81% M4 0.20% Roff 0.84% Perl 0.06% sed 0.01% DIGITAL Command Language 0.16%

computer-aided-design's Introduction

OpenGL Usage

First Project

In folder /hw1.

This project enables several functions in the displaying window.

  • object rotation (up, down, left, right, M, N keys)
  • object movement (W, S, A, D, Z, X keys)
  • display mode selection (P, F, L, O keys)
  • color gradual change (R, G, B keys)

Display Mode Selection

P: only display points F: display triangles, in random colors L: only display lines O: display both triangle faces and lines

Color Gradual Change

R, G, B represent red, green, and blue elements in the color, respectively. When we keep pressing R, for example, the red element will be fluctuating in a sinusoidal pattern. We can also press several keys at the same time.

Second Project

This project displays an Archimedes' Screw. See folder hw2 for details.

Third Project

This project draws snow flakes with particle system.

Fourth Project

(The gif is not showing text clearly due to optimization requirements for web browser downloading.)

In this project, we draw a mini Solar System in 3D space with flat pictures of these celestial bodies given.

  • Each planet is rotating around the sun, the moon rotates around the earth.
  • The name of each body follows it (text).
  • We are able to navigate within this 3D space with keyboard and mouse pad.

Fifth Project

In this project, we draw a Bezier spline plane according to 25 control points.

We also utilize the tessellation introduced by openGL V4.0+.

Seventh Project

FAQ: Q: Where is the 6th project? A: It's actually a design project, so, no coding :)

Eigth Project: Simple Physics Engine

Notice

This project is the homework assignment of a CMU course Computer Aided Design. You can find the instructions of this project from the files additionalMaterial.pdf and README. Note that quite some libraries have to be installed properly on your computer before you can run make. The makefile is only composed for Mac, and need to be changed a bit for Linux or Windows systems.

Usage

On my mac, with libpng(ONLY version 12!) installed under lib/lib (already contained in the folder), first run source compile.sh.

After that, as long as you keep the terminal open, you should only need to run make to compile new changes and run ./physics scenes/The_scene_you_want_to_load.

computer-aided-design's People

Contributors

kpaonaut 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.