Jump to content
  • Advertisement
Sign in to follow this  

mapping objects based on x and y coords

This topic is 4394 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 all, The screen resolution I am using for my game is 1024x768. I have a square which takes up the entire viewing screen and has an image mapped to it (this is my background image). Now the image being mapped on to the square is also 1024x768. The background image contains X's (as in X marks the spot) for where DirectX should draw other objects over (so the X's marks the positioning of where DirectX should draw the other objects on). Using photoshop I can get the exact x,y coords of the X on the image. Now what I want to know is that if i resized the square I created to map the background image on like so:
 struct CUSTOMVERTEX t_vert[] =
        {1024, 768, 0, 0xffffffff, 0, 0,},
        {0, 768, 0, 0xffffffff, 1, 0,},
        {1024, 0, 0, 0xffffffff, 0, 1,},
        {0, 0, 0, 0xffffffff, 1, 1,},
so its 1:1 scale of the screen resolution, will this allow me to map other objects over this object perfectly if i get the exact x and y coords from photoshop? Also will this severley decrease the performance of the game because of how the x and y coords are for this particular CUSTOMVERTEX? Thanks, I hope I explained it clearly :-)

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!