Archived

This topic is now archived and is closed to further replies.

Texture in Direct3D

This topic is 5381 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

I''m beginner, I don''t know how to set a texture for an object from a part (eg: a quarter)of a bitmap image (I can just set texture for an object from the whole image I load before). Anyone who know that please help me. Thanks a lots. (I''m sorry!My English is not good)

Share this post


Link to post
Share on other sites
If I understand you -

A texture, when loaded, can be referenced using values from 0,0 (which represents the top-left corner of the texture) to 1,1 (which represents the bottom-right corner).

Let''s say you wanted to use the top-left quarter of a texture, you would say: 0,0 - .5,.5

If you wanted to use the bottom-right quarter: .5,.5 - 1,1

Share this post


Link to post
Share on other sites