PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

SetClipper ignores Perspective2D settings.

tinybulb.com · 04 Aug 2009, 13:02 UTC
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
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?
tinybulb.com · 06 Aug 2009, 11:11 UTC
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!