PDA

View Full Version : Textureing problem...



Koch
02-25-2002, 10:01 AM
Hi to all

I have just one question...
I have one wall - big wall, created with 2 triangles
And this wall is texutred with bricks (the texture is tiled sometimes)
I want when i shot the wall i add new texture, which present the result of the shot.
How to do that?

Thank you

chxfryer
02-25-2002, 10:42 AM
Find the Up and Right Vectors of the wall. Normalize them.

u = up vector
r = right vector
x,y = intersection with wall (where gun hit)

(x-u.x,y-r.y) (x+u.x,y-r.y)
(x-u.x,y+r.y) (x+u.x,y+r.y)

I think thats how it goes. Havn't done decaling in a while

[This message has been edited by chxfryer (edited 02-25-2002).]

richardve
02-25-2002, 10:45 AM
Way offtopic..

Anyway, there's a nice tutorial about decaling @ flipCode: http://www.flipcode.com/tutorials/tut_decals.shtml

Koch
02-25-2002, 10:56 AM
Thanks a lot

You are right, the tuotiral is very good