Skip to main content
gamedev.net
๐Ÿ”’ Locked

Problem with texture transformation

Started by kill May 24, 2002 at 11:39 AM 1 replies 150+ views
Original Post
kill
kill
Hi. I''m using SetTransform(D3DTS_TEXTURE0, &Matrix), and for some reason my texture coordinates are not transformed. I create a simple translation matrix with D3DXMatrixTranslation(). I thought that the transformation is disabled by default, so I called
  
pDevice -> SetTextureStageState(0, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_COUNT2);
  
But that didn''t do anything either. Does anyone have any idea how to get it to work? Thanks.
S1CA
S1CA
How are you setting the translation in the matrix ?

Although it''s a 4x4 matrix, for 2D coordinats, the translation will be on the _31, _32 members rather than the _41, _42 members!



--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedInย |ย Personal site
kill
kill
Thanks.

Topic Locked

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

Sign in to reply to this topic.