Search This Blog

Wednesday, November 11, 2009

Good animation movies

Unlike my other posts, I will keep updating this post when I get some new information - but there will be only additions.

Here is list of some good animation movies -
1. My neighbour Totoro - I liked this movie very very much. I must appreciate Japanese people for accuracy and perfection in their work. Story is equally good.
2. Ice Age 1/2/3 - I liked Ice Age 1 very much. Ice Age 2 and 3 are also worth watching.
3. Wall-E - This is master piece, what a technology. Some of the scenes looks almost real life.
4. Kung Fu Panda - Very funny. Animation is definitely good.
5. Cars - I can not believe, this is animation movie. It is too good.

Sunday, November 8, 2009

Macro expansion output using Visual C++ 6.0

I like this option of Visual studio very much. I forgot this for long time. I have tested this option for Visual C++ 6.0 but I am 99% sure that it must be working for all new versions of visual studio.

Suppose I have simple program like
// Souce.c
#define greater(a, b) ((a) > (b) ? a : b);

int main()
{
greater(10, 20);

return 0;
}
// Source.c ends here

Now how to create a file which will show me expanded macros in this course file?

Very simple add /E and /P to project options. In the same file as that of Source.c a new file Source.i will be generated.

I am writing here contents of Source.i to understand it's contents -

# Source.i

#line 1 ...



int main()
{
((10) > (20) ? 10 : 20);;

return 0;
}

# Source.i ends here

Hope this post is of help

Saturday, November 7, 2009

OpenGL programming guide - RedBook

I was reading RedBook for past few weeks. I read this book in free time, since it is Guide - it is not very difficult even if you read it with lots of breaks. This book is definitely good. I have not finished it though - have stopped for some time after coming to chapter on Tessellators.

Good thing is you can read it online - officially :) ( old version of this book - version 1.1, hard copy I have has version 2.1). I dont think reading old version will make any great difference for beginner ;).

First few chapters in the book - almost upto chapter 7 can be understood to good extend even if you do not have much background of Computer graphics.
But then when it comes to Bitmaps, texture mapping and further topics it is quite difficult to understand without computer graphics background (I am stuck because of same reason).

I tried most of the programs in this books. There are many links from where you can download the source code, but I will recommend TYPE IT.
Some links which could be of help -
http://www.opengl.org/resources/code/samples/redbook/
http://www.opengl-redbook.com/source/
http://www.sgi.com/products/software/opengl/examples/redbook/

I used Fedora 11 (64 bit), learning OpenGL programs on Linux is easy with the help of GLUT.

I do not remember procedure to set GLUT, but it is very easy few google searches should be enough. Remember you need to install freeglut.

If you are using GCC and do not want have simple make file to compile your OpenGL programs (using GLUT), following make file might be of help

gcc command to create executable -
gcc -Wall -lglut .c -o

I hope this post is of help to beginner in OpenGL. I will try to answer doubts if you post them in comments.

Reading Computer Graphics Principles and Practice by James Foley might be more beneficial if you really want to be good in computer graphics (Note I have not read Foley's book yet)

Cheers!!
Ashish