How to modify camera farplane

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to modify camera farplane

John Sennesael
After finally figuring out how to create my own world morph, I wanted to
make the world a little bigger,
I managed to resize the floor and skybox, but appearantly now the skybox
is too big that it falls partly outside
of the camera's far plane, and it is causing a strange effect since part
of the skybox is clipped away.
I would like to know how I can get access to the camera and how to
modify it's far clipping value.
 From browsing around in the system browser I know that the class I want
is TCamera, but where is it stored?
And how do I access it from my World initialize method?

If anyone can answer this for me, it would help me out alot.
Reply | Threaded
Open this post in threaded view
|

Re: How to modify camera farplane

David A. Smith
The TCamera has a zNear and zFar distance, and it sets the default
values internally.  You should be able to set these values via #zNear:
and #zFar once you get hold of the TCamera. The TCamera is held inside
of the CroquetHarness.

David

On 3/16/07, John Sennesael <[hidden email]> wrote:

> After finally figuring out how to create my own world morph, I wanted to
> make the world a little bigger,
> I managed to resize the floor and skybox, but appearantly now the skybox
> is too big that it falls partly outside
> of the camera's far plane, and it is causing a strange effect since part
> of the skybox is clipped away.
> I would like to know how I can get access to the camera and how to
> modify it's far clipping value.
>  From browsing around in the system browser I know that the class I want
> is TCamera, but where is it stored?
> And how do I access it from my World initialize method?
>
> If anyone can answer this for me, it would help me out alot.
>