Skip to main content
GameDev.net gamedev.net
🔒 Locked

Angled texture mapping

Started by Andy Reno Mar 24, 2004 at 7:03 AM 1 replies 800+ views
Original Post
Andy Reno
Andy Reno
Hi do you know what the correct values are to tile a texture 5 *5? heres my code, my problem is that the textures are being angled as well as tiled. { 0.75f, 0.75f, 0.2f, 0.0f, 0.0f, 1.0f, D3DCOLOR_ARGB(170,255,255,255), 0.0f, 0.0f}, {-0.75f, -0.75f, 0.2f, 0.0f, 0.0f, 1.0f, D3DCOLOR_ARGB(170,255,255,255), 5.5f, 0.0f}, { 0.75f, -0.75f, 0.2f, 0.0f, 0.0f, 1.0f, D3DCOLOR_ARGB(170,255,255,255), 5.0f, 5.0f}, { 0.75f, 0.75f, 0.2f, 0.0f, 0.0f, 1.0f, D3DCOLOR_ARGB(170,255,255,255), 5.0f, 5.0f}, {-0.75f, 0.75f, 0.2f, 0.0f, 0.0f, 1.0f, D3DCOLOR_ARGB(170,255,255,255), 5.0f, 0.0f}, {-0.75f, -0.75f, 0.2f, 0.0f, 0.0f, 1.0f, D3DCOLOR_ARGB(170,255,255,255), 0.0f, 5.0f} all sugestions welcome.
IT''s Geeky
Andy Reno
Andy Reno
yes, but that doesnt make much difference it''s stil tiled against the 2 triangles rather than the square polygon.
IT''s Geeky

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.