PDA

View Full Version : Using jpg images in mtl files to map textures.



Waleed
12-25-2011, 09:43 AM
So I'm using GLM to load my object files and my material files for my objects go like this for example,


newmtl mymtl
Ns -----
Ni -----
d -----
Tr -----
Tf ----- ----- -----
illum 2
Ka ----- ----- -----
Kd ----- ----- -----
Ks ----- ----- -----
Ke ----- ----- -----
map_Ka image.jpg
map_Kd image.jpg

//**Note: ----- represents a number
Does GLM support this kind of material that has texture mapping? And is it okay if I'm using .jpg files for the texture mapping?

If not, then can you tell me how?

Thanks,
-W