I've been trying to use Wine to play some DirectX games. One in particular is a shareware game with available source code, ClonkPlanet ( http://www.clonk.de ). It was built with the DirectX 6 SDK. The front end loads all right, but the engine croaks, saying that it couldn't initialize DirctX. At the same time, I get the following error-messages from Wine: $ wine Planet.exe Xlib: extension "XFree86-DRI" missing on display ":0.0". fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4036add0)->(00050023,00000011 ) err:x11settings:X11DRV_ChangeDisplaySettingsExW No matching mode found! (NoRes) This is on a Redhat 9 WS system with locally-compiled Wine 0.0.20040121. /etc/X11/XF86Config was produced by some autoconfiguration utility, and includes the following lines: Section "Device" Identifier "Videocard0" Driver "nv" VendorName "Videocard vendor" BoardName "RIVA TNT2" EndSection I read somewhere that the nVidia driver doesn't do DRI because it has some other way to do graphics. Is there any otsome way to force Wine to do software-only DirectX display? -- resume at http://www.cse.msu.edu/~lamber45/resume.htm PGP key at http://www.cse.msu.edu/~lamber45/newmail.htm#GPGKey
> I read somewhere that the nVidia driver doesn't do DRI because it has some > other way to do graphics. Is there any otsome way to force Wine to do > software-only DirectX display?You read something wrong, the nvidia drivers are closed source, but they use direct hardware rendering (What else could they do?), what they don't use if the dri.sf.net driver, that is open source. But unless you're a GNU fanatic you don't care. Get the nvidia driver from http://www.nvidia.com/object/linux_display_ia32_1.0-5336.html Stop your X server, run the installer as root, then edit your /etc/X11/XF86Config-4 config file, change this line Driver "nv" to Driver "nvidia" save changes and restart X, now you have full openGL 1.4 support, and you can run both linux native apps and windows apps with wine using direct rendering. Ivan.
> It uses 256 colors and X is using > 16-bit color; could this be part of the problem?Yes, it could be. Set X to 256 colours or more. Ivan.
On Wed, 24 Mar 2004, Ivan Leo Murray-Smith wrote:> > It uses 256 colors and X is using > > 16-bit color; could this be part of the problem? > Yes, it could be. Set X to 256 colours or more.X is using 65536 colors. How do I get it to use less? -- resume at http://www.cse.msu.edu/~lamber45/resume.htm PGP key at http://www.cse.msu.edu/~lamber45/newmail.htm#GPGKey
> X is using 65536 colors. How do I get it to use less?Set it to use 24 bit (16 million colours) Ivan.
Ivan Leo Murray-Smith wrote:>>X is using 65536 colors. How do I get it to use less? >> >> >Set it to use 24 bit (16 million colours) > >Ivan. > > >_______________________________________________ >wine-users mailing list >wine-users@winehq.org >http://www.winehq.org/mailman/listinfo/wine-users > >Open /etc/X11/XF86Config in your favorite editor and look for Section "Screen". In this section look for DefaultDepth 16 and change it to DefaultDepth 8. 16 is 16 bit, 65K colors 8is 8bit, 256 colors. Rick Knight (rick@rlknight.com)