Saturday, December 28, 2013
Friday, December 20, 2013
Get Battery Status from Terminal
I wanted to trigger an application based on the current status of the battery, so I wanted to get the information about the current battery charge status.
Its fairly simple in Linux. 'acpi' is very handy for the purpose. If you haven't installed it yet (you can check it using the code below):
Its fairly simple in Linux. 'acpi' is very handy for the purpose. If you haven't installed it yet (you can check it using the code below):
rpm -qa acpiYou can install it easily using apt-get in Ubuntu or if your machine is rpm based like mine, you can look for it in web.
Tuesday, December 10, 2013
Completed my Particle Viewer App
Finally, my "Particle Viewer" Application is complete. I have been working on it for long and it really feels good to see it running. For those who don't know, its a 3D particle analysing tool that is used to study particle behaviour inside a container. The containers are the STL files which are also rendered using the application.
![]() |
Particle Viewer |
Saturday, November 30, 2013
"Shaking Divs" using CSS
Here's the link to the implementation of the shake:
Saturday, November 23, 2013
Reflection, Refraction using CubeMapping.
Reflection, Refraction is fairly easy in OpenGL using both Shader and normal OpenGL pipeline. Today I tried both the classical method of Reflection Mapping and also using shaders.
The main objective of today's work was to render shiny Metals and Glass. The shiny metal needed a simple reflection mapping. The result is shown in the figure below: