Jump to content
  • Advertisement
Sign in to follow this  
Annoyed

(solved/alternative) [MDX] ScissorRectangle issue

This topic is 3306 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

I am trying to use scissor in C# MDX. I have set the ScissorTestEnable to true. When setting the ScissorRectangle the size does not change. I am rendering to a texture. Say the original Scissor rectangle is at (0,0) and size 800x600 and i want to set a new scissor rectangle. I define a rectangle at (10,10) and size 780x580. When i assign the rectangle the debugger tells me that the Device.ScissorRectangle is at (10,10) and size (800x600). Am I missing something? [Edited by - Annoyed on May 4, 2009 7:09:23 PM]

Share this post


Link to post
Share on other sites
Advertisement
Found an alternative solution by using Viewport.
However the transformations needed to be adjusted beyond to obtain the clip effect.
Retaining the old transformations only resulted in a shrink/zoom out effect.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!