Detail Map for non-terrain

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
Eldritch
Posts: 33
Joined: Mon Feb 26, 2007 12:33 pm

Detail Map for non-terrain

Post by Eldritch »

I noticed that only TerrainSceneNodes can be assigned a detail map. I'd like to have the same for non-terrain (i.e. regular geometry meshes), is it possible? Perhaps through some mix of two textures and a material type setting?
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

You need to be able to convert meshes to use S3DVertex2TCoords, since detail mapping materials require 2 texture coordinates.
Image
Eldritch
Posts: 33
Joined: Mon Feb 26, 2007 12:33 pm

Post by Eldritch »

Aha, but I think I could settle with using the first texture's coordinates since I do not need to tile the detail map for non-terrain geometry.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Then, you'd have to change the detail map material in the engine.
Image
Eldritch
Posts: 33
Joined: Mon Feb 26, 2007 12:33 pm

Post by Eldritch »

Ok, I see.. bummer.. Thanks anyways :)
Post Reply