Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actuallonewolff

Posted 11 December 2012 - 12:17 AM

I just sorted it out Posted Image

It turns out the return values were relative. So, I modified the last couple of lines to get it back into pixels

fScreenX=((posBase.x/=posBase.w)*1600+1600)/2; // Screen space X pos
fScreenY=-((posBase.y/=posBase.w)*900-900)/2; // Screen space Y pos

Thanks again for your help Posted Image

#1lonewolff

Posted 10 December 2012 - 11:17 PM

I just sorted it out Posted Image

It turns out the return values were relative. So, I modified the last couple of lines to get it back into pixels

fScreenX=((posBase.x/=posBase.w)*1600+1600)/2; // Screen space X pos
fScreenY=((posBase.y/=posBase.w)*900-900)/2; // Screen space Y pos

Thanks again for your help Posted Image

PARTNERS