loading normal maps spec maps etc

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Guest

loading normal maps spec maps etc

Post by Guest »

how do i load normal maps specular maps and diffuse maps and color maps in irrlicht?
WToma
Posts: 70
Joined: Tue Aug 09, 2005 8:38 am
Location: Szeged, Hungary

Post by WToma »

This depends on the file format you use to store your model file. Try my3d, I think this have the most features regarding materials. (But no animation.)
Toma
"This is not a bug, this is a feature!"
Guest

Post by Guest »

not a format how do i load them in irrlicht code plz i know you can load them like a texture
Guest

Post by Guest »

i just need to be able to load diffuse maps normal maps and a lightmap
needforhint
Posts: 322
Joined: Tue Aug 30, 2005 10:34 am
Location: slovakia

Post by needforhint »

if you set a material texture by setMaterialTexture(..) you implicitly load a diffuse map....to see it just call setMaterialFlag() with video::EMT_SOLID flag, as for the normal map, take a look to perPixelLightning example... as for the lighmap, irrlicht can load 2 textures at one mesh, sooo, a tried load a diffuse and lightmap, but there is no function like "createMeshWithLightmap()" so I can't seem to figure that out :?
what is this thing...
pfo
Posts: 370
Joined: Mon Aug 29, 2005 10:54 pm
Location: http://web.utk.edu/~pfox1

Post by pfo »

I think there are some extra functions you need to call to make normal maps, alpha maps, etc... check the driver class and the mesh manipulator class, they have some extra functions that deal with lightmaps etc....

Sorry I can't be more help, I haven't gotten to this myself yet but I got my eye on it.
Post Reply