Giter VIP home page Giter VIP logo

cg_book_practice's Introduction

cg_book_practice

blog

Yepeichu——《计算机图形学编程》笔记

chapter 2

  1. background

  2. draw a point with changing size

  3. detectException

  4. readShaderSource

  5. drawTriangle

  6. triangleMoving

To run the code, we should install the two library:

sudo apt-get install libgl1-mesa-dev

sudo apt-get install libglew-dev

sudo apt-get install libglfw3-dev

if you want to run the test code, maybe you should install GLUT:

if you want to save the image, maybe you should install OpenCV 3:

you should compile from source code.

There are some problems about glew, which can visit the website.

chapter 3

  1. transformPoint

Note that we need glm to define the data type.

chapter 4

  1. drawCube

  2. drawCubeColor

  3. drawCubeRotate

  4. drawMultipleCubes

  5. drawMultipleCubesInstance

  6. drawMultipleGeometries

  7. drawPlanets

Note that we can modify the camera position(bigger z) to see more things.

cg_book_practice's People

Contributors

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