IonicWind Software

Aurora Compiler => 3D Graphics => Topic started by: kryton9 on August 22, 2006, 11:15:53 PM

Title: camera set back plane
Post by: kryton9 on August 22, 2006, 11:15:53 PM
camera.SetBackPlane();ÂÃ,  I assumed that controlled the camera range, that is how far off into the distance it sees. But no matter what I set it too, it still sees only the same distance.

If this is not the correct command, how can I increase the range(distance) the camera sees?
Title: Re: camera set back plane
Post by: Ionic Wind Support Team on August 22, 2006, 11:35:54 PM
That is the correct command.  The backplane of the frustum is from the cameras position.  And it does work ;)
Title: Re: camera set back plane
Post by: kryton9 on August 23, 2006, 12:14:53 AM
I set it to higher values and it wouldn't see any further. Is 1000 the maximum size? I was going higher than that and it wouldn't go higher or see any further?

I in the meantime I redid all my models(very simple ones) and made them much smaller to fit into the 1000 range and into the game world :)
Title: Re: camera set back plane
Post by: Ionic Wind Support Team on August 23, 2006, 12:17:55 AM
No.  I've used values of 10K or more.  Sure your not setting it twice somewhere?

Title: Re: camera set back plane
Post by: Ionic Wind Support Team on August 23, 2006, 12:28:28 AM
OK I do remember something about Direct3D and a clipping problem.  The 1000.0 value jogged my memory.  Has to do with Z buffer writing....i'll look through the docs.

I recommend scaling things down anyway.  Units in direct 3D are arbitrary so pick a scale that has meaningful representation.  1.0 = 1 meter or whatever you like.

Title: Re: camera set back plane
Post by: Ionic Wind Support Team on August 23, 2006, 12:34:22 AM
And the problem is your front plane.  DX uses the ratio of the near and far clipping planes to determine Z buffer resolution.  Increase your near (front) plane to something greater than 1.0f, say 10.0f and see if that helps. 
Title: Re: camera set back plane
Post by: kryton9 on August 23, 2006, 02:12:53 AM
Thanks will try that in another one as I remade all the models smaller. Nice to know that can adjust for it in the future :)