Jump to content
  • Advertisement
Sign in to follow this  
wexuv

About scissor testing

This topic is 4575 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!