When I use OGLIXm or OGLSXm, the menu bars title and background appear both in white so I can't read them. If I open another window like the panning action, the writing appears fine back on white. I've modified the file G4OpenGLXmViewer.cc: bgnd = XBlackPixelOfScreen (XtScreen(shell)); instead of bgnd = XWhitePixelOfScreen (XtScreen(shell)); It works like that. Also, when I use OIX, the viewer Hepviewer is called fine but then seems to be frozen. I can't manipulate the picture. Also, I tried to use /vis/set/sides to change the default number of sides of a circle (24) to something else but it doesn't seem to work.
Dear ob214@wbic.cam.ac.uk (Oliver?), Pleased to know someone is using our code. The original author of OpenGLXm has left and we who remain struggle sometimes to understand the code. Perhps you can help. > When I use OGLIXm or OGLSXm, the menu bars title and background appear both in > white so I can't read them. If I open another window like the panning action, > the writing appears fine back on white. > I've modified the file G4OpenGLXmViewer.cc: > bgnd = XBlackPixelOfScreen (XtScreen(shell)); > instead of > bgnd = XWhitePixelOfScreen (XtScreen(shell)); > It works like that. void G4OpenGLXmViewer::CreateMainWindow () { bgnd = XWhitePixelOfScreen (XtScreen(shell)); borcol = XBlackPixelOfScreen (XtScreen(shell)); On my machine (linux RedHat 6.2) all seems OK - see attached image. As you say, the panning action window is OK. It's just your first window. Do you have your Xdefaults set so that borders are generally white on black - or v.v? > Also, when I use OIX, the viewer Hepviewer is called fine but then seems to be > frozen. I can't manipulate the picture. You need to issue /vis/viewer/update to transfer control to the OIX window. > Also, I tried to use /vis/set/sides to change the default number of sides of a > circle (24) to something else but it doesn't seem to work. Works for me in OpenGL. If you are using OpenGLStored mode, you might have to clear the scene. All vis commands are under review. Please be patient.
Oliver, Are you still having trouble with this? May we close this report pending the release Geant4 4.0 due this month?
Closing report. No further report of problems.