Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualrichy19

Posted 18 August 2012 - 05:07 PM

I could be wrong, but you might have your near a bit off on the orthographicOffCenter, try:

CreateOrthographicOffCenter(0.0f, 1.0f, 1.0f, 0.0f, -1.0f, 2.0f);


It ended up being the z distance thanks.
I dont really understand tho, say I put  0 and -2 as the near and far distance. Am I correct to assume that anything with a Z value between these will be displayed?

Let me rephrase the question, is the zFar value a point in 3d space (making my logic valid) or is it a length in the negative direction from the zNear value(which is what it seems to be)?
by the second explanation I mean for example using -1 and 3 would make anything visible between -1 and -4

#1richy19

Posted 18 August 2012 - 05:03 PM

I could be wrong, but you might have your near a bit off on the orthographicOffCenter, try:

CreateOrthographicOffCenter(0.0f, 1.0f, 1.0f, 0.0f, -1.0f, 2.0f);


It ended up being the z distance thanks.
I dont really understand tho, say I put  0 and -2 as the near and far distance. Am I correct to assume that anything with a Z value between these will be displayed?

PARTNERS