My First OpenGL Application on Linux

It is finally here, My first OpenGL application on Linux, I have written OpenGL code on Windows but this is the first time I do so on Linux, Yay for me! :)

What is it do? Well it is just a demo based on a particle system class I wrote few days ago, The particle system is configurable via text files, By modifying these text files you can configure particle behavior, gravity,speed along axes ,etc, and see your changes real-time without having to restart, you can find these files under the “particles” directory.

The demo is very primitive, it has NO frustum culling so it might run VERY slowly on Weak-hearted machines.

The demo uses this simple texturing class which in turns depend on FreeImage library to load textures.

.. One more thing , Here’s the function I used to generate random floating point numbers within a given range, I thought maybe someone would find it useful

float randomFloat( float minimum, float maximum )
{
if( maximum == minimum )return minimum;
float range = maximum-minimum;
float displacment = ((float) rand() / (float)RAND_MAX) * range;
return minimum + displacment;
}

The function could use more optimization “since it is called several thousands of times per frame”.

More colors!Too much colors

Particle System Demo [30.5 KB] (493 hits)

كيف تستعمل محركات البحث

لاحظت أن الكثير من زملائي في كلية الطب وغيرها يواجهون مشاكل في إيجاد ما يريدونه باستخدام محركات البحث بالاضافة الى عدم فهمهم لبعض مبادئ التعامل مع شبكة الإنرنت, لذلك بدأت و زميل لي في الكلية في كتابة ملخص يحوي معلومات عن كيفية استخدام محركات البحث بشكل فعال بالإضافة الى أشياء أخرى.
ملاحظة: الملف يستهدف في الأصل طلبة الطب ولذلك قد تصادف القارئ بعض الأمثلة ذات العلاقة بالعلوم الطبية وان كانت لن تعوق فهم محتوى الملف.
(more…)

Google is indexing flash files!

I’ve just came to notice that Google is actually indexing swf files,that is, it is parsing the text found within the file, It seems that this feature has been around for a while now, Think of all the wonderful things you can do with that, like fetching flashy illustrations for a hard to “visualize” subject like DNA synthesis through Google.

Maybe Google is not going “deep” within the file but I think the current “depth” is quite sufficient.

You might find these queries interesting

Astigmatism filetype:swf
Loop of henle filetype:swf