/code:c, c++, OpenGL, linux

This is the repository for code and programs from me.

i'm an engineering student... so there i'll try to post my experiments and exercises or projects in coding, hopeful that someone'll find them useful..
my graduation thesis, on computer graphics
UGP : Useless Graphics Program
tsunami
Moebius Ring
Height Mapper
scripts, configs
File sizes histogram..
A C Quine generator :P
gallery script
Linux Kernel config for presario 2516 EU, Linux 2.6
.vimrc,.bashrc,.alias,.muttrc,.mailcap
my own vim-like fbi patch, fbgs.sh modified

c/c++/opengl stuff

my graduation thesis, on computer graphics 2004.11.05
thesis.html the html version , INCOMPLETE, DUE TO a latex2html bug! (english language, multiple files)

thesis_uniq.html the html version, INCOMPLETE, DUE TO a latex2html bug! (english language, single file)

thesis.pdf the pdf version (english language)

swmanual.pdf the software documentation (english language)

UGP : Useless Graphics Program 2004.11.11


ugpsrc20041111.tar.gz : the source code



ugprel20041111.tar.gz : the release data files

sdl.tar.gz : a required library, also available at www.libsdl.org.

Makefile

UGP is the project enclosing all my graphic experience.
It includes a 3D engine written in C++, and code to spawn animate various objects, or a fake tissue simulator... and much more...
It relies on Opengl and SDL libraries
INSTRUCTIONS : download all of the above files, and use the Makefile to proceed
tsunami 2003.10.03

tsunami20031003.zip

Win9x, a real-time based wave simulator (the simulation is screwed because normally wave energy is dissipated, while here, as the picture shows, the waves gain infinite energy ).
Since this demo is based on the project of other demos i made, ( the rotating moebius ring listed later in this page) , you'll find another things while navigating in the 3D world.
Navigation inside the world is obtained through a FPP-like camera (mouse for looking around and keyboard for moving ).
A rudimental console mode is also introduced (like that one that permits in games like Quake to insert cheats and such commands :) )
Check it out!!
Moebius Ring 2003.08.15

dezMoebiusRing.zip

win9x, a Moebius ring rotating on its own axis and a generic ring orbitating around it.
navigation inside the world is obtained through a FPP-like camera (mouse and arrows and D/C keys).
Height Mapper 2003.06

heightMapper.zip

 win9x, takes a bmp file as a heightmap, another as colormap-texture, and lets you navigate inside of it.
scripts, configs 2005

my bash scripts

File sizes histogram.. 2006

Accepting a list of filenames from standard input, it generates a little Octave program which plots a histogram of the filesizes of the input filenames.
fstats.pl [a PERL script which generates an octave filw which generates a plot]
fstats.pl.html [a PERL script which generates an octave filw which generates a plot]
A C Quine generator :P 2005

A C Quine generator, written in BASH: given 3 pieces of C code, generates a corresponding working Quine!
quinegen.sh [a BASH script which generates quines]
quinegen.sh.html [a BASH script which generates quines]
gallery script 2005

The script i use to make html galleries having pictures and thumbnail available
galleryscript [not commented]
Linux Kernel config for presario 2516 EU, Linux 2.6 20060301

my linux kernel .config my linux kernel .config, html'ized
mf 2005

mf : music find : a script to find music scattered on the filesystem, making a playlist, and playing matching results in some console based player :)
mf.sh[the script itself]
mf.sh.html [how it is seen under vim :)]
.vimrc,.bashrc,.alias,.muttrc,.mailcap 20051105

my .bashrc file, in both plain format and html'ed
bashrc
bashrc.html
my .vimrc file, in both plain format and html'ed
vimrc
vimrc.html
my .alias file, in both plain format and html'ed
alias
alias.html
my .muttrc file, in both plain format and html'ed
muttrc
muttrc.html
my .mailcap file, in both plain format and html'ed
mailcap
mailcap.html

Linux C code

my own vim-like fbi patch, fbgs.sh modified 20060301

fbi is a wonderful program for viewing images in the Linux framebuffer, by Gerd Knorr http://www.bytesex.org.

Since I like using vim, I find nice to have my usual vim move keys (h,j,k,l) in my image viewer. Moreover, there's a (limited) support for a completion-enabled command line interface, with options like 'automatic top placing', jump (go to) ,and other small facilities.
usage & functionalities:
inside fbi, press ':' to activate the miniconsole
now type 'help' and hit ENTER to see the help, or type
- 'set autoup' to autofit the image on the minor side (thus enlarging the viewed image)
- 'set autodown' to autofit the image on the major side (thus shrinking the viewed image)
- 'set autotop' to make sure that when viewing a lot of images (after 'fbi *') the next one will be aligned on top
- 'set scroll' these options could be switched off using 'unset COMMAND', where COMMAND is one of the preceding ones
inside fbi, you can use the following keys, like in vim
- h for scrolling left
- j for scrolling down
- k for scrolling up
- l for scrolling right
- m for printing out the filename to stdout (so you can use 'fbi * | less', having, after viewing, a list of 'marked' images, useful for defining a print-list or delete-list or something.. )
- a autozoom to fit upon width
- g to be prompted for jumping to some image in the list ('^' for the first, '$' for the last, or some number)
moreover, there's a limited TAB completion in the miniconsole
installation steps:
1 get the fbi_1.31.tar.gz file from www.bytesex.org or somewhere else.
2 tar -xzf fbi_1.31.tar.gz && cd fbi-1.31
3 wget http://dezperado.altervista.org/coding/linux/fbi.vim.diff
4 patch fbi.c fbi.vim.diff
5a make install
5b if you do not have the permissions, simply copy the 'fbi' executable file into your own ~/bin directory, making sure that this last is in your $PATH.
enjoy your new patched fbi!
This patch adds these facilities to the 1.31 version of the program.
fbi.vim.diff[a patch for the framebuffer image viewer, fbi]
fbi.vim.diff.html[a patch for the framebuffer image viewer, fbi, as seen in vim]
fbgs.sh[a wrapping script for the framebuffer image viewer, fbi]
fbgs.sh.html[a wrappig script for the framebuffer image viewer, fbi, as seen in vim]



i take no responsability for melt computers, lost dioptries, and cardiovascular-circulatory problems either directly or indirectly caused by the fruition of the informations here posted