Hi all
sorry my bad english, but isn´t my first language.
I have a model (example: a house) with many textures.. these textures have a respective normalmap (other file).
Well, in irrlicht example 11 (pixerperlighting), shows how I can set a texture to the model and the normalmap.
How can I doing the same thing with many textures and many normalmaps ?? (I cann´t view that because the model have the reference to the texture and isn´t necessary to load the texture explicitely in source code). PS: my model is a .3ds file and my textyres are all jpg.
Thanks a lot.
Stash
Question about texture/normalmap
Re: Question about texture/normalmap
Irrlicht, normally, when loads a model with many textures places them on separate materials, so you can access all the materials independently and change the textures on a per material basis. You have as much materials in a single scene node, at least, as diffuse textures in your model, and you can use the ISceneNode::getMaterial() method to access any of these materials and change their properties.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Question about texture/normalmap
Tks Mel.
Well.. then I need to use the getMaterial for each texture, and then, I can create/apply/set him respective normalmap, right?
Well.. then I need to use the getMaterial for each texture, and then, I can create/apply/set him respective normalmap, right?
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Question about texture/normalmap
Yes, but you also have to convert the whole mesh to tangent mesh (as shown in the example). But of course only once, because it affects the whole mesh. 3ds loader also supports automatic normal map loading, but you need to use the correct material settings to have the proper results.
Re: Question about texture/normalmap
tks hybrid.. now is work time..