About scissor testing

Started by
5 comments, last by wexuv 18 years, 3 months ago
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.
Advertisement
anybody knows? please tell me.
This should help
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?
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?
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).
exactly right,thanks.

This topic is closed to new replies.

Advertisement