My baby shot me down !

 

Advertisements
Posted in Literature | Leave a comment

My cup runneth over !!!

I was just playing around with the Bullet Physics library and thought why not make a cool simulation video. So here’s the final result.

PS: Probably creating this in Blender is simple but where is the fun in that. Plain old OpenGL and C++ are the best :D

Posted in Graphics, Literature | Tagged , , , , | Leave a comment

Ain’t no sunshine…

Once in a while, you come across a song that has this wow effect on you and this is one of those songs.

Artist : Bill Withers
Song: Ain’t no sunshine…

Lyrics:

Ain’t no sunshine when she’s gone.
It’s not warm when she’s away.
Ain’t no sunshine when she’s gone
And she’s always gone too long anytime she goes away.

Wonder this time where she’s gone,
Wonder if she’s gone to stay
Ain’t no sunshine when she’s gone
And this house just ain’t no home anytime she goes away.

And I know, I know, I know, I know, I know,
I know, I know, I know, I know, I know, I know, I know,
I know, I know, I know, I know, I know, I know,
I know, I know, I know, I know, I know, I know, I know, I know

Hey, I ought to leave the young thing alone,
But ain’t no sunshine when she’s gone, only darkness everyday.
Ain’t no sunshine when she’s gone,
And this house just ain’t no home anytime she goes away.

Anytime she goes away.
Anytime she goes away.
Anytime she goes away.
Anytime she goes away.

Posted in Literature | 2 Comments

Haptic Bullet Physics Demo

I have done lots of custom physics and haptics demos in the past using Nvidia Physx and Havok libraries.
This is my haptic Bullet demo which uses Bullet v 2.76 and OpenHaptics v3.0 from SensAble technologies.
Two “6DOF input / 3DOF force feedback” Phantom Desktop haptic devices from SensAble technologies were used.
You can touch, push around and manipulate all objects in the scene and feel high fidelity forces in 3 DOF X, Y and Z. The torques due to the rotations of the objects were resolved and converted to x, y and z forces.

Here is a video of the demo.

Source code:

http://cid-0c7bf0bdb006d427.office.live.com/embedicon.aspx/.Public/bulletDemo.zip

PS: This demo is running on a very old computer with 64MB graphics card. No fancy stuff here :). The physics loop is stepped at a much higher rate than normal to provide a smooth and crisp haptic feedback.

Posted in Graphics | Tagged , , , , | 15 Comments

GLSL Bump mapping

Continuing on the quest to learn GLSL, here is another example to perform bump mapping on the GPU.

Here is the screenshot:

Bump Mapping on GLSL

Here is a good link on how to perform bump mapping by altering the normal and by updating the per pixel lighting equation accordingly.

Opengl Bump mapping

Here is the OpenGL shader code for the same.

CODE

Posted in Graphics | Tagged , , , , | Leave a comment

Hello OpenGL Shading Language

I have been using the OpenGL fixed pipeline for the past 7 years. I have graphics hardware that is almost arcane at the workplace. So I always tried to squeeze the best performance out of the old graphics cards as much as possible. I wanted to learn the new higher level GPU language GLSL for a long time now and made it a point to start this new year. After much browsing online , reading multiple articles and manuals; I made my first program.

A good introductory read on GLSL.

Here is my first program to load a texture through GLSL.

Texturing on GLSL

Here is the shader code:

CODE

Posted in Graphics | Tagged , , , | Leave a comment

OpenGL Geodesic Sphere

A Geodesic sphere is created by the sub-division of a platonic solid called icosahedron.

Prologue:

I wanted to create a really nice looking sphere in OpenGL and searched the web for some pointers. All the links I came across talked about this geodesic sphere but none of them had the OpenGL code to generate one. I found this hard to believe since I was able to find examples code/ demos for almost anything related to OpenGL from the world wide web in the past. So I started out to make this example which demonstrates the creation of a Geodesic sphere in OpenGL. I have tried to keep the code as simple as possible. Please feel free to download and try it out and don’t hesitate to comment or criticize the code.

Screenshots:

OpenGL Geodesic Sphere Rendering

Source Code:

Here is the VC 2008 project DOWNLOAD

Posted in Graphics | Tagged , , , , , | 2 Comments