Alterning Textures...

Started by
1 comment, last by JonnyVix 21 years, 11 months ago
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
Advertisement
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
Member of the Unban Mindwipe Society (UMWS)

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
Stay Casual,KenDrunken Hyena

This topic is closed to new replies.

Advertisement