Texture in Direct3D
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)
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement