From owner-freebsd-questions@FreeBSD.ORG Wed Dec 23 02:20:42 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FBBC106568B for ; Wed, 23 Dec 2009 02:20:42 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp1.utsp.utwente.nl [130.89.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id 03ACA8FC08 for ; Wed, 23 Dec 2009 02:20:41 +0000 (UTC) Received: from nox-laptop.student.utwente.nl (nox-laptop.student.utwente.nl [130.89.170.109]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id nBN2KTdU012778; Wed, 23 Dec 2009 03:20:29 +0100 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Wed, 23 Dec 2009 03:20:28 +0100 User-Agent: KMail/1.9.10 References: <200912221736.20023.macerl@telkomsa.net> <200912222157.57126.macerl@telkomsa.net> <20091222210051.GA6367@slackbox.xs4all.nl> In-Reply-To: <20091222210051.GA6367@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200912230320.29577.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact icts.servicedesk@utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Roland Smith , Richard Mace , Roger Subject: Re: Help building/running SDL/OpenGL code X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2009 02:20:42 -0000 On Tuesday 22 December 2009 22:00:51 Roland Smith wrote: > On Tue, Dec 22, 2009 at 09:57:57PM +0200, Richard Mace wrote: > > In the end, as a last resort, I de-installed the nvidia driver and > > started X with an empty /etc/X11/xorg.conf (which presumably loads the > > "nv" driver). I re-built my code and it runs, albeit without the > > smoothest of graphics. > > On a recent core2 duo or quad, even software rendering isn't that bad. True, until you press the full screen(s) button of your program running on your dual 1920x1200 monitor setup like I do ;-) Suddenly you're watching a slideshow... > > > I guess that that proves that the problem lies with the NVIDIA driver and > > its inter-relationship with the Mesa libraries, which one has to use if > > one builds one's own "OpenGL" programs. > > Yes. Agreed. It's quite annoying that the nvidia drivers replace the existing mesa GL libs, which breaks OpenGL when you switch back to mesa rendering. However, because the library is implemented by nvidia for their hardware, it is also blazingly fast. > > > It is a pity that FreeBSD has not sorted that out, but I hasten to add > > that I'm new to FBSD and it could be my error. > > It was nvidia's decision to drop support for older cards from their recent > drivers. Nothing that the FreeBSD project can do about that. The oldest cards that the new drivers support are the GeForce 6xxx series, which are over 5 years old. I'm not saying that I approve dropping support but frankly I don't really care for 3D acceleration on graphics cards that old. The latest nvidia drivers are actually built using a more recent version of FreeBSD so you won't have that linking problem. Which is indeed the most likely cause of the problem. I don't understand why glxgears does run and your simulation does not though... I would've expected both too fail or work. > > > It does beg the question, though, how one would develop OpenGL apps on > > FBSD? I'll revisit this soon, after some careful googling. Personally I use a recent nvidia card with the latest nvidia drivers. This has worked well for me, but I don't use SDL. My programs tend to use the simple GLUT/GLU/GL combo or wxGTK/GLU/GL if I need more controls. Loading textures is done using DevIL. Unfortunately my old GeForce 4 is broken so I can't test the legacy drivers any more. > > Get a card that is well-supported by the drivers in the FreeBSD kernel and > Xorg/Mesa. Currently that means Intel's on-board graphics or boards with If you're going with intel you might as well use software rendering :-) > ATI/AMD radeon chips, except for the latest chips. AMD released docs for > those chips some months ago, and the drivers for accellerated 3D are still > evolving. Yes, AMD's efforts are very commendable. > > Accellerated 3D works fine on my Radeon X1650 equipped card with the > xf86-video-ati driver and the drm.ko and radeon.ko kernel modules. > > Roland -- Pieter de Goeje