Sign in to follow this  

About scissor testing

This topic is 4358 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

in opengl there's a function of glScissor to scroll a portion of the screen without affecting any of the graphics around it.which is the replaced function in D3D? OpenGL code: glScissor(x,y, width, height); glEnable(GL_SCISSOR_TEST); //render somethine here ... //only in RECT of (x,y,x + width,y + height) can be seen. glDisable(GL_SCISSOR_TEST); thanks a lot for your help.

Share this post


Link to post
Share on other sites
because some video cards do not support dx9,so i make my project with dx8,
but there's no same function like "SetScissorRect" in dx8,another way to resolve this problem?

Share this post


Link to post
Share on other sites
unfortunately,Scissor testing need hardware support D3DPRASTERCAPS_SCISSORTEST,
i have tested on several cards.It does not support on sis 651 card,mabey more cards do not support this speciality.Can you tell me another method?

Share this post


Link to post
Share on other sites
You can fake the same effect with a combination of setting the viewport to the appropriate rectangle and adjusting your projection matrix (so exactly why this isn't trivially emulated I don't know).

Share this post


Link to post
Share on other sites

This topic is 4358 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this