This site is no longer active and is available for archival purposes only. Registration and login is disabled.

SetClipper ignores Perspective2D settings.


SetClipper ignores Perspective2D settings.

Postby tinybulb.com » Aug 4, 2009 @ 2:02pm

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
tinybulb.com
pm Member
 
Posts: 32
Joined: Dec 16, 2008 @ 12:09am
Location: Minsk


Postby edge » Aug 5, 2009 @ 1:28pm

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?
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby tinybulb.com » Aug 6, 2009 @ 12:11pm

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!
tinybulb.com
pm Member
 
Posts: 32
Joined: Dec 16, 2008 @ 12:09am
Location: Minsk


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron