View previous topic :: View next topic |
Author |
Message |
Starnick DeleD PRO user
Joined: 28 Jul 2007 Posts: 611
|
Posted: Mon Oct 01, 2007 9:06 pm Post subject: |
|
|
jwatte wrote: |
1.1 sounds like the built-in Microsoft OpenGL version.
What was the text of the last line of that dialog? |
It read "Microsoft Corporation GDI Generic" |
|
Back to top |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
Posted: Tue Oct 02, 2007 2:22 am Post subject: |
|
|
You have a driver problem! That's the Microsoft software emulation, which is really old and really slow.
I wonder if you also have that same emulation when using DeleD? |
|
Back to top |
|
|
Starnick DeleD PRO user
Joined: 28 Jul 2007 Posts: 611
|
Posted: Tue Oct 02, 2007 5:21 am Post subject: |
|
|
jwatte wrote: |
You have a driver problem! That's the Microsoft software emulation, which is really old and really slow.
I wonder if you also have that same emulation when using DeleD? |
No idea...so how do I alleviate this problem? Track down a patch from ATI, or try and download openGL 1.3 independently...or something? |
|
Back to top |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
Posted: Tue Oct 02, 2007 4:10 pm Post subject: |
|
|
I have no idea, honestly. Perhaps the ATI drivers get confused by the fact that DeleD already has an OpenGL context open, and creating a second context fails, reverting back to hardware. If you download GLInfo (from delphi3d.net), it will tell you what the renderer is in a stand-along environment. If that, too, reports Microsoft GDI Generic, then your drivers are busted, and you should start re-installing things. |
|
Back to top |
|
|
Starnick DeleD PRO user
Joined: 28 Jul 2007 Posts: 611
|
Posted: Tue Oct 02, 2007 10:38 pm Post subject: |
|
|
jwatte wrote: |
I have no idea, honestly. Perhaps the ATI drivers get confused by the fact that DeleD already has an OpenGL context open, and creating a second context fails, reverting back to hardware. If you download GLInfo (from delphi3d.net), it will tell you what the renderer is in a stand-along environment. If that, too, reports Microsoft GDI Generic, then your drivers are busted, and you should start re-installing things. |
Ok ran it, and for the OpenGL version it cited:
2.0.6347 WinXP Release
Complete report can be found here:
http://www.mediafire.com/?6mltz00oyg0 |
|
Back to top |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
Posted: Wed Oct 03, 2007 12:35 am Post subject: |
|
|
Hmm. So, when the GL context is created from within DeleD, Levelwalker can't get a good context. When created separately, it works. I can't really figure out how to debug that :-/ |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Oct 03, 2007 9:37 am Post subject: |
|
|
It doesn't make much sense either. How is DeleD allowed to grab 4+ contexts at the same time, and your DLL isn't. ? Weirdness...
Any chance you are setting a pixel format that is not support natively by this particular hardware, causing a fallback to the microsoft software renderer?
For debugging purposes, here is our PFD.
Quote: |
nVersion := 1;
dwFlags := PFD_DRAW_TO_WINDOW or PFD_SUPPORT_OPENGL or PFD_DOUBLEBUFFER or 0;
iPixelType := PFD_TYPE_RGBA;
cColorBits := 16;
cDepthBits := 16;
|
(Starnick: please ignore the technical babble ). |
|
Back to top |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
Posted: Wed Oct 03, 2007 5:08 pm Post subject: |
|
|
It might be that ATI can't create one 16-bit context and one 24-bit context at the same time -- I'm asking for 24-bit color and depth. You should, too, btw :-)
I can add a fallback path that asks for 16 if 24 doesn't work. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Oct 03, 2007 5:13 pm Post subject: |
|
|
Our PFD has been manually tweaked over the years for maximal compatibilty with the widest range of exotic hardware... (in other words, we are not touching it because we are scared of breaking compatibility with yet another crappy Intel chipset.. ). It's not like we actually _get_ a 16bits pixelformat, not on any r/decent hardware that is.
Regarding your fallback path, that might be a smart move, but note how the system will not actually _tell_ you it is not supporting 24bits, it does a silent fallback. You'll have to check the vendor after activating the pixelformat. Icky. (Or, of course, it could be something completely different.) |
|
Back to top |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
Posted: Wed Oct 03, 2007 6:29 pm Post subject: |
|
|
I am already checking the GL version, as I require 1.3 or better.
Thus, now with the fallback, when I get a version less than 1.3, I destroy the window, and start over with a 16-bit context.
If that still doesn't give me a working context, I give up and post the message box.
Starnick: There's a new version, which might work for your ATI if the problem is what we're theorizing that it is. Could you try it out and let me know?
http://levelwalker.googlecode.com/files/levelwalker-2007-10-03a.zip |
|
Back to top |
|
|
Starnick DeleD PRO user
Joined: 28 Jul 2007 Posts: 611
|
Posted: Wed Oct 03, 2007 7:26 pm Post subject: |
|
|
It works |
|
Back to top |
|
|
santutatu DeleD PRO user
Joined: 18 Aug 2007 Posts: 729 Location: ARGENTINA
|
Posted: Thu Oct 04, 2007 12:13 am Post subject: |
|
|
sorry for being so noob but...in the readme it says that i only have to copy the levelwalker dll to the plugins directory....i did that...aaand...i have....nothing....do i have to copy the others dll's?....maybe it's video card problem....but it doesn't even appears the levelwalker plugin
thanks guys... _________________
|
|
Back to top |
|
|
Starnick DeleD PRO user
Joined: 28 Jul 2007 Posts: 611
|
Posted: Thu Oct 04, 2007 3:51 am Post subject: |
|
|
santutatu wrote: |
sorry for being so noob but...in the readme it says that i only have to copy the levelwalker dll to the plugins directory....i did that...aaand...i have....nothing....do i have to copy the others dll's?....maybe it's video card problem....but it doesn't even appears the levelwalker plugin
thanks guys... |
Yeah you need the other DLL files in your root directory (where the the .exe is located ie: c:\Program Files\Deled PRO )
Easiest way is just unzip the whole zip file in that root folder. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Thu Oct 04, 2007 8:14 am Post subject: |
|
|
Personally, I just unzipped all the DLL's into the plugin directory, that seemed to work fine as well.
JWatte: Marvelous job on getting that workaround up and running! (Starnick: thanks a heap for your repeated feedback). The question still remains whether the underlying cause is us asking for a 16 bits context first, or the card not handing out native 24bits contexts whatsoever. As far as I am concerned, I'd say we leave it at this unless we run into trouble again at some point. This is not the kind of 'graphics programming' I like to spend more time on than necessary ... Agreed? |
|
Back to top |
|
|
santutatu DeleD PRO user
Joined: 18 Aug 2007 Posts: 729 Location: ARGENTINA
|
Posted: Thu Oct 04, 2007 1:58 pm Post subject: |
|
|
thanks....i will try it...i think it a great tool....to see how the level is going to develop the enviroment in your game so...again great tool _________________
|
|
Back to top |
|
|
|