mtl file to opengl

Hi,

I am very new to opengl and 3D programming. So please pardon me if this is not the right place to post this question.

I have created a 3D model using blender, exported it using OBJ and mtl files. I am using opengl to display the 3D model.

When parsing the mtl file, I encounter lines like
Ni, d, illum, Ka, Ks etc. I have fugured out most of them and using the glMaterialfv function to use their values. However I am still at sea for these 2 values - Ni and illum

Ni 1.000000
d 1.000000
illum 2

Ni stands for optical density, d for dissolve and illum for illumination (I think). Any pointers to corresponding opengl functions which may be used for the values corresponding to these variables?

Appreciate any pointers. Please point me to the right forum if this is not the place for this question.

Thanks in advance.

John

http://nendowingsmirai.yuku.com/forum/viewtopic/id/1723

I found this, maybe it will help you. Good luck !

Ni (for refraction) is not trivial to do in realtime (search for refraction shader)
d is simply alpha
illum toggles illumination modes : ambient 0, ambient+diffuse 1, ambient+diffuse+specular 3