Archived

This topic is now archived and is closed to further replies.

JonnyVix

Alterning Textures...

Recommended Posts

JonnyVix    122
Hi there, i''m stuck trying to find a way to alternate textures on a floor : i made a simple tile and one with (let''s say) some blood. I would like to place the second one somewhere on the floor... What should i do? 1 - Cut out a square plane ad place the texture on that plane... 2 - Overlay the 2nd texture over the floor with no transparency (seems a bit odd)... 3 - ???? Thanx a lot JonnyVix

Share this post


Link to post
Share on other sites
Evil Bill    126
Search on the net for Decals. Basicly, you put the blood texture over the floor texture, and turn off Z-testing, so it can be drawn on the same plane as the floor.

HTH

Steve
DirectX Programmer
Soon to be the new Bill Gates

Share this post


Link to post
Share on other sites
DrunkenHyena    805

If you''re using a single quad for the floor, than your best bet is to have your special bits (blood stains, etc) as textures with alpha so they blend over the floor.

Alternately if you want to use a tile approach, make each tile it''s own quad, and then if your room is 2 tiles by 2 tiles, and a ''.'' represents a normal floor and a ''_'' is a bloody tile you do it so you have 4 quads laid out like so:
._
..

Which gives you a bloody tile in the top right corner of the room.


Stay Casual,

Ken
Drunken Hyena

Share this post


Link to post
Share on other sites