Giter Site home page Giter Site logo

opengl_spring_demo's Introduction

Intro

Some old experiments with OpenGL I found on my archives. This is very old stuff I wanted to share instead of throwing it away, maybe it will be useful to someone.

I remember I developed this on Linux and compiled it also on Visual Studio 6 under Win32. Today I own a Mac and managed to tweak the code just so that it compiles and runs.

Below you'll find instructions to compile under OSX and Linux, I don't remember how it was compiled under Windows google for it (search for "compile with glut under visual studio" or something).

Unfortunately the code has spanish comments and names.

Screen capture

Building

OSX

gcc -framework OpenGL -framework GLUT spring_demo.c -o spring_demo

Linux

gcc spring_demo.c -lGLU -lglut -o spring_demo

Win32

Pending instructions

Using

Drag with the mouse on the spring and the spring will oscilate with some simulated exponential dumping.

Keys

'N' Toggle visibility of normal vectors
'S' Toggles visibility of wires
'Num pad (or numbers)' produces some rotations ('5' resets view)

opengl_spring_demo's People

Contributors

manuca avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

capt72 ychuan1115

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.