Jump to content
  • Advertisement


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


Alterning Textures...

This topic is 5918 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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.


DirectX Programmer
Soon to be the new Bill Gates

Share this post

Link to post
Share on other sites

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,

Drunken Hyena

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!