Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Game Programming > DirectX > Moving on to Direct3D


Reply
 
Thread Tools Display Modes
  #1  
Old 02-25-2002, 05:35 PM
Epo Epo is offline
Junior Contributor
 
Join Date: Jan 2002
Location: Ontario, Canada
Posts: 332
Default 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
Reply With Quote
  #2  
Old 02-26-2002, 03:30 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,931
Default

Is it not just some driver problem you are having?
Reply With Quote
  #3  
Old 02-26-2002, 06:09 AM
denmeister's Avatar
denmeister denmeister is offline
Junior Contributor
 
Join Date: Feb 2002
Location: Sterling, VA
Posts: 195
Default

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
Reply With Quote
  #4  
Old 02-26-2002, 07:26 AM
Iceplug's Avatar
Iceplug Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: California, USA
Posts: 16,583
Default

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....
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #5  
Old 02-26-2002, 09:36 AM
denmeister's Avatar
denmeister denmeister is offline
Junior Contributor
 
Join Date: Feb 2002
Location: Sterling, VA
Posts: 195
Default

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
Reply With Quote
  #6  
Old 02-26-2002, 09:56 AM
Squirm's Avatar
Squirm Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default

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.
__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
  #7  
Old 03-11-2002, 06:14 AM
Xtreme
Guest
 
Posts: n/a
Talking 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)
Reply With Quote
  #8  
Old 03-19-2002, 02:50 PM
Epo Epo is offline
Junior Contributor
 
Join Date: Jan 2002
Location: Ontario, Canada
Posts: 332
Default

!
Reply With Quote
  #9  
Old 03-19-2002, 02:50 PM
Epo Epo is offline
Junior Contributor
 
Join Date: Jan 2002
Location: Ontario, Canada
Posts: 332
Default

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
Reply With Quote
  #10  
Old 03-19-2002, 04:01 PM
Squirm's Avatar
Squirm Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default

Did you change the form's backcolor to black? Thats something I do as well.

__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
  #11  
Old 11-14-2002, 06:59 AM
rkane
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #12  
Old 11-14-2002, 07:31 PM
JimCamel's Avatar
JimCamel JimCamel is offline
Mostly Absent

* Expert *
 
Join Date: Jun 2002
Location: Christchurch, New Zealand
Posts: 2,006
Default

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
Reply With Quote
  #13  
Old 11-16-2002, 01:06 PM
Gamer256's Avatar
Gamer256 Gamer256 is offline
Junior Contributor
 
Join Date: Oct 2002
Location: Ter Aar City (NL)
Posts: 270
Default

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!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->