Re: How to calculate Screen Dimensions to 3D Coordinates so Image fills a specified resolution

From: Ying-Shen Yu[MSFT] (v-yiy_at_online.microsoft.com)
Date: 06/03/04


Date: Thu, 03 Jun 2004 13:27:15 GMT

Hi,

I think Eyal's suggestion should resolve this issue, we can compute the
correspond u, v values by given texture addresses. Using:
u = ( Tx + 0.5f ) / textureSize;
v = ( Ty + 0.5f ) / textureSize;

Does it fix this issue?
You may test it using a grid image as texture, so that it would be easier
to find the texture mapping distortion.

Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.