How are using textures rightly?

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
BlackCat
Posts: 3
Joined: Sun Dec 03, 2006 4:54 pm
Location: Minsk, Republic of Belarus

How are using textures rightly?

Post by BlackCat »

I have 3DS with 4 textures: ambient, reflection, bump, diffuse.
How I can get my model in Irrlicht with this 4 textures?
If I try than I get only last set texture on my model. :(

Please, help me with some peace of code or with link to sample.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

well node->setMaterialTexture(layer, texture); is the main way of putting in the textures. layer is an int specifying which material layer to set the texture as. So maybe you're leaving that as 0 instead of changing it for each texture. Though check out the per-pixel lighting tutorial for how to do bump mapping. Then you can mess around with the material type so you can have things like 2 layered reflection etc.
Image Image Image
BlackCat
Posts: 3
Joined: Sun Dec 03, 2006 4:54 pm
Location: Minsk, Republic of Belarus

Post by BlackCat »

Thnx for help.
But how I can take, for example, bump and other map all at one model without using shaders? It's possible?

P.S. Sorry for my questions and poor english, but I not a programmer and russian-speaker.
Post Reply