Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi good people :)

 

First of all, how do you make your application run in fullscreen mode?

I set the PresentParameters object, I check with the Manager object

to make a BackBuffer with the correct width, height and format, I create

the device and try clearing it and the application crashesh. Does anyone

have (undoubtedly, but is also willing to post) a working piece of code? :D

 

2nd question: What is the true nature of the znearPlane and zfarPlane parameters in Matrix.PerspectiveFovLH(..)? Ok, they are clipping planes, but do they apply in camera (view) space? I suppose so, but application behavior suggests otherwise. For example, my camera is at (0, 0, -1000), looking at (0,0,0). I'm drawing only 3 axes, so there isn't a single point with Z < 0. However, for some reason it works with (znear, zfar) = (0, 100) and for some reason doesn't if I put znear > 0 :confused: :confused:

 

Please help, experienced ones :rolleyes:

Posted
That won't be necessary :) at least about the clipping planes issue, but thanks for wanting to help. About the fullscreen problem, I'll get to that and post the faulty piece of code.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...