Page 1 of 1

How to implement Footprint effect?

Posted: Sun May 07, 2006 5:53 am
by moonshine721
I'm ding some work in a team for a game by using irrlicht.My task is to implement Footprint effect.But I don't know how to map a footprint texture
above a certain position of a Terrian.Should I get the UV coordinate of the
Footprint,And add a new texture layer above the Terrian texture at that UV coordinate?If so,Can Irrlicht do this?

Posted: Sun May 07, 2006 9:09 am
by sudi
it can....but remember u can only have two texture layers on a face....so when u for exampel got the texture and the lightmap there is no room for footprints.....ok u could bind them into ur lightmap but i can'T help u with that.
U should use the decal scenenode somewhere in this forum

I have to find the UV coordinates from the relative geometry

Posted: Mon May 08, 2006 4:00 am
by moonshine721
Thanks for ur suggestion.but I cant find any "decal scenenode"related topics in this forum.So long as I found that the Quake3 Engine just have got only 8 texture layers each material,So if it create fooeprint by adding a new texture layer,It'll not be enough either.I think there must be some other way for solving this.
As Irrlicht only have got 2 texture layers,Should I just using Texture1 layer as the Terrian texture,&Texture2 layer as the footprint layer?If I do sth like this,I have to find the UV coordinates from the relative geometry Verticies.Does Irrlicht support this kind of operations?

Re: I have to find the UV coordinates from the relative geom

Posted: Mon May 08, 2006 5:45 am
by jam
moonshine721 wrote:Thanks for ur suggestion.but I cant find any "decal scenenode"related topics in this forum.
decal scenenode link

Decal SceneNode doesn't works well!!!

Posted: Tue May 09, 2006 2:27 pm
by moonshine721
I've read "Armen 138"'s Decal SceneNode Class.But it can't implement the footprint effect either! Decal SceneNode just add a new decal ploy above the flat plane just like wall,blacboard,etc.
But pay attention to that:The Terrian may not be flat all the time! If I just paste the decal texture above the intersection point&triangle,it might cross other triangles which have an angle between our intersection triangle!
The War craft3 represent footprint perfectly,Is there Anybody who can just tell me how does a commercial game solve this problem?

Posted: Tue May 09, 2006 5:58 pm
by garrittg
judging by the posted image, i think the following potentially has what you are looking for, but unfortunately the author never posted any code (not sure if they were even planning on that). you may be able to PM/contact the author and see where its at.

http://irrlicht.sourceforge.net/phpBB2/ ... light=tyre