Page 1 of 1

SetClipper ignores Perspective2D settings.

PostPosted: Aug 4, 2009 @ 2:02pm
by tinybulb.com
Hello,

It seems that SetClipper ignores settings for Perspective2D so there is no possibility to clip areas with sub-pixel accuracy. It cause some not pleasurable bugs depends on situation. So even in situation where Perspective3d set in following way:
display->Perspective2D(SCREEN_WIDTH*16, SCREEN_HEIGHT*16, false);

Regions for clipping should be add without 16 multiplier. Is there any elegant solution which will allow me to clip regions with sub-pixel accuracy without glitches?

Thanks in advance,
Nikita Leonov

PostPosted: Aug 5, 2009 @ 1:28pm
by edge
Hi,

The clipper uses glScissor which works in viewport coordinates. If you need more precision, calling glViewport manually with higher coordinates could be an option?

PostPosted: Aug 6, 2009 @ 12:11pm
by tinybulb.com
Hello,

Thanks for answer. Actually I am not very familiar with OpenGL so not clearly understand how it may help m but at least I have direction in which to dig documentation.

Thanks!