Giter VIP home page Giter VIP logo

computer-graphic's Introduction

README

This is a Course Project for BUAA Computer Graphic Course

  • File Structures

    • Project is in visual studio project
    • CG1\CG2\CG3 are sample program
    • Principle and effects.pdf
    • two dependent library files of X64
  • CG1,CG2,CG3 could run instantly

    Press the up, down, left and right arrow keys to rotate the object. CG3 can press F1,F2,F3,F5 to change the density of the spherical mesh (corresponding to the recursive depth of 2345 respectively).

Dependent libraries:

  • opengl(glut)X64

  • freeimage X64(using visual studio)

    usingvisual studio 2022

Using Instructions

  • Configure the library, rely on the path (freeimage, glut), place freeimage.dll in the root directory (already placed)
  • Open project Project1 with three C files: CG1\CG2\CG3
    • CG1 is rotated color cube and has 2D graphics in it
    • CG3 is a three-dimensional sphere drawn by recursive subdivision
    • CG2 is the rest. Complex scenes with texture maps, environment maps, cube shadows, two light sources, perspective projections, translucent effects Yellow corresponds to CG2, green to CG1, and red to CG3
  • If you want to run one, just comment out the code of the other two files and run it directly

食用方法

  • 配置好库,依赖路径(freeimage、glut),将FreeImage.dll放入根目录(已放置好)
  • 打开项目Project1,其中有三个c文件:CG1\CG2\CG3
    • CG1是旋转彩色立方体,并有2D图形在其中

    • CG3是利用递归细分绘制的三维球面

    • CG2是其余的。有纹理映射的,环境映射的,立方体阴影的,两个光源的,透视投影的,半透明效果的复杂场景

      黄色对应的是CG2,绿色对应的是CG1,红色对应的是CG3

  • 想要运行哪一个,只需要将其余两个文件的代码全都注释掉,直接运行即可

computer-graphic's People

Contributors

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