Nowadays most of OpenGL applications use shaders (programmable pipeline) for rendering effects on graphics hardware instead of old provided functions in OpenGL 1.0 (fixed-function pipeline). There are many advantages of using shaders, such as performing arbitrary transformations on vertices and pixels, easily maintaining effect algorithms, etc. In this post I will share with you how I load, link and manage GLSL shaders in my projects. Continue reading
Create Frame Buffer Object OpenGL
In OpenGL, frame buffer is the final destination in the rendering pipeline. When we create a window for our OpenGL application, it automatically create frame buffer object for us. However we need to create our own frame buffer object in some cases, such as offscreen rendering. OpenGL applications in iOS also need to create frame buffer object. In this post, I will share with you how we can create a frame buffer object (FBO). Continue reading
Filed under OpenGL
Set up Qt for Visual Studio 2008
My upcoming project will need to work with Qt (http://qt.nokia.com/products/). Our team have decided to not use Qt Creator for the project. We use Visual Studio 2008 since it is easy to configure and all members are familiar with it. In this post, I will share with you how to configure Qt for visual studio 2008. Continue reading
Filed under C++
Reversi (Othello) Game
Reversi (Othello) is a board game (board size of 8×8) played by two players. Each player tries to turn the other’s pieces to his/her own pieces. In the end the player which has more pieces on the board is the winner. You can find the detail rules on Wikipedia.
The strategy I implemented for this game is based on this website Continue reading
File Download Manager in Java
Download manager is a program that helps us download files from Internet efficiently. The program can pause or resume downloads. It also can split the files to be downloaded into 2 or more segments, which are processed in parallel, making the download faster. In this post, I will share with you how I write a download manager program in Java with those features. Continue reading
Filed under Java
Simple Web Proxy Python
When I was in year 3, I studied the module “Computer Network 2″. There was an assignment about implementation of a simple web proxy. In this post, I will share with you my program for the assignment (written in Python).
The proxy sits between the client (usually web browser) and the server (web server). In our simple case, the client sends all its requests to the proxy instead of sending requests directly to the server. The proxy then opens a connection to the server, and passes on the client’s request. Continue reading
Filed under Python
Simple Android and Java Bluetooth Application
Last week was my school’s recess week. I had a lot of free time and decided to learn Java and Android Bluetooth by reading the Bluetooth development guide for Android. Then I had an idea to make my Android phone become a simple remote control for my laptop, just for controlling the Power Point slides for presentation. The volume up and volume down become buttons for going to next and previous slide respectively. Continue reading
Setup OpenCV for Python in Windows
I have always struggled when trying to set up OpenCV for Python before. So I decide to write this post to help myself in the future and share with you =). My setup is for OpenCV 2.2 but I think you can apply for any version of OpenCV.
Continue reading
Filed under OpenCV
I'm Thuy, a final year Computer Science student from National University of Singapore (NUS). I currently live in Singapore. I am interested in software engineering, mobile application and game development.