 |

02-25-2002, 05:35 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2002
Location: Ontario, Canada
Posts: 332
|
|
Moving on to Direct3D
|
Well, DirectDraw is over, and I'm moving on to Direct3D. I thought this would solve some of my problems but (sigh) I'm still getting the mouse flicker thing happening. I used the tutorial from DirectX 4 VB and the mouse still does it.....if anybody gets the same problem or thinks of a way to fix it (DirectX8, Direct3D) then post here please!
Thanks for the help so far 
|
|

02-26-2002, 03:30 AM
|
 |
Lost Soul
Super Moderator * Guru *
|
|
Join Date: May 2001
Location: Vorlon
Posts: 18,931
|
|
|
Is it not just some driver problem you are having?
|
|

02-26-2002, 06:09 AM
|
 |
Junior Contributor
|
|
Join Date: Feb 2002
Location: Sterling, VA
Posts: 195
|
|
|
It all depends on what type of DirectX Run-Time you are using. That problem generally occurs when you are running the debug version of DirectX. Change over to the Retail version and you should be fine.
|
__________________
"The fastest polygons are the ones you never draw." - Andre LaMothe
|

02-26-2002, 07:26 AM
|
 |
MetaCenturion
Retired Moderator * Guru *
|
|
Join Date: Aug 2001
Location: California, USA
Posts: 16,583
|
|
I have the mouse flickering problem too. Kind of like DirectX draws on top of the mouse cursor, and then the computer puts the mouse on top, and the DirectDraw loop draws on top of the mouse cursor again... and again.... 
|
|

02-26-2002, 09:36 AM
|
 |
Junior Contributor
|
|
Join Date: Feb 2002
Location: Sterling, VA
Posts: 195
|
|
|
IcePlug is correct. DirectX "owns" a part of the desktop real estate. The only problem is that the mouse still owns it all. Normally there is no problem, but some video cards have a problem overlaying 2-D accelerated graphics onto 3-D accelerated windows. Changing from Debug to Ratail run-times usually does the trick because there is less processing to do and the mouse has time to redraw during the vertial refresh. The final solution to this problem is to hide the mouse cursor and do all the mouse cursor processing yourself. It's a pain, but sometimes necessary.
Either that or get another video card, or find a way to over-clock the one you have.
|
__________________
"The fastest polygons are the ones you never draw." - Andre LaMothe
|

02-26-2002, 09:56 AM
|
 |
Political Coder
Retired Moderator * Guru *
|
|
Join Date: Mar 2001
Location: London, England
Posts: 8,037
|
|
This wouldnt be too hard. If you wanted you could go the whole way and implement full DirectInput, but you might not want to. You could just use the ShowCursor to show/hide the cursor itself. The cursor becomes invisible but still active, enabling you to have a custom sprite/surface for the cursor.
|
|

03-11-2002, 06:14 AM
|
|
|
mouse
|
if i understand your problem correctly i believe i had the same problem myself. Go to your form object and change its properties to be BORDERLESS. (everytime i moved my mouse it flickered and sometime i could see the windows window behind my app)
|
|

03-19-2002, 02:50 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2002
Location: Ontario, Canada
Posts: 332
|
|
|

03-19-2002, 02:50 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2002
Location: Ontario, Canada
Posts: 332
|
|
Thanks for that help  ......It didn't quite fix the mouse problem......but it DID fix seeing other applications flicker through the background  .....I changed the Borderstyle of the Form to 0 (None) ......It's quite helpful......less flickering but still happens....I'm going to go ahead still with trying to make a custom mouse since the flicker is still there though..... This is a really good tip though for anyone else who's having the same sort of problems
Thanks again
|
|

03-19-2002, 04:01 PM
|
 |
Political Coder
Retired Moderator * Guru *
|
|
Join Date: Mar 2001
Location: London, England
Posts: 8,037
|
|
Did you change the form's backcolor to black? Thats something I do as well.

|
|

11-14-2002, 06:59 AM
|
|
|
|
I remember seeing this problem when I enable the hardware cursor when playing "No One Lives Forever" Prolly gonna have to create your own mouse to correct, if a retail game can't even fix it.
|
|

11-14-2002, 07:31 PM
|
 |
Mostly Absent
* Expert *
|
|
Join Date: Jun 2002
Location: Christchurch, New Zealand
Posts: 2,006
|
|
Ah yes, this is a problem I always used to have. When you're about to blt to your primary surface, before the blt use the ShowCursor api to hide the cursor, and then show it again after the blt. That should fix your problem.
Jim
|
__________________
Sometimes it happens feelings die, Whole years are lost in the blink of an eye
We once had it all but event conspired, Sometimes
Now that it's over, it is through, It gets me everytime I think of you
Sometimes It happens, feelings die, Sometimes
|

11-16-2002, 01:06 PM
|
 |
Junior Contributor
|
|
Join Date: Oct 2002
Location: Ter Aar City (NL)
Posts: 270
|
|
|
If you use a BackBuffer in a window, you'll get the flickering too.
Then you should, as said 20 times before, really use ShowCursor.
|
__________________
My site contains some Direct3D Samples. Check it!
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|