Jump to content
  • Advertisement
Sign in to follow this  
Aragon

Texture Coordinate Move

This topic is 4832 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 i got large mesh landscape and objects with texture coordinates on it for an little funny effect i want to move this u/v coordinates without making changes in the vertex of the object if possible..and without! using any vertex/pixel shader like a scrolling texture.. the whole texture u/v of that object should change the same time is there a simple texturestage thing that can help there? much thx for any help ;)

Share this post


Link to post
Share on other sites
Advertisement
You can set a texture matrix to do exactly what you want. The texture matrix operates on the UV space, you can do things like scrolling/scaling/rotation on a per frame basis without modifying vertex data.

Visual Basic:

mD3DDevice.SetTransform D3DTS_TEXTURE0, matTexture <-texture matrix

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!