Problem 1187 - Detector not showing with OpenGL driver: possible solution
Summary: Detector not showing with OpenGL driver: possible solution
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: visualization/OpenGL (show other problems)
Version: other
Hardware: All Linux
: P5 normal
Assignee: garnier
URL: http://hypernews.slac.stanford.edu/Hy...
Depends on:
Blocks:
 
Reported: 2011-04-04 14:36 CEST by Andrea Dotti
Modified: 2011-04-04 14:42 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Andrea Dotti 2011-04-04 14:36:43 CEST
Hello,
   some may experience a problem with OpenGL visualization with displaying the detector geometry.
=============
Problem Description:
=============
On SLC5 (Scientific Linux CERN 5) with Geant4 using OGL (OpenGL) drivers (both X and Qt variants) the detector geometry is not displayed, while tracks are.

=============
Details:
=============
The OpenGL library that is used is of version 1.2 : 
ls -l /usr/lib64/libGL*
/usr/lib64/libGL.so -> libGL.so.1
/usr/lib64/libGL.so.1 -> libGL.so.1.2
/usr/lib64/libGL.so.1.2
The system has an installation of Mesa 
rpm -qa | grep mesa
mesa-libGL-6.5.1-7.8.el5.x86_64
The Mesa package provides the OpenGL library:
rpm -ql mesa-libGL-6.5.1-7.8.el5.x86_6

=============
Solution:
=============
Updating to a newer version of Mesa solves the problem. I fixed the problem installing on my system Mesa version 7.6.1
This version provides a version of GL library 1.5.
After compilation of mesa (follow provided instruction) it is enough to modify LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=<path-where-mesa7.6.1-is-installed>/lib:$LD_LIBRARY_PATH
(or setenv in tcsh)

=============
Notes:
=============
- This is tested in SLC5, but other Linux distributions may be as well affected. SLC5 is based on RedHad Enterprise Linux 5
- Installing Mesa 7.6.1 does not require re-compilation of Geant4. Indeed it is enough to change the run-time variable LD_LIBRARY_PATH
Comment 1 garnier 2011-04-04 14:42:28 CEST
Why SLC5 have a so old version of OpenGL ?
http://en.wikipedia.org/wiki/OpenGL#OpenGL_1.5
OpenGL 1.5 was released on July 29, 2003.

Thanks Andrea for this fix !
Laurent