Near clip plane not behaving as expected

Hi,

Near plane cannot simply have a value of 0 as its value is used in different places in the rendering pipeline. Setting it to 0 will result in division by zero in perspective transformation which will cause strange behaviors. See this beautiful short video by Eric Haines where he, as part of his free computer graphics course, briefly explains the purpose of the near and far planes.

To get the zoom behavior you want, simply get your camera component and call its function AddLocalOffset or AddWorldOffset to change its position and dolly back or forth (I would probably go with AddLocalOffset as the ‘X’ axis points forward, hence easier to manipulate).

Hope this helps.