We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › opengl examples linux
Page Index Toggle Pages: 1
opengl examples linux (Read 2668 times)
opengl examples linux
Mar 30th, 2010, 1:58am
 
Hi, using the latest puredyne distro with processing 1.0.9 I can't get any of the opengl examples running :
a window opens but nothing gets displayed, starting processing from the console outputs no warnings...I just don't get it.
my video card is an:
ATI Mobility Radeon HD 4570

thanks for any help

plusplus
Re: opengl examples linux
Reply #1 - Mar 30th, 2010, 2:42am
 
You need to do a bit of detective work, could be your graphics card is not recognized correctly try:-
dmesg|grep drm  (see if that is instructive)
glxinfo|grep vendor (record what you get)
glxinfo|grep renderer (see what you get there)

Is the following link any good to you
http://www.linuxquestions.org/questions/linux-laptop-netbook-25/ati-mobility-rad...
It might be informative, but also slightly out of date. I would be surprised if there wasn't a solution, but it may be complicated (I generally compile my own kernels and I'm pretty sure your card is supported in recent kernels).

I trust it is not a 32 bit version vs 64 bit processor problem is it

Re: opengl examples linux
Reply #2 - Mar 31st, 2010, 6:06am
 
Ok , thanks for your reply, here's what I get from thge 3 commands :

(~) % dmesg | grep drm                                               Burroughs
[    1.313739] [drm] Initialized drm 1.1.0 20060810
[    1.375486] [drm] radeon default to kernel modesetting DISABLED.
[    1.376762] [drm] Initialized radeon 1.31.0 20080528 for 0000:01:00.0 on minor 0
[   17.312764] [drm] Setting GART location based on new memory map
[   17.328025] [drm] Loading RV710 PFP Microcode
[   17.328079] [drm] Loading RV710 CP Microcode
[   17.343202] [drm] Resetting GPU
[   17.343260] [drm] writeback test succeeded in 1 usecs
(~) % glxinfo | grep vendor                                          Burroughs
server glx vendor string: SGI
client glx vendor string: SGI
OpenGL vendor string: Mesa Project
(~) % glxinfo|grep renderer                                          Burroughs
OpenGL renderer string: Software Rasterizer
(~) %    

I'm back on linux after 10 years of mac so if you can point me in the right direction then I can handle it myself

E
Re: opengl examples linux
Reply #3 - Mar 31st, 2010, 8:12am
 
I am not 100% sure on this but this what I think you might hoped to have seen.
But I think the vendor string Mesa indicates software rather than hardware opengl (I know it sounds daft) if you run glxgears, you might find it renders but runs relatively slowly.

server glx vendor string: SGI
client glx vendor string: SGI
OpenGL vendor string: Tungsten Graphics, Inc. (is what you want to see at least in my case)

LINUX newbies please ignore following (I will not be responsible!!!)
I would be tempted to recompile the kernel but that is probably not necessary.
What you need to do is to make sure that the hardware driver is  picked up. Since grub2, if you want to send commands to kernel the file you need to change is /etc/default/grub.
Here is the appropriate entry from my grub config

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.modeset=1"

Where I turn the kernel modesetting on (experimental)
after changing this file you need to run 'update-grub' afterwards to update
/boot/grub/grub.cfg (which is the real kernel config file)
In my case turning modesetting on has no effect because it is the default for my custom kernel, you however may need to disable framebuffer driver for example.

I hope that helps because it is difficult to cover all the bases. Smiley
However you can also try the drivers from radeon
http://support.amd.com/us/gpudownload/Pages/index.aspx
Going that route does means compiling the kernel modules on your own machine, in this case you probably should prefer the distro kernel source/headers (or at least in the first instance).  I have found a community wiki that seems have some relevant information re installing latest drivers from ATI http://wiki.cchtml.com/index.php/Ubuntu which suggests that headers should now be sufficient.
PS if you do decide to compile a kernel, the latest stable is 2.6.33.2 from http://www.kernel.org/, and there are ongoing developments for graphics drivers I would also recommend doing it the debian way; for slightly outdated instructions (pre grub2 also predates relatively recent gcc support for the 'march=native'  CFLAG which detects machine specific optimizations)  follow link:-
http://www.howtoforge.com/kernel_compilation_debian_etch

Re: opengl examples linux
Reply #4 - Apr 15th, 2010, 5:06am
 
plusplus wrote on Mar 31st, 2010, 6:06am:
I'm back on linux after 10 years of mac so if you can point me in the right direction then I can handle it myself


Try running glxgears, if it runs then the Mesa and OpenGL layer must be working. After confirming that Mesa isn't the problem, try writing a JOGL program (just copy a JOGL example from somewhere in the internet) and compile that JOGL program with the javac that ships with processing. If that works as well, then it may be a problem with Processing and we get to go deeper.

btw, can you copy out the output of "uname -a" here
Page Index Toggle Pages: 1