Advertisement Jump to content
Sign in to follow this  
Aragon

Texture Coordinate Move

This topic is 4899 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!