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

rotate 2d texture

Started by shahar Jan 24, 2007 at 8:10 AM 0 replies 1k views
Original Post
shahar
shahar
Hi, i am loading 2d bitmap from disc into a texture, Now i want to rotate this image in couple degrees and get it back from the GPU. The loading and getting the data back is ok, but i am having some difficulties in rotating the image, does anyone have sample code/article that shows how to do it. Thanks
gdunbar
gdunbar
Well, perhaps this isn't helpful, but:

If you are using the texture as a texture, wouldn't it make sense to just modify the UV coordinates instead of trying to muck with the texture itself?

Or alternately, if what you are actually trying to do is rotate an image, and you don't care about it being a texture at all, why use Direct3D at all? Just read up on 2d image signal processing and all that stuff (or search for helpful code or documentation on the web).

Geoff

Topic Locked

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

Sign in to reply to this topic.