I have a program doing something like rainfall. I have frustum culling set up properly so that when an object leaves the screen (through any of the 6 screen planes) it is killed and a new one created.
The problem is that I just cannot seem to get the new objects to start just outside the screen! I though I could just use part of the culling code; I generate the Z coordinate, then I try to set the Y coordinate to just off screen. Instead, its always just ON screen, so you see the new objects just pop up. Any suggestions?
Im using float y = frustum[2][2] * t + frustum[2][3];, where t is the Z coordinate.
The problem is that I just cannot seem to get the new objects to start just outside the screen! I though I could just use part of the culling code; I generate the Z coordinate, then I try to set the Y coordinate to just off screen. Instead, its always just ON screen, so you see the new objects just pop up. Any suggestions?
Im using float y = frustum[2][2] * t + frustum[2][3];, where t is the Z coordinate.