Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Dx9 Fullscreen Clipping
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Krisc
Knave

69 Posts

Posted - Feb 14 2005 :  7:36:36 PM  Show Profile  Visit Krisc's Homepage  Send Krisc an AOL message  Click to see Krisc's MSN Messenger address  Reply with Quote
Is fullscreen clipping possible with DirectX9? If so...how? I can't seem to get it to work!

Lachlan87
Moderator

USA
160 Posts

Posted - Feb 15 2005 :  07:18:21 AM  Show Profile  Reply with Quote
Do you just mean the ability to have sprites move off the screen instead of dissapearing when they touch the edge? Because I use the Sprite object bulit into Direct3D, and that happens automatically.

Go to Top of Page

Krisc
Knave

69 Posts

Posted - Feb 15 2005 :  2:06:32 PM  Show Profile  Visit Krisc's Homepage  Send Krisc an AOL message  Click to see Krisc's MSN Messenger address  Reply with Quote
Sorry. Forgot to mention this is with DirectDraw
Go to Top of Page

Krisc
Knave

69 Posts

Posted - Feb 15 2005 :  2:13:12 PM  Show Profile  Visit Krisc's Homepage  Send Krisc an AOL message  Click to see Krisc's MSN Messenger address  Reply with Quote
I got it to work however. Apparently DrawFast does not work with clipping.
Go to Top of Page

Lachlan87
Moderator

USA
160 Posts

Posted - Feb 15 2005 :  3:36:47 PM  Show Profile  Reply with Quote
Yup. Don't sweat it too much though. . . Drawfast is only faster on non-hardware accelerated machines.
Go to Top of Page

2dcoder
Knave

83 Posts

Posted - Feb 16 2005 :  05:31:00 AM  Show Profile  Reply with Quote
Actually drawfast is alot faster. I've tested it on several machines from low end to high end and I always get more sprites on the screen with the same frame rate. It is WELL worth your time to implement your own clipping routine and use the .BltFast function. It will really pay off when you start doing multi layered tile maps, dozens or hundreds of sprites, etc.
Go to Top of Page

Lachlan87
Moderator

USA
160 Posts

Posted - Feb 16 2005 :  06:53:23 AM  Show Profile  Reply with Quote
. . . Are you using Managed DirectDraw or DirectDraw 7? People sometimes assume they're the same.

Here's a little quote from Tom Miller's Book: (He was on the development team for MDX)
quote:
When the calls to Draw and DrawFast are hardware accelerated (which is most likely the case in any modern graphics card), there is no difference between these two calls. However, if there is a case where the methods are called using software, the DrawFast method will be approximately 10% faster than the Draw method.


Now, even with all that said, I'm willing to allow that you could still be right---but are you using Managed DirectX?

Go to Top of Page

Krisc
Knave

69 Posts

Posted - Feb 16 2005 :  6:10:24 PM  Show Profile  Visit Krisc's Homepage  Send Krisc an AOL message  Click to see Krisc's MSN Messenger address  Reply with Quote
I am. And I am actually using C# however I know VB well enough to translate. :P
Go to Top of Page

Lachlan87
Moderator

USA
160 Posts

Posted - Feb 16 2005 :  7:17:35 PM  Show Profile  Reply with Quote
I'm actually interested in what 2dcoder was using---I figured you were using MDX since you said DX 9. If 2dcoder was using Managed DirectX, what he said about bltFast would be good to keep in mind. I probably ought to do a test myself instead of bugging him for the details, but I'm lazy.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.14 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.