GithubHelp home page GithubHelp logo

3dcomputer_graphics_alg's Introduction

3DComputer_Graphics_ALG

Implement 4 computer graphics drawing or rendering algorithms.

Introduction

Proj1

Proj 1 is a simple program can use mouse to click on monitor, then draw 2D shapes, such as line, dot, circle , polygon. This proj only use OpenGL method, drawDot, to complete and implement midpoint draw line alg.

Feature

mode

the program contain 4 modes, include:

  • d : the initial mode is mode d, and you can switch to this mode by keyboard input d. Under this mode user can draw dot.
  • l : User can switch to this mode by keyboard input l. Under this mode user can draw line.
  • p : User can switch to this mode by keyboard input p. Under this mode user can draw polygon.
  • o : User can switch to this mode by keyboard input o. Under this mode user can draw circle.

how to draw

dot

left click the canvas, and the dot will be draw on the position mouse click.

line

left click the canvas for two times, the dot will be draw on canvas from the position first click to the second one.

polygon

left click the canvas for many times, the edge of polygon will be drawn. right click to complete the polygon drawing.

circle

left click the canvas, and the cirlce will be drawn for the center is position mouse down, and the radius is the position mouse up to position mouse down.

Other function

clear screen

pressed keyboard c to use.

recovery

pressed keyboard r to use.

exit

pressed keyboard q to use.

Porj2

proj 2 implement 2D line and polygon drawing, pattern transformation, View Port, Clipping and execute the commands, include scale, rotate, translate, square, triangle, view, clearData, clearScreen. It will read .asc file as input.

Proj3

Proj 3 is implement 3D line and line and polygon drawing, pattern transformation, View Port, Clipping, hidden surface removal and execute the commands, include scale, rotate, translate, object, observer, viewport, nobackfaces, reset. It will read .asc file as input.

Proj4

Proj 4 is implement 3D line and line and polygon drawing, pattern transformation, View Port, Clipping, hidden surface removal, lighting & shading, polygon filling and execute the commands, include scale, rotate, translate, object, observer, viewport, nobackfaces, reset. It will read .asc file as input.

Usages

  • install Visual Studio, and create new proj, and put data to debug folder, then run the code.

Contact

[email protected]

3dcomputer_graphics_alg's People

Contributors

fordevoted avatar

Stargazers

 avatar

Watchers

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