xerid
05-31-2000, 07:36 PM
my thoughts are going to be random.....
ok, opengl does the screen clipping of polygons. however, to make us of portals, you have to clip ploygons that show through the portal.
if you were to start the redendering from the furthest area, then recurse back, you can only draw the poly's that face you, and you can turn off the z buffer check.
each sector would have an id, and you stop traversing when you either hit a sector you already hit, or the portal is not in view.
just an idea.
my ploblem in my head is this.
if you let opengl handle the clipping, how can i recreate a frustum that passing through the portal which will be used to check if the net portal is in view, and continual clipping of the frustum will lead to one that has N number of sides....
so, should i not let opengl do the clipping (then how would i do it), or should i keep a copy of the frustum......and can i get frustum info from opengl.....
ok, opengl does the screen clipping of polygons. however, to make us of portals, you have to clip ploygons that show through the portal.
if you were to start the redendering from the furthest area, then recurse back, you can only draw the poly's that face you, and you can turn off the z buffer check.
each sector would have an id, and you stop traversing when you either hit a sector you already hit, or the portal is not in view.
just an idea.
my ploblem in my head is this.
if you let opengl handle the clipping, how can i recreate a frustum that passing through the portal which will be used to check if the net portal is in view, and continual clipping of the frustum will lead to one that has N number of sides....
so, should i not let opengl do the clipping (then how would i do it), or should i keep a copy of the frustum......and can i get frustum info from opengl.....