Victor M
08-30-2007, 05:23 AM
for example i have an array of coordinates - contour of country border. After tesselation i have all information in GlList. How can i get post tesselation data?
if i use something like this
...
var fb: TFBBuffer;
...
glFeedbackBuffer(SizeOf (fb), GL_3D_COLOR, @fb);
glRenderMode(GL_RENDER);
glCallList(1);
glRenderMode(GL_FEEDBACK);
glCallList(2);
n := glRenderMode(GL_RENDER);
If n > 0 then PrintBuffer(fb, n);
well i have data... but this is not coordinates from my array. this is screen coordinates of polygon. it is not suitable for me besause if country is very large, like china, screen data is wrong - there are no detailed coastlines after changing scale. several points from my array substituted by on screen point. Results for small countries like luximbourg very well... but for large countires it looks nice only without chinging scale.
p.s. sorry for english
if i use something like this
...
var fb: TFBBuffer;
...
glFeedbackBuffer(SizeOf (fb), GL_3D_COLOR, @fb);
glRenderMode(GL_RENDER);
glCallList(1);
glRenderMode(GL_FEEDBACK);
glCallList(2);
n := glRenderMode(GL_RENDER);
If n > 0 then PrintBuffer(fb, n);
well i have data... but this is not coordinates from my array. this is screen coordinates of polygon. it is not suitable for me besause if country is very large, like china, screen data is wrong - there are no detailed coastlines after changing scale. several points from my array substituted by on screen point. Results for small countries like luximbourg very well... but for large countires it looks nice only without chinging scale.
p.s. sorry for english