Forum: Visualization Not Logged In (login)
Show subscribers

This forum covers visualization drivers, commands and attributes. Visualization examples and how-to discussions are included here.

The email gateway for this forum is: visualization-g4hn@slac.stanford.edu


Inline Depth:
 0 0
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

Question Permission denied to make visualization!!!!!!!!!!!!!!!!!!!!  by Morad Hamad <Morad Hamad>,   Nov 08, 07:53
Hello every body...
can you please tell me about this visualization problem?
why there is no permission? how can I be able to do it?

??????????????????????????????????????????????????????????
*** VRML 2.0 File g4_00.wrl is generated.
sh: /home/morad/geant4/bin/Linux-g++/vrmlview: Permission denied
100 events have been kept for refreshing and/or reviewing.
===========================================
Output VRML 2.0 file: g4_01.wrl
Maximum number of files in the destination directory: 100
  (Customizable with the environment variable: G4VRMLFILE_MAX_FILE_NUM)
===========================================
*** VRML 2.0 File g4_01.wrl is generated.
sh: /home/morad/geant4/bin/Linux-g++/vrmlview: Permission denied
Graphics systems deleted.
Visualization Manager deleting...
??????????????????????????????????????????????????????????????

the visualization does not appear...

thanks
Morad
1 None: Re: Permission denied to make visualization!!!!!!!!!!!!!!!!!!!!   (John Allison - Nov 08, 08:04)
Question HepRep and boolean issue  by Dennis Haggerty <Dennis Haggerty>,   Oct 28, 08:55
Hi

I’m creating a very simple model where I use a translation in a G4UnionSolid. I set a variable to use in the translation as below (pick one)

transRing = 8.486635*mm;

transRing = (Side+Ring/2.0)*mm; // where of course (Side+Ring/2.0 == 8.486635)

When I use the direct numerical value things work fine. When I use the equation I get a strange error in HepRep. (note that there are no compile errors in either case). The message from HepRep is:

BooleanProcessor::caseIE : unimplemented case
BooleanProcessor::caseIE : unimplemented case
BooleanProcessor: boolean operation failed

The output of HepRep does not produce the solid as expected. However when I run the exact same exe file in ray tracer the solid looks fine and the boolean operation clearly did not fail.

It's just strange that the HepRep works fine when I hard code the numerical value and fails when I use the equation.

Anyone know what is going on?

Thanks

Dennis

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/10/28/08.54-29387-Vis2.jpg

1 None: Re: HepRep and boolean issue   (John Allison - Oct 28, 13:36)
Question Visualization Does Not Appear  by Morad Hamad <Morad Hamad>,   Oct 05, 14:50
Dear All,
could you please tell my what is the meaning of the following :-

after compilation and try to use:-
-> Hadrontherapy visualisationMacro.mac
.
.
.
.
the following message appears
====================================================================
Run 0 starts ...

---> Begin of Event: 0
G4VisManager: Using G4TrajectoryDrawByCharge as default trajectory model.
See commands in /vis/modeling/trajectories/ for other options.
Trajectory drawing configuration will be based on imode value of 50
WARNING: G4VisManager::IsValidView(): Attempt to draw when no graphics system
  has been instantiated. Use "/vis/open" or "/vis/sceneHandler/create".
  Alternatively, to avoid this message, suppress instantiation of vis
  manager (G4VisExecutive), possibly by setting G4VIS_NONE, and ensure
  drawing code is executed only if G4VVisManager::GetConcreteInstance()
  is non-zero.


--------------------------------------------------------------------------

the visualization does not appear in hadron therapy example
N.B I am using VRLM view on openSUSE10.2

Best regrades
Morad
1 None: Re: Visualization Does Not Appear   (John Allison - Oct 07, 05:47)
(_ Ok: Re: Visualization Does Not Appear   (Morad Hamad - Oct 14, 11:34)
Question G4OpenGLViewer couldn't open display  by Matt Worden <Matt Worden>,   Sep 22, 04:54
Hello, I just installed Geant4 on a Mac running 10.4.11.

After I compile, when I try to run code (that works on other computers) I get the following message.

###/vis/open DAWNFILE
/vis/open OGLIX
/vis/sceneHandler/create OGLIX
/vis/sceneHandler/attach
/vis/viewer/create ! ! 600
G4OpenGLViewer::G4OpenGLViewer couldn't open display.
G4OpenGLImmediateX::CreateViewer: error flagged by negative view id in G4OpenGLImmediateXViewer creation.
 Destroying view and returning null pointer.
Bus error

Does anyone have any idea what is causing this or how to fix it?

Thanks for your time

1 None: Re: G4OpenGLViewer couldn't open display   (John Allison - Sep 29, 05:51)
(_ None: Re: G4OpenGLViewer couldn't open display   (Joseph Perl - Nov 17, 06:43) newer
Question visualization problem...  by Morad Hamad <Morad Hamad>,   Sep 17, 09:17
Dear all, i have a problem in visualization of all examples, for an example: in userVisAction example when I try to use "vis.mac" after gmake the visualization will appear only for a moment then it disappear quickly, I cant see it again

Any Idea?

N.B I use openSUSE 11.1 and I have already install the "freewrl" software

1 None: Re: visualization problem...   (Joseph Perl - Sep 17, 16:11)
(_ None: Re: visualization problem...   (Morad Hamad - Sep 18, 14:53)
(_ None: Re: visualization problem...   (Joseph Perl - Nov 17, 06:39) newer
(_ Ok: Re: visualization problem...   (Morad Hamad - Nov 17, 11:03) newer
Question visualization problem geant4.9.2-p02 and VRML  by <Miche>,   Sep 17, 04:04
Dear all,
  I have a problem about the visualization by using VRML and I don't know how to solve it. My OS is Scientific Linux last version. I installed geant4.9.2.p02 without problem (apparently ). For the visualization I'm using the vrmlview program (not g4vrmlview).
Of course during installation I answered yes to the OpenGL driver and
visualization VRML driver and use.
  I tested the installation and visualization with N02, N03 example, but I founded a problem.

I launched the program in G4WORKDIR with

./bin/Linux-g++/exapleN02 vis.mac

and had a problem on command /vis..

the first is

/vis/open VRML1FILE command not found (the same with VRML2FILE)

But in interactive mode in the directory where exampleN02 binary file is

# exampleN02

idle> /vis/open VRML1FILE

the command ran without problem. I tested different compilation of Geant4 but the problem remained.

Can you help me ?

Thanks,
1 None: Re: visualization problem geant4.9.2-p02 and VRML   (Joseph Perl - Sep 17, 16:07)
Question OpenGL location in SLC5  by Zhili.Weng <Zhili.Weng>,   Jul 23, 23:42
Hello, i am using Scientific Linux 5 and try to install Geant4 with OpenGLXM in the build process, message show up as:

G4VIS_BUILD_OPENGLXM_DRIVER
  G4VIS_USE_OPENGLXM

It is an interface to the de facto standard 3D graphics library, OpenGL. It is well suited for real-time fast visualization and prototyping. The X11 version of the OpenGL libraries and the Motif Xm extension is required. [n] y

You have selected to use OPENGLXM driver. But it was not found in expected place. Please specify the correct path where Xm is installed in your system.

You can set '-' (without quotation) to CANCEL the XM flag at all:

Is anybody knows that whether SLC5 already installed such library, and where is it ? If not, how can I install the library manully.

Thank you in advanced !

1 None: Re: OpenGL location in SLC5   (John Allison - Jul 27, 22:26)
Question geant4 Ubuntu  by Felix Pfeiffer <Felix Pfeiffer>,   Jul 14, 01:40
Hey,

i have a problem with the most recent Ubuntu (9.04) and geant4 9.2.
If i draw something using oglix and the oglix window is overlapped by something else the graphics gets corrupted.
Now the PAW Faq said to enable backingstore in xorg.conf.
I did so but the problem persisted.
That it's really enabled is shown by
---
xdpyinfo | grep back
  options:    backing-store YES, save-unders NO
---
Anybody has a clue what else might be the Problem or even the solution?

thanks, Felix.

1 None: Re: geant4 Ubuntu   (Jorge - Jul 19, 01:14)
(_ None: Re: geant4 Ubuntu   (Felix Pfeiffer - Jul 19, 01:28)
(_ Question: Re: geant4 Ubuntu   (Jorge - Jul 19, 01:56)
(_ None: Re: geant4 Ubuntu   (Felix Pfeiffer - Jul 20, 02:39)
(_ None: Re: geant4 Ubuntu   (Jorge - Jul 21, 06:37)
Question Wireframe viewing in OGLIX  by <melb>,   Jun 26, 11:19
Hello, I am a novice geant user and have constructed a simple detector setup using G4Box to create a world volume, a detector hall, and an aluminum box containing a block of mineral oil.

When I run the program to view my detector, I can only see the detector components if I set the style to solid. I have tried forcing wireframe, but that just makes the components invisible in OGLIX.

I have attached my Detector Construction source code, and my default vis.mac (I added the .txt so I could upload).

Please let me know if you can find what is missing that would enable me to view my detector as wireframe.

Thank you.

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/06/26/11.13-8510-01DetectorConstruction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/06/26/11.14-13737-vis.mac.txt

1 None: Re: Wireframe viewing in OGLIX   (John Allison - Jun 30, 03:49)
Question Problem with compiling N04  by Eric Lu <Eric Lu>,   Jun 12, 13:21
Making dependency for file exampleN04.cc ...
In file included from c:/Geant4/geant4_9_2_p01/include/G4VisExecutive.hh
                 from exampleN04.cc:50:
c:/Geant4/geant4_9_2_p01/include/G4VisExecutive.icc:63:37: G4OpenGLImmed
2.hh: No such file or directory
c:/Geant4/geant4_9_2_p01/include/G4VisExecutive.icc:64:34: G4OpenGLStore
h: No such file or directory
Compiling exampleN04.cc ...
exampleN04.cc
c:\Geant4\geant4_9_2_p01\include\G4VisExecutive.icc(63) : fatal error C1
not open include file: 'G4OpenGLImmediateWin32.hh': No such file or dire
make: *** [c:/g4work/tmp/WIN32-VC/exampleN04/exe/exampleN04.OBJ] Error 2

Above is the error message, I know that it is just the program cann't locate the include files, so How can I tell the program location of the files? via modifying makefile? 'G4OpenGLImmediateWin32.hh' is located in "C:\Geant4\geant4_9_2_p01\source\visualization\OpenGL\include". BTW: I trid copy the needed files to "C:\Geant4\geant4_9_2_p01\include"(I know it is stupid:-)) and the compilation seems can go through, but when I run the program, it crushed. Following is the error info: AppName: examplen04.exe AppVer: 0.0.0.0 ModName: msvcp71.dll ModVer: 7.10.6030.0 Offset: 0000559d Thanks.

1 Question: Re: Problem with compiling N04   (garnier - Jun 16, 05:37)
Question A problem running example A01  by Eric Lu <Eric Lu>,   Jun 12, 10:05
I am sure I have installed gean4 successfully, but when I run example A01, and use "/vis/open OGLSWin32", then the pop-out new window freeze and I have to terminate it manually. Anybody has any clue what is wrong with this? Thanks very much.

1 None: Re: A problem running example A01   (Joseph Perl - Jul 02, 01:11)
Question Moving the object in the screen  by Pradip Datta <Pradip Datta>,   Jun 02, 07:30
Hi all,

It could have nice if it is possible the drag the object (detector) in the opengl screen. Is it possible by any means?

Reply will be highly appreciated.

With regards,

Pradip

1 Idea: Re: Moving the object in the screen   (M Tariq Siddique - Jun 02, 20:58)
2 None: Re: Moving the object in the screen   (Guy Barrand - Jun 04, 02:24)
3 None: Re: Moving the object in the screen   (Joseph Perl - Jun 05, 14:44)
Warning Mac OS X Update 10.5.7 breaks Open Inventor  by Tom Roberts <Tom Roberts>,   May 26, 08:08
The recent Mac OS X update 10.5.7 has affected OpenGL in such a way that the Open Inventor viewer crashes with the message: gl.c:2130: failed assertion `glGetError() == GL_NO_ERROR && "GL error when calling glGetString() — no current GL context?"'

Re-linking the program fixed it for me.

A workaround is available for an old executable: Download this old library http://muonsinc.com/g4beamline/libGL.1.dylib and move it to a directory where it will be loaded instead of the one in /usr/X11/lib (this is the version from 10.5.6). My program is run from a script that uses its own lib directory, so I put it there -- this way it does not affect any other program, and will get removed when a new release of my program is installed.

1 None: Re: Mac OS X Update 10.5.7 breaks Open Inventor   (Guy Barrand - May 26, 08:42)
1 None: Re: Mac OS X Update 10.5.7 breaks Open Inventor   (John Allison - May 27, 08:16)
2 None: Re: Mac OS X Update 10.5.7 breaks Open Inventor   (Guy Barrand - Jun 04, 05:17)
3 Question: Re: Mac OS X Update 10.5.7 breaks Open Inventor   (Nicolas Ruiz - Sep 09, 04:38)
1 None: Re: Mac OS X Update 10.5.7 breaks Open Inventor   (Tom Roberts - Sep 09, 08:14)
Question DAWN?  by Maikol Salas R <Maikol Salas R>,   29 Apr, 2009
Hi

I am trying to configure dawn. When I try to open a file I saw this message " maikol@maikol-laptop:~/g4work/A01$ dawn g4_13.prim

***************************************
          Fukui  Renderer         
              DAWN                
 (Drawer for Academic WritiNgs)   
 ver 3.88a (Dev. indep. Mode)   September 20, 2005
***************************************

***** g4.prim viewer mode (default)
***** ("dawn -h" for help)

exec: 3: wish: not found "

I don't know, what's the problem?

1 Question: Re: DAWN?   (Maikol Salas R - 29 Apr, 2009)
(_ None: Re: DAWN?   (John Allison - 30 Apr, 2009)
(_ Question: Re: DAWN?   (Maikol Salas R - 01 May, 2009)
1 Question: Re: DAWN?   (Jorge - Jul 19, 01:03)
2 Question: Re: DAWN?   (Jorge - Jul 19, 01:03)
1 Idea: Re: DAWN?   (Jorge - Jul 21, 06:40)
Question DAWN terminated due to buffer overflow  by Andrea <Andrea>,   07 Apr, 2009
Hi!

After making (without any error) the example02 and generating the prim file, I 
tried to run Dawn (I can see the Dawn GUI), but the outcome is 
         *** buffer overflow detected ***: dawn terminated
In the attachment there is the complete error.

Thanks, Andrea

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/04/07/10.00-4247-dawn_error.txt

1 Question: Re: DAWN terminated due to buffer overflow   (Jorge - Jul 19, 01:09)
(_ Ok: Re: DAWN terminated due to buffer overflow   (Andrea - Jul 23, 04:00)
(_ Question: Re: DAWN terminated due to buffer overflow   (Antonio Magalhaes - Oct 07, 09:42)
(_ Feedback: Re: DAWN terminated due to buffer overflow   (Jorge Cabello - Oct 07, 11:36)
None detector visualisation  by Davinder Siwal <Davinder Siwal>,   07 Apr, 2009
hi John

the following lines are the ouput of my terminal and at the last i am trying to Draw the detector which is defined in detector construction now as soon as i execute the file examplenN03 the OGLIX window opens and it shows the particle tracks but no detector so at the last of the following lines i was tring to see the detector but nothing is coming in window

************************************************************
 Geant4 version Name: geant4-09-00    (29-June-2007)
                      Copyright : Geant4 Collaboration
                      Reference : NIM A 506 (2003), 250-303
                            WWW : http://cern.ch/geant4
*************************************************************

***** Table : Nb of materials = 13 *****

 Material: Aluminium     density:  2.700 g/cm3   temperature: 273.15 K  pressure:   1.00 atm  RadLength:   8.893 cm 
   --->  Element: Aluminium ( )   Z = 13.0   N =  27.0   A =  26.98 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %

 Material: liquidArgon     density:  1.390 g/cm3   temperature: 273.15 K  pressure:   1.00 atm  RadLength:  14.065 cm 
   --->  Element: liquidArgon ( )   Z = 18.0   N =  40.0   A =  39.95 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %

 Material:     Lead     density: 11.350 g/cm3   temperature: 273.15 K  pressure:   1.00 atm  RadLength:   5.612 mm 
   --->  Element: Lead ( )   Z = 82.0   N = 207.2   A = 207.19 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %

 Material:    Water     density:  1.000 g/cm3   temperature: 273.15 K  pressure:   1.00 atm  RadLength:  36.092 cm 
   --->  Element: Hydrogen (H)   Z =  1.0   N =   1.0   A =   1.01 g/mole  ElmMassFraction:  11.21 %  ElmAbundance  66.67 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  88.79 %  ElmAbundance  33.33 %

 Material: Scintillator     density:  1.032 g/cm3   temperature: 273.15 K  pressure:   1.00 atm  RadLength:  42.549 cm 
   --->  Element: Carbon (C)   Z =  6.0   N =  12.0   A =  12.01 g/mole  ElmMassFraction:  91.45 %  ElmAbundance  47.37 %
   --->  Element: Hydrogen (H)   Z =  1.0   N =   1.0   A =   1.01 g/mole  ElmMassFraction:   8.55 %  ElmAbundance  52.63 %

 Material:    Mylar     density:  1.397 g/cm3   temperature: 273.15 K  pressure:   1.00 atm  RadLength:  28.599 cm 
   --->  Element: Carbon (C)   Z =  6.0   N =  12.0   A =  12.01 g/mole  ElmMassFraction:  62.49 %  ElmAbundance  45.45 %
   --->  Element: Hydrogen (H)   Z =  1.0   N =   1.0   A =   1.01 g/mole  ElmMassFraction:   4.20 %  ElmAbundance  36.36 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  33.30 %  ElmAbundance  18.18 %

 Material:   quartz     density:  2.200 g/cm3   temperature: 273.15 K  pressure:   1.00 atm  RadLength:  12.295 cm 
   --->  Element: Silicon (Si)   Z = 14.0   N =  28.1   A =  28.09 g/mole  ElmMassFraction:  46.75 %  ElmAbundance  33.33 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  53.25 %  ElmAbundance  66.67 %

 Material:      Air     density:  1.290 mg/cm3  temperature: 273.15 K  pressure:   1.00 atm  RadLength: 285.161 m  
   --->  Element: Nitrogen (N)   Z =  7.0   N =  14.0   A =  14.01 g/mole  ElmMassFraction:  70.00 %  ElmAbundance  72.71 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  30.00 %  ElmAbundance  27.29 %

 Material:  Aerogel     density: 200.000 mg/cm3  temperature: 273.15 K  pressure:   1.00 atm  RadLength:   1.493 m  
   --->  Element: Silicon (Si)   Z = 14.0   N =  28.1   A =  28.09 g/mole  ElmMassFraction:  29.22 %  ElmAbundance  11.12 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  66.49 %  ElmAbundance  44.42 %
   --->  Element: Hydrogen (H)   Z =  1.0   N =   1.0   A =   1.01 g/mole  ElmMassFraction:   4.19 %  ElmAbundance  44.37 %
   --->  Element: Carbon (C)   Z =  6.0   N =  12.0   A =  12.01 g/mole  ElmMassFraction:   0.10 %  ElmAbundance   0.09 %

 Material: CarbonicGas     density: 27.000 mg/cm3  temperature: 325.00 K  pressure:  50.00 atm  RadLength:  13.406 m  
   --->  Element: Carbon (C)   Z =  6.0   N =  12.0   A =  12.01 g/mole  ElmMassFraction:  27.29 %  ElmAbundance  33.33 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  72.71 %  ElmAbundance  66.67 %

 Material: WaterSteam     density:  0.300 mg/cm3  temperature: 500.00 K  pressure:   2.00 atm  RadLength:   1.203 km 
   --->  Element: Hydrogen (H)   Z =  1.0   N =   1.0   A =   1.01 g/mole  ElmMassFraction:  11.21 %  ElmAbundance  66.67 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  88.79 %  ElmAbundance  33.33 %

 Material: Galactic     density:  0.000 mg/cm3  temperature:   2.73 K  pressure:   0.00 atm  RadLength: 204727576.737 pc 
   --->  Element: Galactic ( )   Z =  1.0   N =   1.0   A =   1.01 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %

 Material:     Beam     density:  0.010 mg/cm3  temperature: 273.15 K  pressure:   0.02 atm  RadLength:  36.786 km 
   --->  Element: Nitrogen (N)   Z =  7.0   N =  14.0   A =  14.01 g/mole  ElmMassFraction:  70.00 %  ElmAbundance  72.71 %
   --->  Element: Oxygen (O)   Z =  8.0   N =  16.0   A =  16.00 g/mole  ElmMassFraction:  30.00 %  ElmAbundance  27.29 %

Visualization Manager instantiating... Visualization Manager initialising... Registering graphics systems...

You have successfully registered the following graphics systems.
Current available graphics systems are:
  ASCIITree (ATree)
  DAWNFILE (DAWNFILE)
  G4HepRep (HepRepXML)
  G4HepRepFile (HepRepFile)
  RayTracer (RayTracer)
  VRML1FILE (VRML1FILE)
  VRML2FILE (VRML2FILE)
  FukuiRenderer (DAWN)
  OpenGLImmediateX (OGLIX)
  OpenGLStoredX (OGLSX)
  OpenGLImmediateXm (OGLIXm)
  OpenGLStoredXm (OGLSXm)
  RayTracerX (RayTracerX)
  VRML1 (VRML1)
  VRML2 (VRML2)

Registering model factories...

You have successfully registered the following model factories.
Registered model factories:
  generic
  drawByCharge
  drawByParticleID
  drawByOriginVolume
  drawByAttribute

Registered filter factories:
  chargeFilter
  particleFilter
  originVolumeFilter
  attributeFilter

------------------------------------------------------------
---> The calorimeter is 10 layers of: [ 10mm of Lead + 5mm of liquidArgon ] 
------------------------------------------------------------
ExN03PhysicsList::SetCuts:CutLength : 1 mm 
/control/saveHistory
/run/verbose 2
#
# create empty scene
#
/vis/scene/create
#
# Create a scene handler for a specific graphics system
# (Edit the next line(s) to choose another graphic system)
#
# Use this open statement to get an .eps and .prim files
# suitable for viewing in DAWN.
###/vis/open DAWNFILE
#
# Use this open statement instead for OpenGL in immediate mode.
/vis/open OGLIX
/vis/sceneHandler/create OGLIX
/vis/sceneHandler/attach
/vis/viewer/create ! ! 600
Got standard cmap
Window name: viewer-0 (OpenGLImmediateX)
/vis/viewer/refresh
G4Scene::AddWorldIfEmpty: The scene was empty of run-duration models.
  "world" has been added.
/vis/scene/notifyHandlers
#
# Use this open statement instead to get a HepRep version 1 file
# suitable for viewing in WIRED.
#/vis/open HepRepFile
#
# Use this open statement instead to get a HepRep version 2 file
# suitable for viewing in WIRED.
#/vis/open HepRepXML
#
# Output an empty detector
/vis/viewer/flush
/vis/viewer/refresh viewer-0
/vis/viewer/update viewer-0
#
# Draw trajectories at end of event, showing trajectory points as
# markers of size 2 pixels
/vis/scene/add/trajectories
/tracking/storeTrajectory 1
WARNING: Trajectory storing has been requested.  This action may be
  reversed with "/tracking/storeTrajectory 0".
/vis/scene/notifyHandlers
/vis/modeling/trajectories/create/drawByCharge
/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
#
# To draw gammas only
#/vis/filtering/trajectories/create/particleFilter
#/vis/filtering/trajectories/particleFilter-0/add gamma
#
# To draw charged particles only
#/vis/filtering/trajectories/particleFilter-0/invert true
#
# Many other options available with /vis/modeling and /vis/filtering.
# For example, select colour by particle ID
#/vis/modeling/trajectories/create/drawByParticleID
#/vis/modeling/trajectories/drawByParticleID-0/set e- red
#
/vis/scene/endOfEventAction accumulate
WARNING: The vis manager will keep up to 100 events.
  This may use a lot of memory.
/vis/scene/notifyHandlers
#
# At end of each run, an automatic flush causes graphical output.
/run/beamOn 1

phot:  Total cross sections from Sandia parametrisation. 
      Sampling according PhotoElectric model

compt:  Total cross sections has a good parametrisation from 10 KeV to (100/Z) GeV
      Sampling according Klein-Nishina model
      tables are built for  gamma
      Lambda tables from 100 eV  to 100 GeV in 90 bins.

conv:  Total cross sections has a good parametrisation from 1.5 MeV to 100 GeV for all Z;
      sampling secondary e+e- according Bethe-Heitler model
      tables are built for  gamma
      Lambda tables from 1.022 MeV to 100 GeV in 100 bins.

msc:  Model variant of multiple scattering for e-
      Lambda tables from 100 eV  to 100 TeV in 120 bins.
      LateralDisplacementFlag=  1   Skin= 0
      Boundary/stepping algorithm is active with RangeFactor= 0.02  Step limit type 1

eIoni:   tables are built for  e-
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Delta cross sections and sampling from MollerBhabha model
      Good description from 1 KeV to 100 GeV.
      Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1

eBrem:   tables are built for  e-
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Total cross sections and sampling from StandBrem model (based on the EEDL data library) 
      Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1

eIoni:   tables are built for  e+
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Delta cross sections and sampling from MollerBhabha model
      Good description from 1 KeV to 100 GeV.
      Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1

eBrem:   tables are built for  e+
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Total cross sections and sampling from StandBrem model (based on the EEDL data library) 
      Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1

annihil:       Sampling according eplus2gg model
      tables are built for  e+
      Lambda tables from 100 eV  to 100 TeV in 120 bins.

msc:  Model variant of multiple scattering for proton
      Lambda tables from 100 eV  to 100 TeV in 120 bins.
      LateralDisplacementFlag=  1   Skin= 0
      Boundary/stepping algorithm is active with RangeFactor= 0.02  Step limit type 1

hIoni:   tables are built for  proton
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Scaling relation is used from proton dE/dx and range.
      Delta cross sections and sampling from BetheBloch model for scaled energy > 2 MeV
      Parametrisation from Bragg for protons below.
      Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1

hIoni:   tables are built for  anti_proton
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Scaling relation is used from proton dE/dx and range.
      Delta cross sections and sampling from BetheBloch model for scaled energy > 2 MeV
      Parametrisation from Bragg for protons below.
      Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1

msc:  Model variant of multiple scattering for mu+
      Lambda tables from 100 eV  to 100 TeV in 120 bins.
      LateralDisplacementFlag=  1   Skin= 0
      Boundary/stepping algorithm is active with RangeFactor= 0.02  Step limit type 1

muIoni:   tables are built for  mu+
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below, 
      radiative corrections for E > 1 GeV
      Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1

muBrems:   tables are built for  mu+
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Parametrised model 

muPairProd:   tables are built for  mu+
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Parametrised model 

muIoni:   tables are built for  mu-
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below, 
      radiative corrections for E > 1 GeV
      Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1

muBrems:   tables are built for  mu-
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Parametrised model 

muPairProd:   tables are built for  mu-
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Parametrised model 

hIoni:   tables are built for  pi+
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Scaling relation is used from proton dE/dx and range.
      Delta cross sections and sampling from BetheBloch model for scaled energy > 0.297504 MeV
      Parametrisation from Bragg for protons below.
      Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1

msc:  Model variant of multiple scattering for pi-
      Lambda tables from 100 eV  to 100 TeV in 120 bins.
      LateralDisplacementFlag=  1   Skin= 0
      Boundary/stepping algorithm is active with RangeFactor= 0.02  Step limit type 1

hIoni:   tables are built for  pi-
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Scaling relation is used from proton dE/dx and range.
      Delta cross sections and sampling from BetheBloch model for scaled energy > 0.297504 MeV
      Parametrisation from Bragg for protons below.
      Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1

Region <DefaultRegionForTheWorld> -- appears in <World> world volume
 Root logical volume(s) : World 
 Pointers : G4VUserRegionInformation[0], G4UserLimits[0], G4FastSimulationManager[0], G4UserSteppingAction[0]
 Materials : Galactic Lead liquidArgon 
 Production cuts :  gamma 1 mm     e- 1 mm     e+ 1 mm 

========= Table of registered couples ==============================

Index : 0     used in the geometry : Yes     recalculation needed : No 
 Material : Galactic
 Range cuts        :  gamma 1 mm     e- 1 mm     e+ 1 mm 
 Energy thresholds :  gamma 990 eV     e- 990 eV     e+ 990 eV 
 Region(s) which use this couple : 
    DefaultRegionForTheWorld

Index : 1     used in the geometry : Yes     recalculation needed : No 
 Material : Lead
 Range cuts        :  gamma 1 mm     e- 1 mm     e+ 1 mm 
 Energy thresholds :  gamma 100.511 keV    e- 1.37814 MeV    e+ 1.28002 MeV
 Region(s) which use this couple : 
    DefaultRegionForTheWorld

Index : 2     used in the geometry : Yes     recalculation needed : No 
 Material : liquidArgon
 Range cuts        :  gamma 1 mm     e- 1 mm     e+ 1 mm 
 Energy thresholds :  gamma 6.17835 keV    e- 342.891 keV    e+ 334.551 keV
 Region(s) which use this couple : 
    DefaultRegionForTheWorld

====================================================================

Start closing geometry. G4GeometryManager::ReportVoxelStats -- Voxel Statistics

    Total memory consumed for geometry optimisation:   0 kByte
    Total CPU time elapsed for geometry optimisation: 0 seconds

    Voxelisation: top CPU users:
    Percent   Total CPU    System CPU       Memory  Volume
    -------   ----------   ----------     --------  ----------
       0.00         0.00         0.00            1k Calorimeter
       0.00         0.00         0.00            0k Layer

    Voxelisation: top memory users:
    Percent     Memory      Heads    Nodes   Pointers    Total CPU    Volume
    -------   --------     ------   ------   --------   ----------    ----------
      71.82          0k         1       10         10         0.00    Calorimeter
      28.18          0k         1        3          4         0.00    Layer
### Run 0 start.
Start Run processing.

---> Begin of event: 0

--------- Ranecu engine status ---------
 Initial seed (index) = 0
 Current couple of seeds = 9876, 54321
----------------------------------------
---> End of event: 0
   Absorber: total energy: 47.475095 MeV       total track length: 3.4164242 cm 
        Gap: total energy: 863.57217 keV       total track length: 4.1184293 mm 
Run terminated.
Run Summary
  Number of events processed : 1
  User=0.01s Real=0.05s Sys=0.01s

--------------------End of Run------------------------------

 mean Energy in Absorber : 47.475095 MeV +- 0 eV 
 mean Energy in Gap      : 863.57217 keV +- 0 eV 

 mean trackLength in Absorber : 3.4164242 cm  +- 0 fm 
 mean trackLength in Gap      : 4.1184293 mm  +- 0 fm 
------------------------------------------------------------

1 event has been kept for refreshing and/or reviewing.

# When you exit Geant4, you will find a file called scene-0.heprep.zip.
# Unzipping this will give you three separate HepRep files suitable for
# viewing in WIRED.
# The first file will contain just detector geometry.
# The second file will contain the detector plus one event.
# The third file will contain the detector plus ten events.
Idle> /vis/drawVolume /vis/drawVolume /vis/scene/create /vis/scene/add/volume world /vis/scene/notifyHandlers /vis/sceneHandler/attach Idle> /vis/viewer/flush /vis/viewer/flush /vis/viewer/refresh viewer-0 /vis/viewer/update viewer-0 Idle>

1 None: Re: detector visualisation   (John Allison - 07 Apr, 2009)
None detector visualization problem in N02  by Davinder Siwal <Davinder Siwal>,   06 Apr, 2009
  hi all

  iam trying to visualize the detector components of example N02 in geant4 by using OGLIX drivcer i am working in interactive mode alhough the viewer window is opening but when i am giving the commands like /vis/scene/create,/vis/scene/add/volume etc. nothing is coming on the viewer window    






  thanks
 Davinder Siwal
1 None: Re: detector visualization problem in N02   (John Allison - 07 Apr, 2009)
None detecto visualization problem in N02  by Davinder Siwal <Davinder Siwal>,   06 Apr, 2009
  hi all

  iam trying to visualize the detector components of example N02 in geant4 by using OGLIX drivcer i am working in interactive mode alhough the viewer window is opening but when i am giving the commands like /vis/scene/create,/vis/scene/add/volume etc. nothing is coming on the viewer window    






  thanks
 Davinder Siwal
Warning Open Inventor library can't see SoXt lib in G4.9.2.p01  by Dragos Constantin <Dragos Constantin>,   06 Apr, 2009
I am getting undefined reference to SoXt errors whenever I try to link against Open Inventor library. A quick fix is to add

LDLIBS   += -lSoXt

in the GNUmakefile. I don't know what is missing in p01 compared to the previous release. I am not sure if this is a bug or not and this is why I have posted my message here.

Best regards,
Dragos
1 None: Re: Open Inventor library can't see SoXt lib in G4.9.2.p01   (John Allison - 08 Apr, 2009)
(_ Note: Re: Open Inventor library can't see SoXt lib in G4.9.2.p01   (Dragos Constantin - 09 Apr, 2009)
None Open Inventor won't link on Windows  by Tom Roberts <Tom Roberts>,   31 Mar, 2009
When building my program on Windows, I get this error: libG4OpenInventor.a(G4OpenInventorWin.o) : error LNK2019: unresolved external symbol "public: static class G4Win32 * __cdecl G4Win32::getInstance(void)" (?getInstance@G4Win32@@SAPAV1@XZ) referenced in function "private: virtual void __thiscall G4OpenInventorWin::Initialize(void)" (?Initialize@G4OpenInventorWin@@EAEXXZ)

This is Geant4.9.2.p01 on Windows Xp with Cygwin and VC++ express edition 9.0. The same program worked fine with the previous Geant4.9.1.p02. It also works fine on Mac OS X and Linux, using the current Geant4.9.2.p01. I do not know what changed. I do not use the Win32 user interface (though I build it in Geant4, in case I decide to use it).

Note that I am using Coin, and must edit G4OpeninventorWin.cc to comment out lines 54-55 (omit calls to RemoveDispatcher(...) and AddDispatcher(...)). The offending call above is one line earlier.

I have a workaround: copy G4Win32.cc into my program's src directory. This forces it into the link, and all is well -- Open Inventor comes up and works fine. So this looks like a library ordering issue. Again, I do not know what changed.

NOTE: there are also a number of error messages like "the macro max requires 2 arguments but only 1 given". I never noticed them before. This happens whenever G4Win32.hh is #included and then DBL_MAX is used (the culprit is that it includes windows.h which does #define max(A,B)...). I hope the result is OK (seems to work)....

1 Question: Re: Open Inventor won't link on Windows   (garnier - 06 Apr, 2009)
(_ More: Re: Open Inventor won't link on Windows   (Tom Roberts - 08 Apr, 2009)
None DAWN INSTALLATION  by Ritika Garg <Ritika Garg>,   25 Mar, 2009
What is the command to know if DAWN is installed on my system? The system that I am working on is scientific linux.

1 None: Re: DAWN INSTALLATION   (Ritika Garg - 25 Mar, 2009)
(_ None: Re: DAWN INSTALLATION   (John Allison - 25 Mar, 2009)
(_ None: Re: DAWN INSTALLATION   (Ritika Garg - 29 Mar, 2009)
(_ None: Re: DAWN INSTALLATION   (John Allison - 30 Mar, 2009)
(_ None: OGLIX   (Ritika Garg - 09 Apr, 2009)
(_ None: Re: OGLIX   (John Allison - 09 Apr, 2009)
(_ None: Re: OGLIX   (Sebastien INCERTI - 09 Apr, 2009)
(_ None: Re: OGLIX   (Ritika Garg - 18 Apr, 2009)
(_ None: Re: OGLIX   (John Allison - 20 Apr, 2009)
(_ None: Re: OGLIX   (Ritika Garg - 21 Apr, 2009)
(_ None: Re: OGLIX   (John Allison - 21 Apr, 2009)
(_ None: Re: OGLIX   (Ritika Garg - 21 Apr, 2009)
(_ None: Re: OGLIX   (John Allison - 22 Apr, 2009)
(_ None: Re: OGLIX   (Ritika Garg - 22 Apr, 2009)
(_ None: Re: OGLIX   (John Allison - 22 Apr, 2009)
(_ None: Re: OGLIX   (Ritika Garg - 24 Apr, 2009)
(_ None: Re: OGLIX   (John Allison - 26 Apr, 2009)
(_ None: Re: OGLIX   (Ritika Garg - 26 Apr, 2009)
Question Open Inventor - add menu item(s)  by Tom Roberts <Tom Roberts>,   21 Mar, 2009
How can I add menu items of my own to the Open Inventor window?

I have in mind three types:
 a) executing some geant4 command, with arguments
 b) calling a C++ function I specify, perhaps as an instance of
    a class I derive from some OI callback class.
 c) a new top-level submenu containing items like the above.

And after executing it, how can I force re-drawing the viewer? (perhaps just a /vis/viewer/flush ?)

Question Open Inventor initial daughter visibility  by Tom Roberts <Tom Roberts>,   21 Mar, 2009
The open inventor viewer always starts with daughters being invisible. To make them visible, even in wireframe mode, one must select the menu item Etc/VisibleMothers+VisibleDaughters.

This has been a surprise to each and every one of my users who have systems with daughter volumes. I mention it in my User's Guide, but it still catches everyone. Please remember that not all users are Geant4 experts, and essentially none are Open Inventor experts.

Can this default be changed? Is there any way I can "push that menu item" in my program, before drawing?

Note that for OI, "/vis/viewer/set/culling coveredDaughters 0" has no effect. Ditto for setting it to 1.

1 None: Re: Open Inventor initial daughter visibility   (John Allison - 25 Mar, 2009)
Question Open Inventor IV ASCI file output  by Dragos Constantin <Dragos Constantin>,   13 Mar, 2009
Dear All, I try to import IV files into the Right Hemisphere - Deep View

(http://www.righthemisphere.com/products/deeppub/DeepPub_View/index.html)

This free viewer has the capability to load IV files (version 2.0 and 2.1). For example, it loads the IV files which come with Coin3D, i.e. the ASCII IV 2.1 files in this directory

$COINDIR/share/Coin/draggerDefaults

However, when I try to load the files saved by Open Inventor in Geant4 I get the following message:

"Scene Creation Failed. File may be corrupt"

I have changed the write mode from binary to ASCII in the Open Inventor driver in Geant4 and I get the same error.

I have compared what I obtain from Geant4 with the Coin3D files and the syntax seems to be close but I can't tell where the problem is. I principle Deep View should be able to parse the IV ASCII file but I believe that some tags in the Geant4 IV ASCII file are not compliant with the format.

My question(s): Where I can get a detailed description of the ASCII IV file format (version 2.1)? Is Geant4 interfering with the writing process in Open Inventor?

Thank you in advance, Dragos

1 Note: Re: Open Inventor IV ASCI file output   (Dragos Constantin - 19 Mar, 2009)
None Set photon trajectory Invisible in the Visualisation User Interface  by Olivier Dadoun <Olivier Dadoun>,   26 Feb, 2009
Hello,

I would like to set the photon trajectory in the Visualisation User Interface invisible .

In GUI such lines

/vis/modeling/trajectories/create/drawByParticleID

/vis/modeling/trajectories/drawByParticleID-0/default/setLineVisible false

will draw photon in grey

Does anyone can help me ?

by advance thank you

cheers

olivier

1 None: Re: Set photon trajectory Invisible in the Visualisation User Interface   (John Allison - 26 Feb, 2009)
(_ None: Re: Set photon trajectory Invisible in the Visualisation User Interface   (Olivier Dadoun - 26 Feb, 2009)
(_ None: Re: Set photon trajectory Invisible in the Visualisation User Interface   (John Allison - 26 Feb, 2009)
(_ None: Re: Set photon trajectory Invisible in the Visualisation User Interface   (Olivier Dadoun - 26 Feb, 2009)
Question Open Inventor for Mac OS X with Geant 4 9.2  by Thomas Zerguerras <Thomas Zerguerras>,   28 Jan, 2009
Hello,

I am looking for sources of Open Inventor for Mac OS X, I could use with Geant4 9.2. Some libraries like:

libInventor.dylib

libInventorXT.dylib

and header files like:

So.h

SoXt.h

are needed to compile in Geant4.

I tried on Google but I found no free sources to download on Mac OS X. Can you help me ?

Thanks a lot.

1 None: Re: Open Inventor for Mac OS X with Geant 4 9.2   (Tom Roberts - 28 Jan, 2009)
(_ Idea: Re: Open Inventor for Mac OS X with Geant 4 9.2   (garnier - 06 Feb, 2009)
Question Dawn invalid command name "frame"  by Lisandro Martinez <Lisandro Martinez>,   21 Jan, 2009
I am trying to get the visualization to work for Mulassis, an space application of Geant4.

Once I finally finish installing everything, I set up the environment, and run the soft; then I get the following output when trying to get the visualization to work.

***************************************
          Fukui  Renderer         
              DAWN                
 (Drawer for Academic WritiNgs)   
 ver 3.88a-GL   September 20, 2005
***************************************

***** g4.prim viewer mode (default)
***** ("dawn -h" for help)

invalid command name "frame"
    while executing
"frame   .top     -highlightthickness 0 -bg $bgcolor"
    (file "/usr/local/bin/DAWN_GUI" line 18)

Any ideas on how to solve this issue. I hope someone can help me. Thank you very much,

Lisandro

PS:I am running a MacOsX10.5.5

1 None: Re: Dawn invalid command name   (John Allison - 21 Jan, 2009)
(_ Question: Re: Dawn invalid command name   (Lisandro Martinez - 21 Jan, 2009)
(_ None: Re: Dawn invalid command name   (John Allison - 22 Jan, 2009)
(_ Sad: Re: Dawn invalid command name   (Lisandro Martinez - 22 Jan, 2009)
(_ None: Re: Dawn invalid command name   (John Allison - 22 Jan, 2009)
(_ None: Re: Dawn invalid command name   (Lisandro Martinez - 22 Jan, 2009)
(_ None: Re: Dawn invalid command name   (John Allison - 23 Jan, 2009)
None DAWN run problem - sh: line 1: display: command not found   by Or Chen <Or Chen>,   24 Dec, 2008
Hey,

I had installed DAWN, added the parent direcroty to my PATH and tried to test run it and got the following respond:

/dawn_3_88a 2/PRIM_DATA orchen$ ./dawn prim1.prim

***************************************
          Fukui  Renderer         
              DAWN                
 (Drawer for Academic WritiNgs)   
 ver 3.88a (Dev. indep. Mode)   September 20, 2005
***************************************

***** g4.prim viewer mode (default)
***** ("dawn -h" for help)

***** PostScrip file "prim1.eps" is created. sh: line 1: display: command not found

Did anyone came across this error?

Thanks' Or.

1 None: Re: DAWN run problem - sh: line 1: display: command not found   (Paul Nicholas Colin Gloster - 25 Dec, 2008)
Question trajectory visualization poblem  by Gergely Soti <Gergely Soti>,   10 Dec, 2008
Dear all,

I would like to visualize some of the interesting events in my simulation. I can do that by adding the appropriate commands (as pointed out to me by John Allison in the previous thread) in EventAction::EndOfEventAction:

void EventAction::EndOfEventAction(const G4Event* evt)
{
  G4int event_id = evt->GetEventID();
  if(event_id==1){ //here goes some testing
        G4EventManager* em = G4EventManager::GetEventManager();
        em->KeepTheCurrentEvent();
  }
}

This, combined with my vis.mac which goes like:

/vis/open HepRepFile
/vis/drawVolume
/vis/scene/add/trajectories
/run/beamOn 3
/vis/reviewKeptEvents

results in 4 files (3 from the 3 events requested in /run/beamOn) and the final one generated is the one I want. However, I don't need the previous 3 HepRep files. How can I prevent Geant from generating those? (my simulation would run with beamOn 10^9, and I wouldn't like that much HepRep files).

Any help would be appreciated!

Gergely
1 None: Re: trajectory visualization poblem   (Joseph Perl - 10 Dec, 2008)
(_ Ok: Re: trajectory visualization poblem   (Gergely Soti - 11 Dec, 2008)
Question OpenInventor Problem  by <bgastro@pmo.ac.cn>,   02 Dec, 2008
Dear all,

I have installed Geant4.9.0 and it works fine with OPENGLX, but I want to use OpenInventor so I downloaded the sgi-OpenInventor-devel-2.1.5-10.i386.tar.gz from the website ftp://oss.sgi.com/projects/inventor/download. After unpacking, I got the /usr directory in my home directory, then I checked the /usr and found that it has 3 sub-directory: /lib, /include, /man. Next, I went to the directory geant/geant4.9.0/source and type"gmake clean". After that, I rebuild the geant4 in geant4/geant4.9.0 as follows:

>  G4VIS_BUILD_OPENGLX_DRIVER
>  G4VIS_USE_OPENGLX
>
>It is an interface to the de facto standard 3D graphics library,
>OpenGL. It is well suited for real-time fast visualization
>and prototyping. The X11 version of the OpenGL libraries is
>required.
>[n] y
>
>  G4VIS_BUILD_OIX_DRIVER
>  G4VIS_USE_OIX
>
>The OpenInventor driver is based on OpenInventor technology 
>for scientific visualization.
>The X11 version of OpenInventor is required.
>[n] y
>
>  OIVHOME/include
>  OIVHOME/lib
>
>You have selected to use OpenInventor driver.
>Specify the correct path (OIVHOME) where OpenInventor is installed in your >system.
>It was found in /usr. Press [Enter] to set this path or type the correct one.
>
>You can set '-' (without quotation) to CANCEL the OpenInventor flag at all: 
>[/usr] /home/baogang/usr

During the build process about G4OpenInventor, I ran into some problems as follows:

>Making dependency for file src/G4OpenInventorXtViewer.cc ...
>In file included from /home/baogang/usr/include/Inventor/Xt/SoXt.h:59,
>                 from src/G4OpenInventorXtViewer.cc:49:
>/usr/include/Xm/Xm.h:59:34: error: X11/extensions/Print.h: No such file or directory
>Making dependency for file src/G4OpenInventorXt.cc ...
>In file included from /home/baogang/usr/include/Inventor/Xt/SoXt.h:59,
>                 from src/G4OpenInventorXt.cc:39:
>/usr/include/Xm/Xm.h:59:34: error: X11/extensions/Print.h: No such file or directory
>Compiling G4OpenInventor.cc ...
>/home/baogang/usr/include/Inventor/SoPath.h:343: error: ‘SoTempPath’ has not been declared
>/home/baogang/CLHEP/include/CLHEP/Units/PhysicalConstants.h:78: warning: >‘CLHEP::electron_charge’ defined but not used
>gmake[2]: *** >[/home/baogang/geant4/geant4.9.0/tmp/Linux-g++/G4OpenInventor/G4OpenInventor.o] >Error 1
>gmake[1]: *** [granular] Error 2
>Building library management utility liblist ...
>/tmp/ccF6Epfg.o: In function `main':
>liblist.c:(.text+0x3d1): warning: the `gets' function is dangerous and should >not be used.
>Libmap stage. Searching for GNUmakefiles and sorting ...
>Weeding out paths and files ...
>Making libname.map starter file ...
>Making libname.map ...
>Reading library name map file...
>Reading dependency files...
>Checking for circular dependencies...
>Reordering according to dependencies...
>Writing new library map file...
>Libraries installation completed !
>
>############################################################
># It looks like you had errors during Geant4 installation   
># (or interrupted installation)!                                  
># Please check log file:                                          
># /home/baogang/geant4/geant4.9.0/.config/bin/Linux-g++/g4make.log               
>############################################################

Can anyone help me?

Thanks in advance.

1 None: Re: OpenInventor Problem   (John Allison - 03 Dec, 2008)
(_ Question: Re: OpenInventor Problem   (bgastro@pmo.ac.cn - 05 Dec, 2008)
(_ None: Re: OpenInventor Problem   (John Allison - 05 Dec, 2008)
(_ None: Re: OpenInventor Problem   (bgastro@pmo.ac.cn - 08 Dec, 2008)
Question Colour on SOLID surface in Heprep file  by Anil <Anil>,   17 Nov, 2008
Dear all,

I am trying to give blue colour to the surface of whole hexagon. I am using following syntax in detector construction class

G4VisAttributes* HexVisAtt = new G4VisAttributes(true,G4Colour(0.0,0.0,1.0));

HexVisAtt->SetForceSolid(true);

Hex_log->SetVisAttributes(HexVisAtt);

and I am using following commands to create a .heprep file

/vis/open HepRepFile

/vis/drawVolume

/vis/scene/add/trajectories

/vis/scene/add/hits

/run/beamOn 1

Even then, it is creating wireframe hexagon, but not the surface. Do I need to use more commands to see my geometry in surface with given colour? Please help me.

sincerely,

Anil

1 None: Re: Colour on SOLID surface in Heprep file   (Joseph Perl - 17 Nov, 2008)
Question Stack smashing in DAWN  by Jamie Wright <Jamie Wright>,   13 Nov, 2008
Dear all, I have DAWN installed correctly I think. When I start it up I get the GUI coming up. However when I click OK to view the prim file in GhostView the cmmand line interface returns "stack smashing detected" and aborts DAWN. Any suggestions on what is occuring would be most welcome Thanks Jamie

Question How to install Open Inventor?  by <bgastro@pmo.ac.cn>,   03 Nov, 2008
Dear all,

I have installed Geant4.9.0 following the Installation Guides at http://geant4.slac.stanford.edu/installation/. Now I am considering to use the Open Inventor. I have downloaded the file "sgi-OpenInventor-devel-2.1.5-10.i386.tar.gz", but I don't know how to install it?

Please tell me the detail.

Thanks a lots in advance.

bgastro

1 None: Re: How to install Open Inventor?   (John Allison - 04 Nov, 2008)
Question A problem about HepRapp  by <yfdeng@student.dlut.edu.cn>,   11 Sep, 2008
Hello everyone,
   I have a problem with HepRApp. When I use HepRApp to open the heprep file, the size of the file can't be so large,
(about 40M). If the file size larger than 40M, the HepRApp says "low memery". So I try to gzip the heprep file, yes, 
the original file size is largely reduced. However, the HepRApp still can't open the gzip file due to the same reason(low memery).
   Does it mean that HepRApp can't open a heprep file whose size larger that about 40M? But in my work, I really
desire that a much larger file can be open. So how to solve the problem?
  My OS is Microsoft Windows, HepRApp version is 3.15.0, and a suitable java version has been installed.
   Thank you. Best regards!  

   Yongfeng Deng

1 None: Re: A problem about HepRapp   (Joseph Perl - 11 Sep, 2008)
(_ None: Re: A problem about HepRapp   (yfdeng@student.dlut.edu.cn - 11 Sep, 2008)
(_ None: Re: A problem about HepRapp   (Joseph Perl - 11 Sep, 2008)
(_ None: Re: A problem about HepRapp   (yfdeng@student.dlut.edu.cn - 11 Sep, 2008)
Question I cannot create SOLID Volumes with DAWN  by Giulia De Bonis <Giulia De Bonis>,   29 Aug, 2008
Dear all,

I am using DAWN.
In MyDetectorConstruction I set some visualization attributes, as the following:
G4VisAttributes* screenAttributes = new G4VisAttributes (G4Colour(0.5,0.5,0.5,1.0));
screenAttributes->SetForceSolid(true);
screen_log->SetVisAttributes(screenAttributes);
Apparentely, this is not enough to make the screen SOLID.
Therefore, in my Visualization Macro, I set the following:
/vis/geometry/set/forceSolid screen_log
But it doesn't work.

I see that I get a SOLID screen if visualization is operated with OGLIX: /vis/open OGLIX

Is it a normal behaviour?

Thank you for your help,
Giulia
1 None: Re: I cannot create SOLID Volumes with DAWN   (John Allison - 29 Aug, 2008)
(_ More: Re: I cannot create SOLID Volumes with DAWN   (Giulia De Bonis - 30 Aug, 2008)
(_ None: Re: I cannot create SOLID Volumes with DAWN   (John Allison - 30 Aug, 2008)
None setting OGLXM on Suse Linux 10.3  by M. Tariq Siddique <M. Tariq Siddique>,   11 Aug, 2008
hello, i am new in using geant4 i have installed geant4.9.0p01 on Suse Linux 10.3 it works fine with OGLX but now i have tried to set OGLXM during geant4 configuration and i got the following problem.

> G4VIS_BUILD_OPENGLX_DRIVER
> G4VIS_USE_OPENGLX
>
> It is an interface to the de facto standard 3D graphics library,
> OpenGL. It is well suited for real-time fast visualization
> and prototyping. The X11 version of the OpenGL libraries is
> required.
> EOM
> [n] y
>
> G4VIS_BUILD_OPENGLXM_DRIVER
> G4VIS_USE_OPENGLXM
>
> It is an interface to the de facto standard 3D graphics library,
> OpenGL. It is well suited for real-time fast visualization
> and prototyping. The X11 version of the OpenGL libraries and
> the Motif Xm extension is required.
>
> [n] y
>
> You have selected to use OPENGLXM driver.
> But it was not found in expected place.
> Please specify the correct path where Xm is installed in your system.
>
> You can set '-' (without quotation) to CANCEL the XM flag at all:
>

can any one give some clue i have installed the openmotif 2.3.0 and it is already present in the Suse linux 10.3

1 None: Re: setting OGLXM on Suse Linux 10.3   (John Allison - 24 Aug, 2008)
None OpenInventor on Windows - compile error  by Tom Roberts <Tom Roberts>,   07 Aug, 2008
There's a compilation error in G4OpenInventorWin.cc:
 GetInteractorManager () -> RemoveDispatcher((G4DispatchFunction)G4Win32::dispatchWin32Event);
 GetInteractorManager () -> AddDispatcher((G4DispatchFunction)SoWin::dispatchEvent);

This is using Coin, compiled from source. I don't know if the real OpenInventor will let this compile. Is there some preprocessor macro to distinguish them?

I just commented out these two lines, and it works just fine, for both simple and complex systems.

Using Geant4 9.1.p02 resolves the issues I have reported earlier in this forum. But see bug report 1018 for a workaround of a frequent crash in the QGSP physics list.

Question trajectory visualization - GetTrajectoryContainer problem  by Gergely Soti <Gergely Soti>,   07 Aug, 2008
Hi All,

I would like to visualize some of the interesting events in my simulation. I used the code for drawing tracks from the BookForAppliDev.pdf - the "official" documentation. It is very similar to the extended example optical/LXe (geant 4.9.1 p02). The problem seems to be in the EventAction::EndOfEventAction procedure:

void ExN03EventAction::EndOfEventAction(const G4Event* evt)
{
.....
if (G4VVisManager::GetConcreteInstance()){
  G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
  G4int n_trajectories = 0;

//the problem is at the next line
  if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
//since the former condition is false, the n_trajectories remains 0

    for (G4int i=0; i < n_trajectories; i++){ 
      G4Trajectory* trj=(G4Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);
      trj->DrawTrajectory(50);
    }
}
} 

It seems that the condition is never true, and that the trajectoryContainer is not initialized so it never goes into the loop of drawing the trajectories.

I don't know if anything else is needed besides the EventAction.cc and hh files in order for this to work. I started my simulation from a basic example and maybe I am missing an important piece of code which says not to delete the tracks.

Thanks in advance, Gergely

1 Idea: Re: trajectory visualization - GetTrajectoryContainer problem   (Juan - 07 Aug, 2008)
2 None: Re: trajectory visualization - GetTrajectoryContainer problem   (John Allison - 07 Aug, 2008)
3 More: Re: trajectory visualization - GetTrajectoryContainer problem   (Gergely Soti - 07 Aug, 2008)
1 None: Re: trajectory visualization - GetTrajectoryContainer problem   (John Allison - 07 Aug, 2008)
1 Ok: Re: trajectory visualization - GetTrajectoryContainer problem   (Gergely Soti - 08 Aug, 2008)
2 News: Re: trajectory visualization - GetTrajectoryContainer problem   (Gergely Soti - 08 Aug, 2008)
... 1 Message(s)
Question Left-handed coordinate system in visualization?  by Timur Sahin <Timur Sahin>,   04 Aug, 2008
Hi,

I'm having an issue with what I believe is the visualization in my Geant4 application. When I open up my HepRepFile in WIRED, I see that the coordinate system is left-handed, or flipped as such:

      y
      |
      |
      |_______ x
     /
    /
   /
  -z

Indeed, I can check for this by changing the gun direction or position, and each time I find the above system. This includes those examples that come with Geant (the novice examples, etc.).

I was wondering what could cause this, and how to fix it.

Thanks, Timur

1 None: Re: Left-handed coordinate system in visualization?   (Joseph Perl - 04 Aug, 2008)
(_ None: Re: Left-handed coordinate system in visualization?   (Timur Sahin - 04 Aug, 2008)
Question DAWN run problem - sh: line 1: DAWN_GUI: command not found  by Or Chen <Or Chen>,   01 Aug, 2008
Hey,

I usualy use HepRep inorded to view complex geometry.

I saw that DAWN is a rather comon thing here so I had just installed it, and when I tried to test it I got the following respond:

/dawn_3_88a 2/PRIM_DATA orchen$ ../dawn primitives.prim

***************************************
          Fukui  Renderer         
              DAWN                
 (Drawer for Academic WritiNgs)   
 ver 3.88a (Dev. indep. Mode)   September 20, 2005
***************************************

***** g4.prim viewer mode (default)
***** ("dawn -h" for help)

sh: line 1: DAWN_GUI: command not found

Did anyone came across this error?

Thanks' Or.

1 None: Re: DAWN run problem - sh: line 1: DAWN_GUI: command not found   (Joseph Perl - 01 Aug, 2008)
(_ None: Re: DAWN run problem - sh: line 1: DAWN_GUI: command not found   (Or Chen - 01 Aug, 2008)
(_ None: Re: DAWN run problem - sh: line 1: DAWN_GUI: command not found   (John Allison - 02 Aug, 2008)
Question How to move the camera. OGLIX  by Marcin Kasztelan <Marcin Kasztelan>,   30 Jul, 2008
Hello.

It is possible to move camera in OGLIX to other place in geometry. Can I change point of view? I`m looking for that possibility but i can`t find right command.

My geometry is a hole in ground and I would like to move there my camera and visualise detector witch is there.

Or it is possible to remove 2-3 sides of BOX in fisualisation? Then i`ll see what is inside that box.

Off course in wireframe i see everything but I want to see geometry in SOLID mode.

Thanks

Marcin Kasztelan

1 None: Re: How to move the camera. OGLIX   (Joseph Perl - 01 Aug, 2008)
(_ Sad: Re: How to move the camera. OGLIX   (Marcin Kasztelan - 07 Aug, 2008)
(_ None: Re: How to move the camera. OGLIX   (John Allison - 07 Aug, 2008)
Question A problem with visualizing union solids on HepRep.  by Or Chen <Or Chen>,   26 Jul, 2008
Hey,

I'm trying to visualize a sample hose which I'm building as two union solids. When trying to create a HepRep file I get the following error:

BooleanProcessor::execute : unknown faces !!!
BooleanProcessor: boolean operation failed

I had search the forum and learned that it's a known problems with unions. My question is, because my geometry is pretty simple perhaps you could take a look at the code and see if there's a way to fix it?

the relevant code part is:

//------------------------------------------------------------------ Upper PVC

_upperPVC_Box = new G4Box("UpperPVC_box",_PvcSize, _PvcSize, 2*(_metalTubeWidth+_airTubeWidth));

G4Tubs* tmpTube = new G4Tubs ("metalTube", 0, _metalTubeRadius, _metalTubeWidth+_airTubeWidth, 0, 2*pi); _upperPVC = new G4SubtractionSolid("UpperPVC", _upperPVC_Box, tmpTube, G4Transform3D (G4RotationMatrix(), G4ThreeVector(0. ,0. , (_metalTubeWidth+_airTubeWidth))));

_upperPVC_log = new G4LogicalVolume(_upperPVC, _metalTube_mat,"_upperPVC_log",0,0,0);

G4RotationMatrix* rot = new G4RotationMatrix();

rot->rotateY(pi);

_upperPVC_phys = new G4PVPlacement(rot, G4ThreeVector(0, 0, 2*(_metalTubeWidth+_airTubeWidth)+_nylonTubeWidth), _upperPVC_log,"UpperPVC",_experimentalHall_log,false,0);

//------------------------------------------------------------------ Lower PVC

_lowerPVC_Box = new G4Box("LowerPVC_box",_PvcSize, _PvcSize, 2*(_metalTubeWidth+_airTubeWidth+_nylonTubeWidth));

G4Tubs* tmpTubeC = new G4Tubs ("lometalTube", 0, _metalTubeRadius, _metalTubeWidth+_airTubeWidth+_nylonTubeWidth, 0, 2*pi); _lowerPVC = new G4SubtractionSolid("LowerPVC", _lowerPVC_Box, tmpTubeC, G4Transform3D (G4RotationMatrix(), G4ThreeVector(0. ,0. , (_metalTubeWidth+_airTubeWidth+_nylonTubeWidth))));

G4Tubs* tmpTubeA = new G4Tubs("d", _metalTubeRadius, (_torusInnerRadius _torusRadius-_airRingWidth), _airTubeWidth+_nylonTubeWidth, 0, 2 * pi); _lowerPVC = new G4SubtractionSolid("LowerPVC", _lowerPVC, tmpTubeA, G4Transform3D (G4RotationMatrix(), G4ThreeVector(0. ,0. , (_airTubeWidth+_nylonTubeWidth))));

G4Tubs* tmpTubeB = new G4Tubs("d", (_torusInnerRadius-_torusRadius-_airRingWidth), (_torusInnerRadius+_torusRadius), _torusRadius+_nylonTubeWidth, 0, 2 * pi); _lowerPVC = new G4SubtractionSolid("LowerPVC", _lowerPVC, tmpTubeB, G4Transform3D (G4RotationMatrix(), G4ThreeVector(0. ,0. , (_torusRadius+_nylonTubeWidth))));

_lowerPVC_log = new G4LogicalVolume(_lowerPVC, _metalTube_mat,"_lowerPVC_log",0,0,0);

_lowerPVC_phys = new G4PVPlacement(0, G4ThreeVector(0, 0, -2*(_metalTubeWidth+_airTubeWidth)-_nylonTubeWidth), _lowerPVC_log,"LowerPVC",_experimentalHall_log,false,0);

Thanks, Or.

1 None: Re: A problem with visualizing union solids on HepRep.   (John Allison - 27 Jul, 2008)
(_ None: Re: A problem with visualizing union solids on HepRep.   (Or Chen - 27 Jul, 2008)
(_ None: Re: A problem with visualizing union solids on HepRep.   (John Allison - 02 Aug, 2008)
None OpenSceneGraph visualization driver for Geant4  by Charles Cosse <Charles Cosse>,   19 Jul, 2008
Hello,

I am developing a driver to integrate Geant4 with OpenSceneGraph. It is currently not part of either system, but hopefully it will become part of one, of both, soon.

It allows you to build Geant4 applications which use OpenSceneGraph for rendering, and (optionally) either Motif or wxWidget widgets. At this point the G4OSGSceneHandler is only partially implemented. The focus so-far has been getting the various graphics systems involved to coexist nicely.

A few months ago I exchanged some emails with folks in the visualization group, ie John Allison, Joseph Perl and Guy Barrand. By posting this I am hoping to find other people interested to help with developemnt.

There is currently a webpage with info and downloadable package here: http://www.asymptopia.org/index.php?topic=G4OSG

Thanks, Charles Cosse

Question Time slicing, movies and EPS printing  by Daniel Egger <Daniel Egger>,   18 Jul, 2008
Hello Geant4 users,

I'm trying to reproduce an animation like in exampleN03 using exN03Vis12.mac I've adapted the macro to my simulation. I am shoting Sn82 particles into a PPAC and an IC. However when I run the adapted version of the macro file, I do note see the beam progress on the screen. All I see is a static track of Sn82 and the green LightFront progressing with time. I am assuming that the beam is run befor the .loop and not during the loop. Does anyone know why? Do I have to implement TrackingAction and Trajectory clesses (it doesn't seem to be done in examleN03)?

Here is the macro file I am using (the .loop file is the same as in the example):

#############

/control/verbose 2

/vis/verbose confirmations

/vis/open OGLSX

/vis/drawVolume

/vis/scene/add/eventID

/vis/scene/add/trajectories rich

/vis/viewer/set/viewpointThetaPhi 70 120

# Set up drawByCharge with time slicing

/vis/modeling/trajectories/create/drawByCharge

/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true

/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 5

/vis/modeling/trajectories/drawByCharge-0/default/setDrawAuxPts true

/vis/modeling/trajectories/drawByCharge-0/default/setAuxPtsSize 5

/vis/modeling/trajectories/drawByCharge-0/default/setTimeSliceInterval 0.001 ns

/vis/modeling/trajectories/list

/run/beamOn

# Configure OpenGL for display-by-time

/vis/ogl/set/fade 1

/vis/ogl/set/displayHeadTime true

/control/alias timeRange 0.1

/vis/verbose warnings

/control/verbose 0

/control/loop FPdetector.loop startTime -{timeRange} 0.7 0.005

/control/verbose 2

/vis/verbose confirmations

/vis/ogl/set/displayHeadTime false

# Set up drawByParticleID with time slicing

/vis/modeling/trajectories/create/drawByParticleID

/vis/modeling/trajectories/drawByParticleID-0/set e- red

/vis/modeling/trajectories/drawByParticleID-0/set e+ blue

/vis/modeling/trajectories/drawByParticleID-0/set Se82[0.0] blue

#/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true

/vis/modeling/trajectories/drawByParticleID-0/default/setStepPtsSize 5

#/vis/modeling/trajectories/drawByParticleID-0/default/setDrawAuxPts true

/vis/modeling/trajectories/drawByParticleID-0/default/setAuxPtsSize 5

/vis/modeling/trajectories/drawByParticleID-0/default/setTimeSliceInterval 0.001 ns

/vis/modeling/trajectories/list

# Remove gammas

/vis/filtering/trajectories/create/particleFilter

/vis/filtering/trajectories/particleFilter-0/add gamma

/vis/filtering/trajectories/particleFilter-0/invert true

/gps/energy 450 MeV

/gps/particle ion

/gps/ion 34 82 27 0

/gps/direction 0 0 1

/run/beamOn

/control/alias timeRange 0.1

/vis/ogl/set/displayHeadTime true

/vis/ogl/set/displayLightFront true -90 0 0 mm

/vis/verbose warnings

/control/verbose 0

/control/loop FPdetector.loop startTime -{timeRange} 0.7 0.001

/control/verbose 2

/vis/verbose confirmations

/vis/ogl/set/displayLightFront false

/vis/ogl/set/displayHeadTime false

# 3rd test /gps/particle e-

#/vis/filtering/trajectories/particleFilter-0/add e-
#/vis/filtering/trajectories/particleFilter-0/add e+

# Accumulate several events for effect
# /vis/scene/endOfEventAction accumulate
/gps/energy 100 MeV #/vis/viewer/set/globalLineWidthScale 2

/run/beamOn

/control/alias timeRange 1000

/vis/ogl/set/displayHeadTime true

/vis/verbose warnings

/control/verbose 0

/control/loop FPdetector.loop startTime -{timeRange} 3000 5

/control/verbose 2

/vis/verbose confirmations

#########

Also sometimes when I print .eps files using /vis/ogl/printEPS it messes up the eps file, I have different parts of the geometry overlaping (in the code they do not), any ideas?

Thank you for your help.

1 None: Re: Time slicing, movies and EPS printing   (John Allison - 21 Jul, 2008)
(_ Question: Re: Time slicing, movies and EPS printing   (Daniel Egger - 22 Jul, 2008)
(_ None: Re: Time slicing, movies and EPS printing   (John Allison - 22 Jul, 2008)
(_ None: Re: Time slicing, movies and EPS printing   (Daniel Egger - 22 Jul, 2008)
Question How to get and install the shared library: libstdc++-libc6.1-1.so.2  by Facundo Ballester <Facundo Ballester>,   09 Jul, 2008
could someone suggest me how to get and install the shared library:libstdc++-libc6.1-1.so.2, to run the vmrlview (in GEANT4) in a Ubuntu environment of LINUX. I tried to run vrmlview, and it is not running, indicating that the above mentioned librry is missing, and it is not a part of UBUNTU Linux library.

Thanks.

1 Idea: Re: How to get and install the shared library: libstdc++-libc6.1-1.so.2   (Begin - 09 Jul, 2008)
Question problem with DAWN/DAWNCUT  by Aram Teymurazyan <Aram Teymurazyan>,   17 Jun, 2008
Hi,

I am having a problem with dawncut. It does not show all the parts inside the detector.

For comparison i have attached openGL and DAWN versions of the same cross-section.

The central part of the detector appears to be white on the dawncut version,

and I cannot figure out why! Any idea what I might be doing wrong?

Thanks in advance, -Aram.

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2008/06/16/23.55-39998-g4_04c.pdf
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2008/06/16/23.55-3410-openGL.pdf

1 None: Re: problem with DAWN/DAWNCUT   (John Allison - 17 Jun, 2008)
(_ None: Re: problem with DAWN/DAWNCUT   (Aram Teymurazyan - 17 Jun, 2008)
(_ None: Re: problem with DAWN/DAWNCUT   (John Allison - 18 Jun, 2008)
(_ None: Re: problem with DAWN/DAWNCUT   (Aram Teymurazyan - 18 Jun, 2008)
None Dawn is Smashing my Stacks  by Sean Kirkwood <Sean Kirkwood>,   28 May, 2008
Hi,

I am trying to visualize with DAWN by creating a DAWNFILE and then
visualizing "offline" by:
dawn g4_00.prim

I get a window no problem (having installed ActiveTcl8.5 now rather than
the default Kubuntu versions of Tcl and Tk), but when I hit "Ok", Dawn
is stack smashing.

I have all the environment variables set, I even put in ActiveTcl via
another poster's problems, but my stacks still get smashed like this:

Does anyone have any other suggestions since this output is rather
meaningless to me?

Thanks,
Sean


=======================
*** stack smashing detected ***: dawn terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7b63138]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7b630f0]
dawn[0x80591f6]
dawn[0x80918a3]
dawn[0x804bbce]
dawn(__gxx_personality_v0+0x29e)[0x8049db6]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7a8c450]
dawn(__gxx_personality_v0+0xa9)[0x8049bc1]
======= Memory map: ========
08048000-080a9000 r-xp 00000000 08:02 3506285    /usr/local/bin/dawn
080a9000-080aa000 rw-p 00060000 08:02 3506285    /usr/local/bin/dawn
080aa000-080cc000 rw-p 080aa000 00:00 0          [heap]
b70f1000-b7155000 rw-p b70f1000 00:00 0
b7155000-b7159000 r-xp 00000000 08:02 3359816    /usr/lib/libXdmcp.so.6.0.0
b7159000-b715a000 rw-p 00003000 08:02 3359816    /usr/lib/libXdmcp.so.6.0.0
b715a000-b715b000 rw-p b715a000 00:00 0
b715b000-b7172000 r-xp 00000000 08:02 3358915    /usr/lib/libxcb.so.1.0.0
b7172000-b7173000 rw-p 00016000 08:02 3358915    /usr/lib/libxcb.so.1.0.0
b7173000-b7174000 r-xp 00000000 08:02 3359382    /usr/lib/libxcb-xlib.so.0.0.0
b7174000-b7175000 rw-p 00000000 08:02 3359382    /usr/lib/libxcb-xlib.so.0.0.0
b7175000-b7177000 r-xp 00000000 08:02 3358865    /usr/lib/libXau.so.6.0.0
b7177000-b7178000 rw-p 00001000 08:02 3358865    /usr/lib/libXau.so.6.0.0
b7178000-b718d000 r-xp 00000000 08:02 3358913    /usr/lib/libICE.so.6.3.0
b718d000-b718e000 rw-p 00014000 08:02 3358913    /usr/lib/libICE.so.6.3.0
b718e000-b7190000 rw-p b718e000 00:00 0
b7190000-b7197000 r-xp 00000000 08:02 3360744    /usr/lib/libSM.so.6.0.0
b7197000-b7198000 rw-p 00006000 08:02 3360744    /usr/lib/libSM.so.6.0.0
b7198000-b7199000 rw-p b7198000 00:00 0
b7199000-b71e6000 r-xp 00000000 08:02 3360822    /usr/lib/libXt.so.6.0.0
b71e6000-b71ea000 rw-p 0004c000 08:02 3360822    /usr/lib/libXt.so.6.0.0
b71ea000-b71ec000 r-xp 00000000 08:02 1918939    /lib/tls/i686/cmov/libdl-2.7.so
b71ec000-b71ee000 rw-p 00001000 08:02 1918939    /lib/tls/i686/cmov/libdl-2.7.so
b71ee000-b71ef000 r-xp 00000000 08:02 3360313    /usr/lib/libnvidia-tls.so.96.43.05
b71ef000-b71f0000 rw-p 00000000 08:02 3360313    /usr/lib/libnvidia-tls.so.96.43.05
b71f0000-b7a3d000 r-xp 00000000 08:02 3359893    /usr/lib/libGLcore.so.96.43.05
b7a3d000-b7a72000 rwxp 0084d000 08:02 3359893    /usr/lib/libGLcore.so.96.43.05
b7a72000-b7a76000 rwxp b7a72000 00:00 0
b7a76000-b7bbf000 r-xp 00000000 08:02 1918936    /lib/tls/i686/cmov/libc-2.7.so
b7bbf000-b7bc0000 r--p 00149000 08:02 1918936    /lib/tls/i686/cmov/libc-2.7.so
b7bc0000-b7bc2000 rw-p 0014a000 08:02 1918936    /lib/tls/i686/cmov/libc-2.7.so
b7bc2000-b7bc6000 rw-p b7bc2000 00:00 0
b7bc6000-b7bd0000 r-xp 00000000 08:02 1884284    /lib/libgcc_s.so.1
b7bd0000-b7bd1000 rw-p 0000a000 08:02 1884284    /lib/libgcc_s.so.1
b7bd1000-b7bf4000 r-xp 00000000 08:02 1918940    /lib/tls/i686/cmov/libm-2.7.so
b7bf4000-b7bf6000 rw-p 00023000 08:02 1918940    /lib/tls/i686/cmov/libm-2.7.so
b7bf6000-b7cde000 r-xp 00000000 08:02 3359762    /usr/lib/libstdc++.so.6.0.9
b7cde000-b7ce1000 r--p 000e8000 08:02 3359762    /usr/lib/libstdc++.so.6.0.9
b7ce1000-b7ce3000 rw-p 000eb000 08:02 3359762    /usr/lib/libstdc++.so.6.0.9
b7ce3000-b7ce9000 rw-p b7ce3000 00:00 0
b7ce9000-b7dcd000 r-xp 00000000 08:02 3359825    /usr/lib/libX11.so.6.2.0
b7dcd000-b7dd0000 rw-p 000e4000 08:02 3359825    /usr/lib/libX11.so.6.2.0
b7dd0000-b7ddd000 r-xp 00000000 08:02 3359726    /usr/lib/libXext.so.6.4.0
b7ddd000-b7dde000 rw-p 0000d000 08:02 3359726    /usr/lib/libXext.so.6.4.0
b7dde000-b7df3000 r-xp 00000000 08:02 3358774    /usr/lib/libXmu.so.6.2.0
b7df3000-b7df4000 rw-p 00015000 08:02 3358774    /usr/lib/libXmu.so.6.2.0
b7df4000-b7df5000 rw-p b7df4000 00:00 0
b7df5000-b7e66000 r-xp 00000000 08:02 3359801    /usr/lib/libGL.so.96.43.05
b7e66000-b7e80000 rwxp 00070000 08:02 3359801    /usr/lib/libGL.so.96.43.05
b7e80000-b7e81000 rwxp b7e80000 00:00 0
b7e81000-b7f03000 r-xp 00000000 08:02 5832820    /usr/lib/libGLU.so.1.3.070002
b7f03000-b7f04000 rw-p 00081000 08:02 5832820    /usr/lib/liAborted
======================
1 None: Re: Dawn is Smashing my Stacks   (Oliver Diaz - Nov 15, 09:38) new
(_ None: Re: Dawn is Smashing my Stacks   (Joseph Perl - Nov 15, 13:02) new
None Cylinder distorts in Raytracer  by mitzi boswell <mitzi boswell>,   05 May, 2008

I am trying to visualize my geometry in Raytracer. The geometry is very complicated and involves a lot of boolean operations that fail on other programs.

Essentially the geometry is a hollow cylinder. when i visualize it at an angle in raytracer it appears wavy, not at all circular or cylindrical. it almost looks like a dog muzzle. I don't understand why this is happening. In dawn, the structure looks like a cut-out cylinder, although all of the parts don't show up. So I don't think that it is a coding problem.

My second problem involves the background color. On previous versions of Geant I was able to set the background color, these commands no longer work. It is permanently a black background in raytracer. Am I doing something wrong?

thanks

mitzi

1 None: Re: Cylinder distorts in Raytracer   (Joseph Perl - 05 May, 2008)
None OpenScientist Build Errors!  Keywords: Openscientist build compile geant4
by Victor Gabriel <Victor Gabriel>,   03 May, 2008

Hello,

I am trying to install OpenScientist for visualization.

I have some errors during instalation.

see those erros in my terminal:

[root@localhost obuild]# cd /home/victor/opensci/OpenScientist/v16r4/osc_g4/v16r4/obuild
[root@localhost obuild]# . ./setup.sh
[root@localhost obuild]# chmod a+x sh/build
[root@localhost obuild]# ./sh/build
build obuild/v1r3p0 ...
build foreign/v1r3p0 ...
build zlib/v1r114p6 ...
build zip/v1r101p0 ...
build expat/v1r11p8 ...
build Slash/v1r1p1 ...
build Lib/v8r2p1 ...
y.tab.c: In function ‘int Processor_parse()’:
y.tab.c:874: warning: deprecated conversion from string constant to ‘char*’
y.tab.c:1972: warning: deprecated conversion from string constant to ‘char*’
y.tab.c: In function ‘int Columns_parse()’:
y.tab.c:568: warning: deprecated conversion from string constant to ‘char*’
y.tab.c:1039: warning: deprecated conversion from string constant to ‘char*’
y.tab.c: In function ‘int FortranFormat_parse()’:
y.tab.c:730: warning: deprecated conversion from string constant to ‘char*’
y.tab.c:1153: warning: deprecated conversion from string constant to ‘char*’
build HCL/v7r0p2 ...
build Midnight/v4r0p2 ...
build Minuit/v1r140p6 ...
build Rio/v8r0p1 ...
build HDF5/v1r165p5 ...
../src/H5Tconv.c: In function ‘H5T_conv_uchar_short’:
../src/H5Tconv.c:3927: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:3927: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:3927: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:3927: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:3927: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:3927: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:3927: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:3927: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c: In function ‘H5T_conv_uchar_int’:
../src/H5Tconv.c:4056: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4056: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4056: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4056: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4056: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4056: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4056: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4056: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c: In function ‘H5T_conv_uchar_long’:
../src/H5Tconv.c:4185: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4185: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4185: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4185: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4185: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4185: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4185: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4185: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c: In function ‘H5T_conv_uchar_llong’:
../src/H5Tconv.c:4317: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4317: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4317: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4317: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4317: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4317: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4317: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4317: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c: In function ‘H5T_conv_ushort_int’:
../src/H5Tconv.c:4647: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4647: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4647: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4647: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4647: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4647: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4647: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4647: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c: In function ‘H5T_conv_ushort_long’:
../src/H5Tconv.c:4779: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4779: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4779: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4779: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4779: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4779: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4779: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4779: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c: In function ‘H5T_conv_ushort_llong’:
../src/H5Tconv.c:4911: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4911: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4911: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4911: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4911: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4911: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4911: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:4911: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c: In function ‘H5T_conv_uint_llong’:
../src/H5Tconv.c:5496: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:5496: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:5496: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:5496: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:5496: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:5496: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:5496: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:5496: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c: In function ‘H5T_conv_ulong_llong’:
../src/H5Tconv.c:6079: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:6079: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:6079: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:6079: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:6079: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:6079: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:6079: warning: comparison is always false due to limited range of data type
../src/H5Tconv.c:6079: warning: comparison is always false due to limited range of data type
../src/H5V.c: In function ‘H5V_hyper_disjointp’:
../src/H5V.c:413: warning: comparison is always true due to limited range of data type
../src/H5V.c:414: warning: comparison is always true due to limited range of data type
build BatchLab/v1r2p1 ...
build UseAIDA/v1r0p5 ...
build osc_source/v16r4 ...
build png/v1r1216p3 ...
build jpeg/v1r62p3 ...
build dvi2bitmap/v1r0132p3 ...
../applications/fontGeneration.cc: In function ‘int main(int, char**)’:
../applications/fontGeneration.cc:42: warning: deprecated conversion from string constant to ‘char*’
build freetype2/v1r219p2 ...
../src/pshinter/pshrec.c: In function ‘ps_dimension_set_mask_bits’:
../src/pshinter/pshrec.c:631: warning: passing argument 2 of ‘ps_mask_table_set_bits’ discards qualifiers from pointer target type
../src/smooth/ftgrays.c: In function ‘gray_raster_reset’:
../src/smooth/ftgrays.c:2141: warning: passing argument 2 of ‘gray_init_cells’ discards qualifiers from pointer target type
build CoinGL/v1r250p0 ...
In file included from /home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/system/gl.h:38,
                 from /home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:39,
                 from ../src/glue/GLUWrapper.c:35:
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/system/gl-headers.h:49:19: error: GL/gl.h: Arquivo ou diretório năo encontrado
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/system/gl-headers.h:50:20: error: GL/glu.h: Arquivo ou diretório năo encontrado
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/system/gl-headers.h:51:22: error: GL/glext.h: Arquivo ou diretório năo encontrado
In file included from ../src/glue/GLUWrapper.c:35:
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:60: error: expected declaration specifiers or ‘...’ before ‘*’ token
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:60: error: expected ‘)’ before ‘const’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:68: error: expected declaration specifiers or ‘...’ before ‘GLenum’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:68: error: expected declaration specifiers or ‘...’ before ‘GLfloat’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:69: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:72: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:72: error: expected declaration specifiers or ‘...’ before ‘GLfloat’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:72: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:72: error: expected declaration specifiers or ‘...’ before ‘GLfloat’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:72: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:72: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:72: error: expected declaration specifiers or ‘...’ before ‘GLfloat’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:72: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:72: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:72: error: expected declaration specifiers or ‘...’ before ‘GLenum’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:77: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:77: error: expected declaration specifiers or ‘...’ before ‘GLfloat’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:77: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:77: error: expected declaration specifiers or ‘...’ before ‘GLfloat’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:77: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:77: error: expected declaration specifiers or ‘...’ before ‘GLenum’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:78: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:78: error: expected declaration specifiers or ‘...’ before ‘GLfloat’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:78: error: expected declaration specifiers or ‘...’ before ‘GLint’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:78: error: expected declaration specifiers or ‘...’ before ‘GLenum’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:79: error: expected declaration specifiers or ‘...’ before ‘GLenum’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:80: error: expected declaration specifiers or ‘...’ before ‘GLvoid’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:87: error: expected declaration specifiers or ‘...’ before ‘GLenum’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:88: error: expected declaration specifiers or ‘...’ before ‘GLenum’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:88: error: expected declaration specifiers or ‘...’ before ‘GLdouble’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:93: error: expected declaration specifiers or ‘...’ before ‘GLdouble’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:95: error: expected declaration specifiers or ‘...’ before ‘GLdouble’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:95: error: expected declaration specifiers or ‘...’ before ‘GLdouble’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:95: error: expected declaration specifiers or ‘...’ before ‘GLdouble’
/home/victor/opensci/OpenScientist/v16r4/CoinGL/v1r250p0/include/Inventor/C/glue/GLUWrapper.h:115: error: expected specifier-qualifier-list before ‘gluGetString_t’
../src/glue/GLUWrapper.c:109: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
../src/glue/GLUWrapper.c:208: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../src/glue/GLUWrapper.c:218: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUWrapper_gluScaleImage’
../src/glue/GLUWrapper.c:241: error: expected declaration specifiers or ‘...’ before ‘GLint’
../src/glue/GLUWrapper.c:242: error: expected declaration specifiers or ‘...’ before ‘GLfloat’
../src/glue/GLUWrapper.c:243: error: expected declaration specifiers or ‘...’ before ‘GLint’
../src/glue/GLUWrapper.c:244: error: expected declaration specifiers or ‘...’ before ‘GLfloat’
../src/glue/GLUWrapper.c:245: error: expected declaration specifiers or ‘...’ before ‘GLint’
../src/glue/GLUWrapper.c:246: error: expected declaration specifiers or ‘...’ before ‘GLint’
../src/glue/GLUWrapper.c:247: error: expected declaration specifiers or ‘...’ before ‘GLfloat’
../src/glue/GLUWrapper.c:248: error: expected declaration specifiers or ‘...’ before ‘GLint’
../src/glue/GLUWrapper.c:249: error: expected declaration specifiers or ‘...’ before ‘GLint’
../src/glue/GLUWrapper.c:250: error: expected declaration specifiers or ‘...’ before ‘GLenum’
../src/glue/GLUWrapper.c: In function ‘GLUWrapper_gluNurbsSurface’:
../src/glue/GLUWrapper.c:252: error: ‘GLint’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:252: error: (Each undeclared identifier is reported only once
../src/glue/GLUWrapper.c:252: error: for each function it appears in.)
../src/glue/GLUWrapper.c:252: error: expected ‘;’ before ‘i’
../src/glue/GLUWrapper.c:262: error: ‘sKnotCount’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:262: error: ‘sKnots’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:263: error: ‘tKnotCount’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:263: error: ‘tKnots’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:264: error: ‘sStride’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:264: error: ‘tStride’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:265: error: ‘control’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:266: error: ‘sOrder’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:266: error: ‘tOrder’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:267: error: ‘type’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:271: error: ‘i’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:294: error: expected ‘;’ before ‘nrofctrlpoints’
../src/glue/GLUWrapper.c:305: error: ‘nrofctrlpoints’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:317: error: ‘GLUWrapper_t’ has no member named ‘gluNurbsSurface_in_GLU’
../src/glue/GLUWrapper.c: In function ‘GLUWrapper’:
../src/glue/GLUWrapper.c:441: error: ‘GLUWrapper_t’ has no member named ‘gluScaleImage’
../src/glue/GLUWrapper.c:441: error: ‘gluScaleImage_t’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:441: error: expected ‘;’ before ‘cc_dl_sym’
../src/glue/GLUWrapper.c:442: error: ‘GLUWrapper_t’ has no member named ‘gluGetString’
../src/glue/GLUWrapper.c:442: error: ‘gluGetString_t’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:442: error: expected ‘;’ before ‘cc_dl_sym’
../src/glue/GLUWrapper.c:443: error: ‘GLUWrapper_t’ has no member named ‘gluErrorString’
../src/glue/GLUWrapper.c:443: error: ‘gluErrorString_t’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:443: error: expected ‘;’ before ‘cc_dl_sym’
../src/glue/GLUWrapper.c:444: error: ‘GLUWrapper_t’ has no member named ‘gluNewNurbsRenderer’
../src/glue/GLUWrapper.c:445: error: ‘GLUWrapper_t’ has no member named ‘gluDeleteNurbsRenderer’
../src/glue/GLUWrapper.c:446: error: ‘GLUWrapper_t’ has no member named ‘gluNurbsProperty’
../src/glue/GLUWrapper.c:447: error: ‘GLUWrapper_t’ has no member named ‘gluLoadSamplingMatrices’
../src/glue/GLUWrapper.c:447: error: ‘gluLoadSamplingMatrices_t’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:447: error: expected ‘;’ before ‘cc_dl_sym’
../src/glue/GLUWrapper.c:448: error: ‘GLUWrapper_t’ has no member named ‘gluBeginSurface’
../src/glue/GLUWrapper.c:449: error: ‘GLUWrapper_t’ has no member named ‘gluEndSurface’
../src/glue/GLUWrapper.c:450: error: ‘GLUWrapper_t’ has no member named ‘gluNurbsSurface’
../src/glue/GLUWrapper.c:451: error: ‘GLUWrapper_t’ has no member named ‘gluBeginTrim’
../src/glue/GLUWrapper.c:452: error: ‘GLUWrapper_t’ has no member named ‘gluEndTrim’
../src/glue/GLUWrapper.c:453: error: ‘GLUWrapper_t’ has no member named ‘gluBeginCurve’
../src/glue/GLUWrapper.c:454: error: ‘GLUWrapper_t’ has no member named ‘gluEndCurve’
../src/glue/GLUWrapper.c:455: error: ‘GLUWrapper_t’ has no member named ‘gluNurbsCurve’
../src/glue/GLUWrapper.c:456: error: ‘GLUWrapper_t’ has no member named ‘gluPwlCurve’
../src/glue/GLUWrapper.c:457: error: ‘GLUWrapper_t’ has no member named ‘gluNurbsCallback’
../src/glue/GLUWrapper.c:466: error: ‘GLUWrapper_t’ has no member named ‘gluNurbsCallbackData’
../src/glue/GLUWrapper.c:470: error: ‘GLUWrapper_t’ has no member named ‘gluNewTess’
../src/glue/GLUWrapper.c:471: error: ‘GLUWrapper_t’ has no member named ‘gluTessCallback’
../src/glue/GLUWrapper.c:472: error: ‘GLUWrapper_t’ has no member named ‘gluTessProperty’
../src/glue/GLUWrapper.c:473: error: ‘GLUWrapper_t’ has no member named ‘gluTessBeginPolygon’
../src/glue/GLUWrapper.c:474: error: ‘GLUWrapper_t’ has no member named ‘gluTessEndPolygon’
../src/glue/GLUWrapper.c:475: error: ‘GLUWrapper_t’ has no member named ‘gluTessBeginContour’
../src/glue/GLUWrapper.c:476: error: ‘GLUWrapper_t’ has no member named ‘gluTessEndContour’
../src/glue/GLUWrapper.c:477: error: ‘GLUWrapper_t’ has no member named ‘gluTessVertex’
../src/glue/GLUWrapper.c:478: error: ‘GLUWrapper_t’ has no member named ‘gluDeleteTess’
../src/glue/GLUWrapper.c:479: error: ‘GLUWrapper_t’ has no member named ‘gluTessNormal’
../src/glue/GLUWrapper.c:483: error: ‘GLUWrapper_t’ has no member named ‘gluScaleImage’
../src/glue/GLUWrapper.c:484: error: ‘GLUWrapper_t’ has no member named ‘gluScaleImage’
../src/glue/GLUWrapper.c:484: error: ‘GLUWrapper_gluScaleImage’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:485: error: ‘GLUWrapper_t’ has no member named ‘gluGetString’
../src/glue/GLUWrapper.c:486: error: ‘GLUWrapper_t’ has no member named ‘gluGetString’
../src/glue/GLUWrapper.c:486: error: ‘GLUWrapper_gluGetString’ undeclared (first use in this function)
../src/glue/GLUWrapper.c:494: error: ‘GLUWrapper_t’ has no member named ‘gluNurbsSurface_in_GLU’
../src/glue/GLUWrapper.c:494: error: ‘GLUWrapper_t’ has no member named ‘gluNurbsSurface’
../src/glue/GLUWrapper.c:495: error: ‘GLUWrapper_t’ has no member named ‘gluNurbsSurface’
../src/glue/GLUWrapper.c:495: error: ‘GLUWrapper_t’ has no member named ‘gluNurbsSurface’
../src/glue/GLUWrapper.c:508: error: ‘GLUWrapper_t’ has no member named ‘gluGetString’
../src/glue/GLUWrapper.c:510: error: expected ‘)’ before ‘GLubyte’

My system information:

OS: Mandriva Linux 2008.1 powerpack

gcc-4.2.3 (comes with the distribution)

Geant4.9.0.p02 CLHEP 2.0.3.2

OpenScientist v16r4

Can somebody help me?

Thanks

Victor

Question How to use Open Inventor?  Keywords: Open Inventor Use
by Zaldy Nawang <zaldynow@yahoo.com.ph>,   28 Apr, 2008
Hi everyone,

I would like to use open inventor. I have a working Open Inventor
version inventor-2.1.5-10.src.tar.gz. I can view the sample geometries
in open inventor.

After reading the forum, I was able to built the open inventor 
library during the ./Configure -build 

Now I am ready (and a bit excited) to used Open Inventor

But I can not use it. I tried running the example N03
.............OUTPUT of ExampleN03.........
/vis/open OIX
parameter value is not listed in the candidate List.
***** Illegal parameter (0) </vis/open OIX> *****

I checked that these environment are set to 1

export G4VIS_BUILD_OIX_DRIVER=1
export G4VIS_USE_OIX=1

Any hint please...

THANK YOU...

ZALDY


BTW,
Cern Linux 4.6 with gcc 3.4.6, CLHEP 2.0.3.1
1 None: Re: How to use Open Inventor?   (John Allison - 28 Apr, 2008)
None HepRepFile visualisation question  Keywords: HepRep cylinder visualisation
by Aram <ateymura@yahoo.com>,   25 Apr, 2008

i have a rotated cylinder (a G4tubs)

   G4RotationMatrix* yRot = new G4RotationMatrix();
   yRot->rotateY(24.*deg);

  physiShell = new G4PVPlacement(yRot,                     
			          positionShell,     
			         logicShell,    
		                 "pShell", 
				 logicMother,              
			          false,                    
				  copy_number);             

when viewed with OGLIX the cylinder looks like I would expect it to look. but when vied with HerRep viewer the cylinder looks skewed and rather rotated. Am I doing something wrong? Is this just HepRep visualisation problem? or is my geometry is actually being constructed incorrectly?

(I am using Geant 4.9.1, HepRep browser 3.15.0 on MacOSX 10.5 or Fedora Core 8)

thanks, Aram

1 None: Re: HepRepFile visualisation question   (Joseph Perl - 25 Apr, 2008)
(_ None: Re: HepRepFile visualisation question   (Aram - 25 Apr, 2008)
(_ None: Re: HepRepFile visualisation question   (John Allison - 28 Apr, 2008)
Question How to fill the material with a colour?  Keywords: material, colour
by Anil <Anil>,   02 Apr, 2008

Hello,

Iam interested to fill the material with a colour. I could assign colour to logical volume due to which the colour is appearing for the border only. Please let me know how to fill the materail with a colour.

Thanks in adavnce.

sincerely,

Anil

1 None: Re: How to fill the material with a colour?   (John Allison - 02 Apr, 2008)
Question SetForceWireframe not working?  Keywords: SetForceWireframe not working
by brad <bmo03@uow.edu.au>,   18 Mar, 2008

Hi, I have just upgraded from suse10 to suse10.2 (I am using G4.9.01 and OGLIX).

In suse10 all OGLIX visualisation worked fine, now when using suse10.2 I cannot see any wireframe objects anymore - only SetForceSolid objects?

Any suggestions to why just SetForceWireframe is not working?

Thanks, Brad.

1 None: Re: SetForceWireframe not working?   (John Allison - 18 Mar, 2008)
None Trouble with example A01/Java on Windows/cygwin  Keywords: A01 cygwin jaida aidajni java
by Douglass Schumacher <Douglass Schumacher>,   06 Mar, 2008
Greetings. I can't get geant4 example A01 to run successfully with
analysis turned on (G4ANALYSIS_USE=1). I am a new geant4 user and
a newcomer to this forum. I am also new to AIDA, et. al.

Base configuration:
Windows XP.
geant4 (v. 4.9.1_p01) installed using J. Perl's excellent
installation guide with no problems. So, I'm also using: cygwin,
"Microsoft .NET Framework 2.0" and "Visual C++ 2005 Express Edition".
Example N01 works fine and example A01 with analysis OFF works fine.

I'm using Java: jdk1.5.0.  (I've tried other versions as well).

What happens next depends on which versions of JAIDA/AIDAJNI I use.
In all cases, I export the variables as specified in README.JAIDA and
source the setup files.

JAIDA 3.2.4 and AIDAJNI 3.2.6
-----------------------------
I get the following error message at link time:
  Compiling A01app.cc ...
  A01app.cc
  Using granular libraries ...
  Linking A01app ...
  Creating library c:/g4work/bin/WIN32-VC/A01app.lib and
  object c:/g4work/bin/WIN32-VC/A01app.exp
  freehep-aidajni-3.2.6.lib(JIBrushStyle.obj) : error LNK2019:
  unresolved external symbol "__declspec(dllimport) class std
  ::basic_ostream<char,struct std::char_traits<char> > & __cdecl
  std::operator<<(class std::basic_ostream<char,struct std:
  <snip>
  (the description goes on for some length)

If I run the A01app.exe anyway, the screen blinks at the place where
it should bring up windows with histograms and then it terminates.
A01.aida is not written.


JAIDA 3.2.1 and AIDAJNI 3.2.1
-----------------------------
This combination gets a compile error because AIDA/AIDA.h
can't be found. I added this line to GNUmakefile:
   CPPFLAGS += '-Ic:\aidajni\aidajni-3.2.1\include'
and commented out the original line setting CPPFLAGS and then it
compiled and linked.

When I ran it, I got to the point where this was printed:
   Loaded linked in JVM.
and then it crashed.

I believe the error occurs in A01AnalysisManager.cc at the line:
   tree = treeFactory->create("A01.aida","xml",false,true,"compress=yes");


==========================================================
Different combinations of versions of JAIDA/AIDAJNI do slightly
different things, but these seem to come the closest to running.
Earlier versions also get a collision from the pre-processor
regarding a warning about a collision between CLHEP and AIDAJNI
over a macro called 'VERSION'.

Thanks in advance for any advice you can offer.

Regards,
Douglass
None DAWN - customize the destination filename (.prim and .eps)  Keywords: DAWN customization filename
by Giulia De Bonis <Giulia De Bonis>,   22 Feb, 2008
Reading through the documentation in
http://geant4.kek.jp/~tanaka/GEANT4/DAWNFILE_driver.html
I found the following
setenv G4DAWNFILE_DEST_DIR directory_name/
to customize the destination directory.
My question is: is there somehow (inside GEANT4, commands in /, environmental settings...) the possibility to customize the destination filename also?
Thank you very much,
Giulia
1 None: Re: DAWN - customize the destination filename (.prim and .eps)   (John Allison - 23 Feb, 2008)
(_ None: Re: DAWN - customize the destination filename (.prim and .eps)   (John Allison - 23 Feb, 2008)
None how to see the surface of a cylinder in OGLIX  by gin chen <gin chen>,   19 Feb, 2008

Hi, I have created a geometry with cylinders. When I run the simulation I can see only the lid of the cylinder on OGLIX window. I don't see the sufface or line to show the surface.

Any help?

Gin

1 None: Re: how to see the surface of a cylinder in OGLIX   (John Allison - 19 Feb, 2008)
3 None: Re: how to see the surface of a cylinder in OGLIX   (Ibrahim - 20 Feb, 2008)
Question Create a Visualization File  Keywords: HepRep, DAWNFILE, large files, batch mode
by Giulia De Bonis <Giulia De Bonis>,   19 Feb, 2008
My simulation is the interaction of 1e5 protons (aach proton is 200MeV) in a small water tank, and the sensitive detector is even smaller: a cubic box 30cm side, divided in 3375000 cubic (sensitive) cells 0.2 cm side each. I selected Invisible Attributes for each cell in the sensitive detector. I would like to produce a file to visualize the output of the simulation. My visualization macro says the following:
/vis/open HepRepFile/DAWNFILE
/vis/scene/create
/vis/scene/add/volume
/vis/scene/add/trajectories
/vis/sceneHandler/attach
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate
I tried both HepRep and DAWN, but no success. In the following, I try to describe my problems.

HEPREP
I followed advices given in this forum (see Joseph Perl thread 437) Not enough to produce a usable file. I launch HepRep (via java -jar HepRApp.jar &) obtaining:
$ heprep
[1] 2931
$ Desktop:addImpl:found internalFrames to be null.
Will instantiate new copy of internalFrames and proceed.
Desktop:addImpl:found internalFrames to be null.
Will instantiate new copy of internalFrames and proceed.

and then File > OpenData and then I select my hrep.gz file (29M large). A dialog box appears saying "Insufficient Memory: Out of Memory attempting to read HepRep file myfile.heprep.gz"
Exception occurred during event dispatching:
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.(DataBufferInt.java:41)
at java.awt.image.Raster.createPackedRaster(Raster.java:458)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
at java.awt.image.BufferedImage.(BufferedImage.java:323)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:522)
at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:171)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:186)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:821)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:444)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:51)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:876)
at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:168)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2850)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2835)
at javax.swing.ImageIcon.paintIcon(ImageIcon.java:324)
at com.sun.java.swing.plaf.gtk.GTKStyle$GTKStockIcon.paintIcon(GTKStyle.java:1566)
at sun.swing.plaf.synth.SynthIcon.paintIcon(SynthIcon.java:47)
at javax.swing.plaf.synth.SynthGraphicsUtils.paintText(SynthGraphicsUtils.java:338)
at javax.swing.plaf.synth.SynthLabelUI.paint(SynthLabelUI.java:117)
at javax.swing.plaf.synth.SynthLabelUI.update(SynthLabelUI.java:98)
at javax.swing.JComponent.paintComponent(JComponent.java:743)
at javax.swing.JComponent.paint(JComponent.java:1006)
at javax.swing.JComponent.paintChildren(JComponent.java:843)
at javax.swing.JComponent.paint(JComponent.java:1015)
at javax.swing.JComponent.paintChildren(JComponent.java:843)
at javax.swing.JComponent.paint(JComponent.java:1015)
at javax.swing.JComponent.paintChildren(JComponent.java:843)
at javax.swing.JComponent.paint(JComponent.java:1015)
at javax.swing.JComponent.paintChildren(JComponent.java:843)
at javax.swing.JComponent.paint(JComponent.java:1015)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:843)
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at java.io.BufferedWriter.(BufferedWriter.java:87)
at java.io.BufferedWriter.(BufferedWriter.java:70)
at java.util.Properties.store(Properties.java:651)
at heprapp.application.Main.saveUserProperties(Main.java:1085)
at heprapp.application.Main.setUserProperty(Main.java:1079)
at heprapp.loader.EventLoader.setEvent(EventLoader.java:553)
at heprapp.control.ChooserTree.openXMLFileEvent(ChooserTree.java:317)
at heprapp.control.ChooserTreeGUI.actionPerformed(ChooserTreeGUI.java:657)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:5517)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5282)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3984)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

DAWN
My main says
if(argc!=1)
// Batch mode
{ G4String command = "/control/execute ";
G4String fileName = argv[1];
UI->ApplyCommand(command+fileName);}
I want to operate in batch mode, because the simulation is "heavy". But, If I select DAWNFILE, it prints on screen:
File g4_00.prim is generated.
dawn g4_00.prim

***************************************
Fukui Renderer
DAWN
(Drawer for Academic WritiNgs)
ver 3.88a (Dev. indep. Mode) September 20, 2005
***************************************

***** g4.prim viewer mode (default)
***** ("dawn -h" for help)
It opens the Fukui Renderer DAWN (GUI ver.1GL) and if I select the "OK" button, detector image printed in file g4_01.eps appears on a gv (ghostview) window and the following lines are printed in the session ***** PostScript file "g4_01.eps" is created.
***** The showpage command is added.

Then, I quit gv and it is the onlt way to "free" the session: 1 event has been kept for refreshing and/or reviewing.
Graphics systems deleted.
Visualization Manager deleting...
G4 kernel has come to Quit state.
The problem is it is not operating in batch mode! And the batch mode is the only way to produce my simulations, otherwise everithing will be stucked.
I tried my best to explain the cases, I hope someone could help. Sincerely, Giulia
1 None: Re: Create a Visualization File   (John Allison - 19 Feb, 2008)
1 More: Re: Create a Visualization File   (Giulia - 20 Feb, 2008)
1 None: Re: Create a Visualization File   (John Allison - 20 Feb, 2008)
... 1 Message(s)
3 None: Re: Create a Visualization File   (Joseph Perl - 20 Feb, 2008)
Sad another " OpenGL vis: cannot see detector, only particle tracks" problem   Keywords: OpenGL, Detector visualization
by Aram <ateymura@yahoo.com>,   13 Feb, 2008

I have a Dell Optiplex 740 with a secondary (not on board) ATI Radeon X1300 PRO. I have installed the FGLRX driver from ATI.

now running the N02 example for Geant 4.9.1 on SL 5.1 draws only particle tracks and no detector.

if anyone has a solution for this problem, please let me know

thanks

 

Question Is it possible to create a video of a visualization?  Keywords: graphics, video, capture
by Ioannis Sechopoulos <Ioannis Sechopoulos>,   08 Feb, 2008

I need to run a simulation, and generate a video file (AVI, WMV, whatever) of the simulation as displayed, for example, by oglix. The first thing that came to mind is screen capturing software, but I was wondering if oglix or any other of the visualization options in Geant4 can direct the graphics to a video file rather than (or in addition to) the screen. Thanks!

1 None: Re: Is it possible to create a video of a visualization?   (John Allison - 09 Feb, 2008)
Question visualizing spheres  Keywords: spheres
by <4el11@queensu.ca>,   07 Feb, 2008

Hello, My situation is this: I have a rectangular Hall volume and placed inside it is a spherical shell and inside that I have a sphere. I would like to visualize all of this. Right now I'm only seeing the outside rectangle and nothing inside. Ideally I would like to see all 3 components at once. Spheres seem tricky...I think I need auxiliary Edge and set the style to solid or something like that... And how do I go about setting setting the viewer to a cross sectional viewpoint?

What is the best way to do this? Please help me and try to be explicit as to what to put in my detectorConstruction.cc file or what I can put in the idle prompts as I'm quite a beginner at visualizations.

Thank you!

1 None: Re: visualizing spheres   (John Allison - 08 Feb, 2008)
Question detector geometry is not visualized   Keywords: invisible detector
by M.Antonello <maddalena.antonello@lngs.infn.it>,   29 Jan, 2008

Dear expert,

I have a problem in visualizing my detector geometry: On my code: I define a very simple detector made of two boxesand I set the visualization attributes. On my macro: I use DAWN visualizer. When I run my application the eps file produced shows just the coordinate axis. No detector appears!

Can you tell which the problem is?

Thank you Maddalena

Code and macro are reported here after:

THE MACRO:

##############################################################
#VISUALIZATION(for be open with DAWN)
# create empty scene

/vis/scene/create

/vis/scene/add/volume world

/vis/scene/add/userAction

/vis/scene/add/axes

/vis/scene/add/scale 1 m z

# Create a scene handler for Dawn graphics system

/vis/open DAWNFILE

# draw scene

/vis/viewer/set/viewpointThetaPhi 70 160 deg

/vis/viewer/flush

THE CODE:

###############################################################

//---------------------------------- World -----------------------------------

  G4double fWorldLength=2100*cm;
  G4double HalfWorldLength = 0.5*fWorldLength;
  solidWorld= new G4Box("world",HalfWorldLength,HalfWorldLength,HalfWorldLength);
  logicWorld= new G4LogicalVolume( solidWorld, Air, "World", 0, 0, 0);  
  physiWorld = new G4PVPlacement(0,               // no rotation
                                 G4ThreeVector(), // at (0,0,0)
                                 logicWorld,      // its logical volume
				 "World",         // its name
                                 0,               // its mother  volume
                                 false,           // no boolean operations
                                 0);              // no field specific to volume  

  //------------------------------LiquidArgon volume-----------------------------

    //ArgoNeuT
    G4double XArgonSize=100./2.*cm;
    G4double YArgonSize=50./2.*cm;
    G4double ZArgonLength=50./2.*cm;
    HalfArgonSize = G4ThreeVector(XArgonSize,YArgonSize,ZArgonLength);
    G4ThreeVector positionTracker = G4ThreeVector(0.,0.,0.); 
    G4Box*  solidTracker = new G4Box("tracker",XArgonSize,YArgonSize,ZArgonLength);
    G4LogicalVolume*  logicTracker = new G4LogicalVolume(solidTracker,lAr , "Tracker",0,0,0);  
    physiTracker = new G4PVPlacement(0,              // no rotation
					 positionTracker, // at (x,y,z)
					 logicTracker,// its logical volume  
					 "Tracker",       // its name
					 logicWorld,  // its mother  volume
					 false,           // no boolean operations
					 0);              // no particular field 

  G4Region *LArRegion = new G4Region("LAr-Region");
  logicTracker -> SetRegion(LArRegion);
  LArRegion->AddRootLogicalVolume(logicTracker);

  // Iron Slab

  G4double XIronSize=2.54/2.*cm;
  G4double YIronSize=480/2.*cm;
  G4double ZIronSize=380/2.*cm;
  G4Box*  solidIron = new G4Box("Iron",XIronSize,YIronSize,ZIronSize);
  G4LogicalVolume*  logicIron = new G4LogicalVolume(solidIron,iron , "Iron",0,0,0); 
  G4double HalfArgoNeuTFullLength = 91.44*cm;
  G4double Gap = 100*cm;
  G4double XpositionIron = HalfArgoNeuTFullLength + Gap;
  G4double YpositionIron = -88*cm;
  G4double ZpositionIron = 0*cm;
  G4ThreeVector positionIron = G4ThreeVector(XpositionIron,YpositionIron,ZpositionIron); 
  physiIron = new G4PVPlacement(0,              // no rotation
				positionIron,   // at (x,y,z)
				logicIron,      // its logical volume  
				"Iron",         // its name
				logicWorld,     // its mother  volume
				false,          // no boolean operations
				0);             // no particular field 

  //--------- Visualization attributes -------------------------------

    G4VisAttributes* BoxVisAtt= new G4VisAttributes(G4Colour(1.0,1.0,1.0));
    logicWorld->SetVisAttributes(BoxVisAtt);  

    G4VisAttributes* ArgonVisAtt = new G4VisAttributes(G4Colour(0.0,0.0,1.0));
    logicTracker->SetVisAttributes(ArgonVisAtt);

    G4Colour  grey    (0.5, 0.5, 0.5) ;
    G4VisAttributes* IronVisAttribute = new G4VisAttributes(grey);
    logicIron -> SetVisAttributes(IronVisAttribute);

1 None: Re: detector geometry is not visualized   (John Allison - 29 Jan, 2008)
(_ More: Re: detector geometry is not visualized   (M.Antonello - 29 Jan, 2008)
(_ None: Re: detector geometry is not visualized   (John Allison - 29 Jan, 2008)
(_ None: Re: detector geometry is not visualized   (M.Antonello - 30 Jan, 2008)
(_ None: Re: detector geometry is not visualized   (John Allison - 31 Jan, 2008)
(_ None: Re: detector geometry is not visualized   (M.Antonello - 31 Jan, 2008)
Question invisible viewer window when /vis/open OGLIX  Keywords: visualization ubuntu
by Federica <federica.legger@cern.ch>,   23 Jan, 2008

Hi,

I have installed geant4.8.2 on my ubuntu gutsy (7.10). I have an ATI card installed following the instruction at

https://help.ubuntu.com/community/BinaryDriverHowto/ATI

in the section:

Instructions for Ubuntu 7.10 (Gutsy) with ATi 8.42.3 Binary and AIGLX, for Compiz

My problem is that when I type /vis/open OGLIX, a window viewer appears in
 my window list, and also in the applet that shows windows in a workspace
but it is invisible on my desktop. I do not know if this is "the invisible
 detector" problem, but I doubt it.
I do not get any error in the geant session.
if I go on and type /vis/drawVolume I see the detector being drawn, 
but after the drawing, the viewer window becomes invisible again.
The same behaviour with trajectories, when I type /run/beamOn 1,
I see the trajectory of particles being drawn, and then again the invisble viewer.
Any hints?
many thanks in advance

1 None: Re: invisible viewer window when /vis/open OGLIX   (John Allison - 20 Mar, 2008)
None open .wrl file fail  by <jfgao@mdanderson.org>,   15 Jan, 2008

Dear G4 users: I run the Hadrontherapy example. I can generate the Wrl files. But when I open it, my MYRIAD 3D Reader went way. I found that the G4UIXm.hh in include in header in my Hadrontherapy.cc. Any suggestions about this? thank you!

1 None: Re: open .wrl file fail   (John Allison - 15 Jan, 2008)
(_ None: Re: open .wrl file fail   (jfgao@mdanderson.org - 16 Jan, 2008)
None open .wrl file fail  by <jfgao@mdanderson.org>,   15 Jan, 2008
Dear G4 users:
I run the Hadrontherapy example. I can generate the Wrl files. 
But when I open it, my MYRIAD 3D Reader went way. I found that 
the G4UIXm.hh in include in header in my Hadrontherapy.cc. Any 
suggestions about this? thank you!
1 None: Re: open .wrl file fail   (John Allison - 15 Jan, 2008)
Question Visualization problem  Keywords: Cannot see my visualization
by Chibueze Zimuzo <Chibueze Zimuzo>,   10 Jan, 2008

Hi all,

I'm just a new G4 user simulation Compton camera with G4. I copied the vis.mac file of novice example N02 along my written codes but could only see the traces of the particle trajectory inside a sphere. My confusion is that I used a box to represent my world. Please can anybody help me? Here is the result I got when I ran my simulation.

*************************************************************
 Geant4 version Name: geant4-08-01-patch-02    (10-November-2006)
                      Copyright : Geant4 Collaboration
                      Reference : NIM A 506 (2003), 250-303
                            WWW : http://cern.ch/geant4
*************************************************************

Visualization Manager instantiating... Visualization Manager initialising... Registering graphics systems...

You have successfully registered the following graphics systems.
Current available graphics systems are:
  ASCIITree (ATree)
  DAWNFILE (DAWNFILE)
  GAGTree (GAGTree)
  G4HepRep (HepRepXML)
  G4HepRepFile (HepRepFile)
  RayTracer (RayTracer)
  VRML1FILE (VRML1FILE)
  VRML2FILE (VRML2FILE)
  OpenGLImmediateX (OGLIX)
  OpenGLStoredX (OGLSX)
  RayTracerX (RayTracerX)

Registering model factories...

You have successfully registered the following model factories.
Registered model factories:
  generic
  drawByCharge
  drawByParticleID
  drawByOriginVolume

Registered models:
  None

Registered filter factories:
  chargeFilter
  particleFilter
  originVolumeFilter

Registered filters:
  None

/run/verbose 2
#
# create empty scene
#
/vis/scene/create
#
# Create a scene handler for a specific graphics system
# (Edit the next line(s) to choose another graphic system)
#
/vis/open OGLIX
/vis/sceneHandler/create OGLIX
/vis/sceneHandler/attach
/vis/viewer/create ! ! 600
Got standard cmap
Window name: viewer-0 (OpenGLImmediateX)
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--11-80-100-100-m-60-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--14-100-100-100-m-90-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--20-140-100-100-m-110-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso8859-1
G4OpenGLXViewer: XLoadQueryFont failed for font
  -adobe-courier-bold-r-normal--34-240-100-100-m-200-iso8859-1
WARNING: objects with visibility flag set to "false" will not be drawn!
  "/vis/viewer/set/culling global false" to Draw such objects.
  Also see other "/vis/viewer/set" commands.
/vis/viewer/refresh
Your "world" has no vis attributes or is marked as visible.
  For a better view of the contents, mark the world as invisible, e.g.,
  myWorldLogicalVol -> SetVisAttributes (G4VisAttributes::Invisible);
G4Scene::AddWorldIfEmpty: The scene was empty of run-duration models.
  "world" has been added.
/vis/scene/notifyHandlers
#
####/vis/open DAWNFILE
#
# draw scene
#
/vis/viewer/set/viewpointThetaPhi 90 180 deg
/vis/viewer/refresh
/vis/viewer/zoom 1.4
/vis/viewer/refresh
/vis/viewer/flush
/vis/viewer/refresh viewer-0
/vis/viewer/update viewer-0
#
# for drawing the tracks
# (if too many tracks cause core dump => storeTrajectory 0)
/tracking/storeTrajectory 1
/vis/scene/add/trajectories
/tracking/storeTrajectory 1
WARNING: "/tracking/storeTrajectory 1" has been executed.
# (if you prefer refreshing each event, comment out next line)
/vis/scene/endOfEventAction accumulate
#
/run/beamOn 10

msc:  Model variant of multiple scattering for e-
      Lambda tables from 100 eV  to 100 TeV in 120 bins.
      Boundary/stepping algorithm is active with facrange= 0.02  Step limitation 1

eIoni:   tables are built for  e-
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Delta cross sections from Moller+Bhabha, good description from 1 KeV to 100 GeV.
      Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1

eBrem:   tables are built for  e-
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Total cross sections from a parametrisation based on the EEDL data library.
      Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV.

eIoni:   tables are built for  e+
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Delta cross sections from Moller+Bhabha, good description from 1 KeV to 100 GeV.
      Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1

eBrem:   tables are built for  e+
      dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
      Lambda tables from threshold to 100 TeV in 120 bins.
      Total cross sections from a parametrisation based on the EEDL data library.
      Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV.

annihil:       Heilter model of formula of annihilation into 2 photons
      tables are built for  e+
      Lambda tables from 100 eV  to 100 TeV in 120 bins.

Region <DefaultRegionForTheWorld> -- appears in <World> world volume
 Materials : Air Silicon NaI
 Production cuts :  gamma 1 mm     e- 1 mm     e+ 1 mm

========= Table of registered couples ==============================

Index : 0     used in the geometry : Yes     recalculation needed : No
 Material : Air
 Range cuts        :  gamma 1 mm     e- 1 mm     e+ 1 mm
 Energy thresholds :  gamma 990 eV     e- 990 eV     e+ 990 eV
 Region(s) which use this couple :
    DefaultRegionForTheWorld

Index : 1     used in the geometry : Yes     recalculation needed : No
 Material : Silicon
 Range cuts        :  gamma 1 mm     e- 1 mm     e+ 1 mm
 Energy thresholds :  gamma 6.88731 keV    e- 540.718 keV    e+ 521.113 keV
 Region(s) which use this couple :
    DefaultRegionForTheWorld

Index : 2     used in the geometry : Yes     recalculation needed : No
 Material : NaI
 Range cuts        :  gamma 1 mm     e- 1 mm     e+ 1 mm
 Energy thresholds :  gamma 29.5738 keV    e- 619.129 keV    e+ 589.38 keV
 Region(s) which use this couple :
    DefaultRegionForTheWorld

====================================================================

Start closing geometry. G4GeometryManager::ReportVoxelStats -- Voxel Statistics

    Total memory consumed for geometry optimisation:   1 kByte
    Total CPU time elapsed for geometry optimisation: 0 seconds

    Voxelisation: top CPU users:
    Percent   Total CPU    System CPU       Memory  Volume
    -------   ----------   ----------     --------  ----------
       0.00         0.00         0.00            0k World
       0.00         0.00         0.00            1k Scatterer
       0.00         0.00         0.00            1k ScattererStripsX

    Voxelisation: top memory users:
    Percent     Memory      Heads    Nodes   Pointers    Total CPU    Volume
    -------   --------     ------   ------   --------   ----------    ----------
      43.12          0k         1       16         16         0.00    Scatterer
      43.12          0k         1       16         16         0.00    ScattererStripsX
      13.76          0k         1        4          4         0.00    World
Start Run processing.
G4AugerData for Element no. 7 are loaded
G4AugerData for Element no. 8 are loaded
G4AugerData for Element no. 11 are loaded
G4AugerData for Element no. 14 are loaded
G4AugerData for Element no. 53 are loaded
AugerTransitionTable complete
G4VisManager: Using G4TrajectoryDrawByCharge as default trajectory model.
See commands in /vis/modeling/trajectories/ for other options.
Run terminated.
Run Summary
  Number of events processed : 10
  User=0.06s Real=0.4s Sys=0.05s
Idle>                                                               

Please I will be really grateful to receive useful suggestions.

Chibueze Uche. University of Waikato New Zealand

1 None: Re: Visualization problem   (John Allison - 10 Jan, 2008)
None QTOPENGL  by Maurizio <ungaro@jlab.org>,   07 Jan, 2008

Hi All,

Using 4.9.1.

The example NO3 with QT OpenGL works well (it's very nice by the way).

I wanted to implement it in my own code. For reasons that I don't want to go into, I'm not using the G4 make system. So what I did is use the proper environment variables and add: -DG4VIS_USE_QT -DG4VIS_USE_OPENGLQT -DG4VIS_USE_OPENGL -DG4VIS_USE -DG4INTY_USE_QT at compile time.

It compiles fine. However when I run it and do: /vis/open OGLSQT it doesn't work. It does list the drivers fine:

You have successfully registered the following graphics systems.
Current available graphics systems are:
  ASCIITree (ATree)
  DAWNFILE (DAWNFILE)
  G4HepRep (HepRepXML)
  G4HepRepFile (HepRepFile)
  RayTracer (RayTracer)
  VRML1FILE (VRML1FILE)
  VRML2FILE (VRML2FILE)
  OpenGLImmediateX (OGLIX)
  OpenGLStoredX (OGLSX)
  OpenGLImmediateQt (OGLIQT)
  OpenGLStoredQt (OGLSQT)

I googled it a bit and it seems that the number of list is not enough? I have no idea on how to increase it. Again, NO3 works fine. Thanks for any help.

Error:

********************* WARNING! ********************
Unable to allocate any more display lists in OpenGL.
     Continuing drawing in IMMEDIATE MODE.
***************************************************
ERROR: G4OpenGLStoredSceneHandler::EndModeling: Failure to allocate  display List for fTopPODL - try OpenGL Immediated mode.
X Error: GLXBadDrawable 130
  Extension:    128 (Uknown extension)
  Minor opcode: 11 (Unknown request)
  Resource id:  0x3400004

1 None: Re: QTOPENGL   (garnier - 09 Jan, 2008)
Question Interactive geometry modeling  by Ylvalie Bromsted <Ylvalie Bromsted>,   13 Dec, 2007

Hello all,

I'm just starting to use Geant4 and I was wondering whether there is a tool available to interactively build and, in parallel, visualize geometries in 3D?

I know of one package which does this for FLUKA & MCNPX and thus, I thought that probably something similar also exists for Geant4?

If anybody could point me in the right direction I would very much appreciate it.

Best regards Ylva

1 None: Re: Interactive geometry modeling   (John Allison - 14 Dec, 2007)
(_ None: Re: Interactive geometry modeling   (Ylvalie Bromsted - 14 Dec, 2007)
None heprep zip file not valid  by Jacquemier Jean <Jacquemier Jean>,   11 Dec, 2007

Hello,

I produce heprep zip file with following macro:
 ***********************
/vis/scene/create
/vis/open HepRepXML
/vis/viewer/set/culling global false

# use first to set volume depth cutoff
#/vis/scene/add/volume ! ! 2
/vis/scene/add/volume

/vis/scene/add/trajectories /vis/scene/add/hits

#/vis/viewer/flush
/run/beamOn
 ***********************

The resulting zip file scene-1.heprep.zip cannot be unzipped:

Archive:  scene-1.heprep.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of scene-1.heprep.zip or
        scene-1.heprep.zip.zip, and cannot find scene-1.heprep.zip.ZIP, period.

 any idea ?

Regards, 
 Jean Jacquemier

1 None: Re: heprep zip file not valid   (Joseph Perl - 13 Dec, 2007)
Question ghost (unexpected) neutral particle tracked in my detector!  Keywords: unexpected track
by Giulia De Bonis <Giulia De Bonis>,   16 Nov, 2007
I am working on simulating a low energy proton beam interacting with water. My particle gun injects 10000 protons; the vertices are randomly selected according to a gaussian profile in y and in z; the x coordinate is set at the edge of the mother volume. The beam is collimated passing through a lead screen with a circular hole.
The detector is simply a water tank, a part of which has been made sensitive and subdivided in cubic volumes. The sensitive part in placed next to the beam output.
The execution is steered with a interactive session and the simulation is apparently working. The problem is that, when running, a green (neutral) "ghost" track appears just before the tracking of the expected particles (protons and secondary particles). The unexpected track starts from the centre of the apparatus, and it has a momentum parallel to the x axys. This misterious track is "ghost" in a sense that I checked the code all around, but I did not find any reason for its existence. Moreover, if I try to control the execution using the commands available in / (as/gun/particle and /gun/energy/) any change affects the ghost track, and does not affect at all the primary generator. For instance, if I type /gun/particle/e-, /gun/energy/1 MeV, the result is a short red track starting from the centre of the tank, sourrounded by several green tracks (an electron and its e.m. shower).
Does anyone has any idea about this ghost track? Can you suggest where do I have to investigate to understand its presence and how can I prevent its appearence? In the following, my screen output in the interactive sessione; I hope it can help you to localize the problem. I can also provide the screenshot of the detector visualization with OGLIX.
Thank you in advance,
Giulia

*************************************************************
Geant4 version Name: geant4-09-00-patch-01 (28-August-2007)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
*************************************************************

Visualization Manager instantiating...
Visualization Manager initialising...
Registering graphics systems...

You have successfully chosen to use the following graphics systems.
Current available graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
G4HepRep (HepRepXML)
RayTracer (RayTracer)
VRML1FILE (VRML1FILE)
VRML2FILE (VRML2FILE)
OpenGLImmediateX (OGLIX)
OpenGLStoredX (OGLSX)

You have successfully registered the following graphics systems.
Current available graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
G4HepRep (HepRepXML)
RayTracer (RayTracer)
VRML1FILE (VRML1FILE)
VRML2FILE (VRML2FILE)
OpenGLImmediateX (OGLIX)
OpenGLStoredX (OGLSX)

Registering model factories...
G4VisManager: No model factories registered with G4VisManager.
G4VisManager::RegisterModelFactories() should be overridden in derived class. See G4VisExecutive for an example.

You have successfully registered the following model factories.
Registered model factories:
None

Registered filter factories:
None
Idle> /vis/scene/create ExperimentalHal
Idle> /vis/open OGLIX
Got standard cmap
Window name: viewer-0 (OpenGLImmediateX)
Your "world" has no vis attributes or is marked as visible.
For a better view of the contents, mark the world as invisible, e.g., myWorldLogicalVol -> SetVisAttributes (G4VisAttributes::Invisible);
G4Scene::AddWorldIfEmpty: The scene was empty of run-duration models.
"world" has been added
Idle> /tracking/storeTrajectory 1
Idle> /vis/scene/add/trajectories
/tracking/storeTrajectory 1
WARNING: Trajectory storing has been requested. This action may be reversed with "/tracking/storeTrajectory 0".
Idle> /vis/scene/endOfEventAction accumulate
WARNING: The vis manager will keep up to 100 events.
This may use a lot of memory.
Idle> /run/beamOn 1
(several G4VRangeToEnergyConverter ...)
(list of processes)
(========= Table of registered couples ==============================
...
====================================================================)

* * * H E R E * * * - First the ghost track, than the expected tracks

G4VisManager: Using G4TrajectoryDrawByCharge as default trajectory model.
See commands in /vis/modeling/trajectories/ for other options.
Run terminated.
Run Summary
Number of events processed : 1
User=9.84s Real=16.89s Sys=1.54s

--------------------End of Run------------------------------
1 event has been kept for refreshing and/or reviewing.
Idle>
*************************************************************
Geant4 version Name: geant4-09-00-patch-01 (28-August-2007)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
*************************************************************

Visualization Manager instantiating...
Visualization Manager initialising...
Registering graphics systems...

You have successfully chosen to use the following graphics systems.
Current available graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
G4HepRep (HepRepXML)
RayTracer (RayTracer)
VRML1FILE (VRML1FILE)
VRML2FILE (VRML2FILE)
OpenGLImmediateX (OGLIX)
OpenGLStoredX (OGLSX)

You have successfully registered the following graphics systems.
Current available graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
G4HepRep (HepRepXML)
RayTracer (RayTracer)
VRML1FILE (VRML1FILE)
VRML2FILE (VRML2FILE)
OpenGLImmediateX (OGLIX)
OpenGLStoredX (OGLSX)

Registering model factories...
G4VisManager: No model factories registered with G4VisManager.
G4VisManager::RegisterModelFactories() should be overridden in derived class. See G4VisExecutive for an example.

You have successfully registered the following model factories.
Registered model factories:
None

Registered filter factories:
None
Idle> /vis/scene/create ExperimentalHal
Idle> /vis/open OGLIX
Got standard cmap
Window name: viewer-0 (OpenGLImmediateX)
Your "world" has no vis attributes or is marked as visible.
For a better view of the contents, mark the world as invisible, e.g., myWorldLogicalVol -> SetVisAttributes (G4VisAttributes::Invisible);
G4Scene::AddWorldIfEmpty: The scene was empty of run-duration models.
"world" has been added
Idle> /tracking/storeTrajectory 1
Idle> /vis/scene/add/trajectories
/tracking/storeTrajectory 1
WARNING: Trajectory storing has been requested. This action may be reversed with "/tracking/storeTrajectory 0".
Idle> /vis/scene/endOfEventAction accumulate
WARNING: The vis manager will keep up to 100 events.
This may use a lot of memory.
Idle> /run/beamOn 1
(several G4VRangeToEnergyConverter ...)
(list of processes)
(========= Table of registered couples ==============================
...
====================================================================)

* * * H E R E * * * - First the ghost track, than the expected tracks

G4VisManager: Using G4TrajectoryDrawByCharge as default trajectory model.
See commands in /vis/modeling/trajectories/ for other options.
Run terminated.
Run Summary
Number of events processed : 1
User=9.84s Real=16.89s Sys=1.54s

--------------------End of Run------------------------------
1 event has been kept for refreshing and/or reviewing.
Idle>
1 None: Re: ghost (unexpected) neutral particle tracked in my detector!   (John Allison - 16 Nov, 2007)
(_ None: Re: ghost (unexpected) neutral particle tracked in my detector!   (John Allison - 19 Nov, 2007)
None Saving visualized images  by John <calculus7@gmail.com>,   09 Nov, 2007

Hi, I'm sort of a newbie to GEANT4 programming. For my visualizations, I am using the OGLSWin32 driver. I'm doing this on a Windows XP installation. For some reason when I try to visualize the window freezes up and turns white. Perhaps this is because of the emulation occurring in Cygwin. That's not really my problem though, it's just an annoyance. I was wondering how I save the image that is in the visualization window as an image file such as .jpg, .tif, .bmp, etc. I know that I can do much more advanced stuff like use heprep files and all that but my professor just wants a simple saved image of the visualization. Any ideas?

1 None: Re: Saving visualized images   (Joseph Perl - 09 Nov, 2007)
(_ None: Re: Saving visualized images   (John - 09 Nov, 2007)
Question DAWNCUT failed ...  Keywords: dawncut
by roccaz <jerome.roccaz@cea.fr>,   06 Nov, 2007

Hi everyone,

I would like to make a cutplane in order to debug the geometry of my detector that is build like russian puppets: the inner volume representing a germanium cristal is a parametrised tub; the cristal is in a support that is a Polycone; the support is in a Tub representing vacuum; and then there is an endcap build with a polycone. When I visualize the geometry with OGLIX or Dawn, all volumes appear. But when I use DAWNCUT, it says it fails for 2 components of the geometry. And when I visualise the result of the cut with dawn, the support and the endcap are missing. What can be wrong with my geometry?

By the way I try to use /vis/viewer/set/sectionPlane and /vis/viewer/addCutawayPlan to visualise a cutplane with OGLIX ... but nothing happens, even after a refresh or flush. Did I miss something to do?

thanks

1 None: Re: DAWNCUT failed ...   (John Allison - 06 Nov, 2007)
(_ None: Re: DAWNCUT failed ...   (John Allison - 15 Nov, 2007)
Question /vis/open in macro file not functioning  Keywords: batch mode visualization file
by <agnieszka.priebe@cern.ch>,   26 Oct, 2007

Hello,
  In my mac-file I have:
/vis/open HepRepXML
/vis/scene/create nowyZdyskiem.heprep
/vis/scene/add/volume
/vis/sceneHandler/attach
/vis/viewer/set/viewpointVector -1 0 0
/vis/viewer/flush
/vis/scene/add/trajectories
/vis/scene/add/hits
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate

when I run (exampleN02) with this mac file it gives an error: ***** COMMAND NOT FOUND </vis/open HepRepXML> *****

 when I open the visualization driver manually:
> /vis/open HepRepXML
 and then execute the commands manually it is ok - heprep file is produced.

 what is wrong?

    Best regards,

           Mariusz Sapinski

1 None: Re: /vis/open in macro file not functioning   (John Allison - 26 Oct, 2007)
Question printEPS: trajectories behind volume  by Sean Kirkwood <Sean Kirkwood>,   25 Oct, 2007
Hello,

I am running 10,000+ particles at a detector and I am
saving the image file so I can look at scattering angles.
This is especially important for electrons where they have a
significant forward scattering angle at energies above 1 MeV.

I use:
/vis/oglx/printEPS
for my OGLIX run where I can see that the particles are in
front of the detector volume.   In the EPS file, those
tracks are behind the detector volume.

Can I change the layering for the volume and the tracks? Or is
there a simpler way to keep the tracks at the front of the image?


Thanks,
Sean
1 None: Re: printEPS: trajectories behind volume   (John Allison - 26 Oct, 2007)
3 None: Re: printEPS: trajectories behind volume   (John Allison - 26 Oct, 2007)
Question OGLIX and drawing detector volumes  Keywords: OGLIX, Visualization
by Rick <rueno@physics.carleton.ca>,   25 Oct, 2007

Hello,

I'm running GEANT4 under my personal linux computer (Linux Mint 3.0 - equivalent to Ubuntu 7.04). I seem to have a problem with visualization using OGLIX.

I can open OGLIX using the command /vis/open OGLIX, but when I draw a volume (using /vis/drawVolume), it does not draw anything. When I run an event, only event tracks appear, still no detector volume. When I produce HepRep file and view it using HepRApp, everything appears fine, so I think I'm missing something about OpenGL.

Has anyone come across similar problem, and does anyone know the solution? I would like to have OGLIX working since it's easier than producing HepRep file each time.

Thanks, - Rick

1 None: Re: OGLIX and drawing detector volumes   (Sean Kirkwood - 25 Oct, 2007)
(_ None: Re: OGLIX and drawing detector volumes   (Rick - 27 Oct, 2007)
None Strange drawing for tube in Hep  by <hyao@jlab.org>,   24 Oct, 2007
Thank Joseph and John for answering my previous question. 
Today I get a new one.

I get one hep drawing and dawn drawing for same geometry. But the output
is strange. 

Please see the pmts at two sides.

http://www.jlab.org/~hyao/pdf_files/question/HepRAppOutput.jpg
http://www.jlab.org/~hyao/pdf_files/question/dawn.eps

Any idea what's going on?

Thank you for your time.
1 None: Re: Strange drawing for tube in Hep   (Joseph Perl - 25 Oct, 2007)
None Control Visibility for each object  Keywords: vis
by <hyao@jlab.org>,   18 Oct, 2007

I create 20 mirrors with different pCopyNo like below

phys_volume = new G4PVPlacement((G4Transform3D(rm,trans)),
	log_volume, name, mother_log,false,pCopyNo);

The log_volume for 20 mirrors is same, and I'm trying to control the visibility of these mirrors, but it seems if I set

ex: Just want to see the 3rd Mirror
if ( pCopyNo=2 ) {log_volume->SetVisibility(true);}

all the mirrors are drawn.

My question is if there is any way to just let one mirror visible?

1 None: Re: Control Visibility for each object   (Joseph Perl - 19 Oct, 2007)
(_ None: Re: Control Visibility for each object   (John Allison - 24 Oct, 2007)
Question EPS export crashes when applying section plane  Keywords: EPS export, section plane, segmentation fault
by Adrian Vogel <adrian.vogel@desy.de>,   18 Sep, 2007

Hello,

I'm using version 9.0.p01 and I get a segmentation fault when I try to use /vis/ogl/printEPS (or its menu equivalent in OGL*Xm) after doing /vis/viewer/set/sectionPlane on. The debugger backtrace says:

#0  in do_emit() from /usr/X11R6/lib/modules/dri/r200_dri.so
#1  in run_render() from /usr/X11R6/lib/modules/dri/r200_dri.so
#2  in _tnl_run_pipeline() from /usr/X11R6/lib/modules/dri/r200_dri.so
#3  in r200WrapRunPipeline() from /usr/X11R6/lib/modules/dri/r200_dri.so
#4  in _tnl_playback_vertex_list() from /usr/X11R6/lib/modules/dri/r200_dri.so
#5  in execute_list() from /usr/X11R6/lib/modules/dri/r200_dri.so
#6  in execute_list() from /usr/X11R6/lib/modules/dri/r200_dri.so
#7  in _mesa_CallList() from /usr/X11R6/lib/modules/dri/r200_dri.so
#8  in G4OpenGLStoredViewer::DrawDisplayLists() at src/G4OpenGLStoredViewer.cc:145
#9  in G4OpenGLStoredXmViewer::DrawView() at src/G4OpenGLStoredXmViewer.cc:115
#10 in G4OpenGLViewer::print() at src/G4OpenGLViewer.cc:383
#11 in G4OpenGLXViewer::print() at src/G4OpenGLXViewer.cc:437
#12 in G4OpenGLViewerMessenger::SetNewValue(...) at src/G4OpenGLViewerMessenger.cc:260
#13 in G4UIcommand::DoIt(...) at src/G4UIcommand.cc:210
#14 in G4UImanager::ApplyCommand("/vis/ogl/printEPS") at src/G4UImanager.cc:410
#15 in G4UImanager::ApplyCommand(...) at src/G4UImanager.cc:354
#16 in G4UIterminal::ExecuteCommand("/vis/ogl/printEPS") at src/G4UIterminal.cc:163
#17 in G4UIterminal::SessionStart() at src/G4UIterminal.cc:138
#18 in main(...) at Mokka.cc:261

A weird thing is that I sometimes see arbitrary lines with a color gradient (!) in my viewer immediately after applying the section (they disappear when the viewer is refreshed) – could this be connected to the problem? The crash occurs only with some of the various detector geometries which are included in my application, Mokka. In particular, I could not reproduce the problem with a simple test application.

Cheers,
Adrian

1 None: Re: EPS export crashes when applying section plane   (John Allison - 19 Sep, 2007)
(_ None: Re: EPS export crashes when applying section plane   (Adrian Vogel - 19 Sep, 2007)
(_ None: Re: EPS export crashes when applying section plane   (John Allison - 20 Sep, 2007)
(_ Feedback: Re: EPS export crashes when applying section plane   (Adrian Vogel - 20 Sep, 2007)
(_ None: Re: EPS export crashes when applying section plane   (John Allison - 20 Sep, 2007)
(_ None: Re: EPS export crashes when applying section plane   (Adrian Vogel - 20 Sep, 2007)
Question Graphic System OGLIX not available (exampleN02)  Keywords: OGLIX exampleN02
by Giulia De Bonis <Giulia De Bonis>,   14 Sep, 2007
I am a starter in GEANT4. Executing exampleN02, here what happens:

Visualization Manager instantiating...
Visualization Manager initialising...
Registering graphics systems...
You have successfully registered the following graphics systems.
Current available graphics systems are:
  ASCIITree (ATree)
  DAWNFILE (DAWNFILE)
  GAGTree (GAGTree)
  G4HepRep (HepRepXML)
  G4HepRepFile (HepRepFile)
  RayTracer (RayTracer)
  VRML1FILE (VRML1FILE)
  VRML2FILE (VRML2FILE)

(You see, there is no OGLIX avilable...)

and so, when the promt asks for commands, it behaves as the following:

Idle> /vis/open OGLIX
parameter value is not listed in the candidate List.
Parameter is out of candidate list (index 0)
Candidates : ATree DAWNFILE GAGTree HepRepXML 
HepRepFile RayTracer VRML1FILE VRML2FILE


I looked around for a way to get this OGLIX and followed what explained in 
http://geant4.slac.stanford.edu/g4cd/March2004/Documentation/Visualization/G4OpenGLTutorial/G4OpenGLTutorial.html

But I can't manage! I cannot set the two more OpenGL variables:
         setenv OGLFLAGS "-I$(OGLHOME)/include"
         setenv OGLLIBS "-L$OGLHOME/lib -lMesaGLU -lMesaGL"
and I cannot rebuild the base of GEANT:
/$G4INSTALL/config/architecture.gmk:292: /$G4INSTALL/config/sys/.gmk: No such file or directory
gmake: *** No rule to make target `/G4INSTALL/config/sys/.gmk'.  Stop.

Is there a way out?


P.S. I really would like to SEE something as a GEANT4 output... so, if it is not possible with OpenGL, 
can anyone help me to use the graphics systems available?

1 None: Re: Graphic System OGLIX not available (exampleN02)   (Joseph Perl - 14 Sep, 2007)
(_ None: Re: Graphic System OGLIX not available (exampleN02) (and exampleA01)   (Giulia - 17 Sep, 2007)
(_ None: Re: Graphic System OGLIX not available (exampleN02) (and exampleA01)   (Joseph Perl - 17 Sep, 2007)
None HepRep and Java  Keywords: HepRep
by YK Kwon <ykkwon11@hotmail.com>,   13 Sep, 2007

Hi,

I am trying to use the HepRep. I downloaded the HepRApp.jar from web site and tried to run with command of "java -jar HepRApp.jar". It was running however it was too slow and I couldn't open the .heprep file.

My PC's spec is as follows :

OS : FC5 Original java version : 1.4.2 (I replaced to lastest version 1.6.0_02. In this case, HepRep was not working) G4 version : 4.8.2.p01

Could you give me the idea to solve this trouble?

Kwon.

1 None: Re: HepRep and Java   (Joseph Perl - 14 Sep, 2007)
3 None: Re: HepRep and Java   (Joseph Perl - 25 Sep, 2007)
Question Is there a way to shrink Visualisationfile sizes?   Keywords: simplify visualisation
by Holger Gottschlag <hgottsch@uni-muenster.de>,   28 Aug, 2007

Hi!

In my current application i got quite a lot of replicas with small sizes, which are inside other replicas and so on.. To make it short: If i try to visualize my detector (i tried heprep and dawn) file sizes and computation time will get very large (i aborted at 3GB ... )

Is there a way to visualize only the visible parts of the detector, or a way to simplify visualisation?

Best regards, Holger

1 None: Re: Is there a way to shrink Visualisationfile sizes?   (John Allison - 28 Aug, 2007)
(_ None: Re: Is there a way to shrink Visualisationfile sizes?   (John Allison - 28 Aug, 2007)
(_ Feedback: Re: Is there a way to shrink Visualisationfile sizes?   (Holger Gottschlag - 28 Aug, 2007)
(_ None: Re: Is there a way to shrink Visualisationfile sizes?   (Joseph Perl - 28 Aug, 2007)
None Geant4.9.0 on Macintosh OSX  by taylor p connor <taylor p connor>,   14 Aug, 2007

Hello,
I am very new.  
I installed Geant4.9.0 with 4VIS_BUILD_OPENGLX_DRIVER=1, 
G4VIS_BUILD_RAYTRACERX_DRIVER=1, 
G4VIS_USE_OPENGLX=1
G4VIS_USE_RAYTRACERX=1
but when I run a program(N02) I get this error and I cannot get a picture:
 ERROR: G4VisManager::IsValidView(): Current view is not valid.
ERROR: G4VisManager::PrintInvalidPointers:
  Graphics system is OpenGLImmediateX but:
  Null scene pointer. Use "/vis/drawVolume" or "/vis/scene/create".
  Null viewer pointer. Use "/vis/viewer/create".
The program is working fine except it will give me a Visualization, anyone know what t do?
Thank you
Taylor

1 None: Re: Geant4.9.0 on Macintosh OSX   (John Allison - 15 Aug, 2007)
(_ None: Re: Geant4.9.0 on Macintosh OSX   (taylor p connor - 15 Aug, 2007)
1 None: Re: Geant4.9.0 on Macintosh OSX   (John Allison - 15 Aug, 2007)
3 None: Re: Geant4.9.0 on Macintosh OSX   (Tom Roberts - 15 Aug, 2007)
1 None: Re: Geant4.9.0 on Macintosh OSX   (taylor p connor - 15 Aug, 2007)
...
None OGLIX  by valentina reggioli <valentina reggioli>,   13 Aug, 2007
Goodevening,
I'm trying running Geant4 on my Linux pc.
Everything works with N01 but not with N02 and N03.
With the last one I've got the following message

# Use this open statement instead for OpenGL in immediate mode.
/vis/open OGLIX
/vis/sceneHandler/create OGLIX
/vis/sceneHandler/attach
/vis/viewer/create ! ! 600
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  143 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Serial number of failed request:  17
  Current serial number in output stream:  18
Can you help me?
Thanks a lot
Valentina
1 None: Re: OGLIX   (John Allison - 13 Aug, 2007)
Question about dawn  Keywords: dawn stack smashing detected
by adk <adnank@uludag.edu.tr>,   08 Aug, 2007

Hello Geant4 experts,

i have attempted to install dawn_3_88a version. it is created a prime file, but it isn't viewed. While i push the OK button on Fukui Renderer DAWN window, i meet to the following message on the shell consol:

***************************************
          Fukui  Renderer         
              DAWN                
 (Drawer for Academic WritiNgs)   
 ver 3.88a (Dev. indep. Mode)   September 20, 2005
***************************************

***** g4.prim viewer mode (default)
***** ("dawn -h" for help)

*** stack smashing detected ***: dawn terminated Aborted (core dumped) user@laptop:~/dawn_3_88a$

Could you please give me some suggestion?

yours sincerely,

          adnan 

1 Ok: Re: about dawn   (adk - 09 Aug, 2007)
Question A01app example crashes while compiling, OpenGL, WinXP  Keywords: OpenGL, error LNK2001, error LNK2019, error LNK4088
by <jesus@deadchannel.ru>,   07 Aug, 2007

hey guys, i just started to work with geant4. so, i've downloaded all the packages like it's written in installation guide, and there were no problems during geant4 build. but when i follow the installation guide and begin to compile A01app exapmle, that's what i get:

libG4OpenGL.a<G4OpenGLStoredViewer.o>: error LNK2019 : unresolved external symbol__impTranslateMessage@4 referenced in function "public virtual void ___ thiscall G4OpenGLStoredWin32Viewer::FinishView<void>"

so, also it gives errors LNK2001 & LNK4088, image may not run

what's that? is it somehow connected with AIDA working?

thanks for answering, guys

1 None: Re: A01app example crashes while compiling, OpenGL, WinXP   (Joseph Perl - 09 Aug, 2007)
1 None: Re: A01app example crashes while compiling, OpenGL, WinXP   (jesus@deadchannel.ru - 10 Aug, 2007)
(_ None: Re: A01app example crashes while compiling, OpenGL, WinXP   (Joseph Perl - 10 Aug, 2007)
(_ None: Re: A01app example crashes while compiling, OpenGL, WinXP   (jesus@deadchannel.ru - 11 Aug, 2007)
(_ None: Re: A01app example crashes while compiling, OpenGL, WinXP   (jesus@deadchannel.ru - 11 Aug, 2007)
(_ None: Re: A01app example crashes while compiling, OpenGL, WinXP   (Joseph Perl - 11 Aug, 2007)
3 None: Re: A01app example crashes while compiling, OpenGL, WinXP   (jesus@deadchannel.ru - 19 Aug, 2007)
Question OpenGL crashes on FreeBSD 6.2-RELEASE   Keywords: OpenGL, FreeBSD
by Hugo Marcelo Rivera Bretel <uair00@gmail.com>,   14 Jul, 2007

Hello: I have just installed geant4.9.0 on FreeBSD/amd64 6.2-RELEASE and it compiled smoothly. I've been using geant4.8.3 on NetBSD/amd64 3.1 with no problems at all, but when I moved to FreeBSD and installed geant4.8.3 (and after that geant4.9.0) every time I try to open an OpenGL interface it dumps core as soon I execute /vis/open OGLIX (or /vis/open OGLSX) no matter I do it in my self made application or some example application (like N07). By no means I am a X, OpenGL or even FreeBSD expert, so I'd appreciate any advice you could provide me; here's my glxinfo output, just in case:

*************************************************************
name of display: :0.0
display: :0  screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
    GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample,
    GLX_SGIX_fbconfig, GLX_EXT_texture_from_pixmap
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (1.5 Mesa 6.5.2)
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program,
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_occlusion_query, GL_ARB_point_parameters, GL_ARB_point_sprite,
    GL_ARB_shadow, GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
    GL_ARB_texture_compression, GL_ARB_texture_cube_map,
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
    GL_ARB_texture_rectangle, GL_ARB_transpose_matrix, GL_ARB_vertex_program,
    GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
    GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
    GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_clip_volume_hint, GL_EXT_copy_texture, GL_EXT_draw_range_elements,
    GL_EXT_fog_coord, GL_EXT_framebuffer_object, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_point_parameters,
    GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_shared_texture_palette, GL_EXT_stencil_wrap, GL_EXT_subtexture,
    GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_EXT_texture_lod_bias,
    GL_EXT_texture_mirror_clamp, GL_EXT_texture_object,
    GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
    GL_ATI_draw_buffers, GL_ATI_texture_env_combine3,
    GL_ATI_texture_mirror_once, GL_ATIX_texture_env_combine3,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
    GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_NV_blend_square,
    GL_NV_fragment_program, GL_NV_light_max_exponent, GL_NV_point_sprite,
    GL_NV_texgen_reflection, GL_NV_texture_rectangle, GL_NV_vertex_program,
    GL_NV_vertex_program1_1, GL_SGI_color_matrix, GL_SGI_color_table,
    GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
    GL_SGIX_shadow, GL_SGIX_shadow_ambient, GL_SUN_multi_draw_arrays

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  0  0  0  0  0  0 0 None
0x24 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16  0  0 0 None
0x25 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x26 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x27 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  0  0  0  0  0  0 0 None
0x28 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16  0  0 0 None
0x29 24 dc  0 32  0 r  y  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x2a 24 dc  0 32  0 r  .  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
*************************************************

Thanks for your time

Hugo

1 None: Re: OpenGL crashes on FreeBSD 6.2-RELEASE   (John Allison - 18 Jul, 2007)
(_ None: Re: OpenGL crashes on FreeBSD 6.2-RELEASE   (Hugo Marcelo Rivera Bretel - 18 Jul, 2007)
Question OopenGLXM  Keywords: OpenGL, OpenGLXM, Graphic, Installation
by Lucas Clemente <Lucas Clemente>,   12 Jul, 2007

Hello,

At the moment, I'm trying to install Geant4 on my Ubuntu (feisty) mashine. But I've got a little problem. Here is the important log of "./Confiure -build":

>   G4VIS_BUILD_OPENGLX_DRIVER
>   G4VIS_USE_OPENGLX
>
> It is an interface to the de facto standard 3D graphics library,
> OpenGL. It is well suited for real-time fast visualization
> and prototyping. The X11 version of the OpenGL libraries is
> required.
> EOM
> [n] y
>
>   G4VIS_BUILD_OPENGLXM_DRIVER
>   G4VIS_USE_OPENGLXM
>
> It is an interface to the de facto standard 3D graphics library,
> OpenGL. It is well suited for real-time fast visualization
> and prototyping. The X11 version of the OpenGL libraries and
> the Motif Xm extension is required.
>
> EOM
> [n] y
>
> You have selected to use OPENGLXM driver.
> But it was not found in expected place.
> Please specify the correct path where Xm is installed in your system.
>
> You can set '-' (without quotation) to CANCEL the XM flag at all:
>
> EOM

In fact, I do not know where to get the OpenCLXM driver. Is there any debian-package or source ball to install it from, or is it even installed by standard?

1 None: Re: OopenGLXM   (Mike - 12 Jul, 2007)
1 None: Re: OopenGLXM   (Lucas Clemente - 13 Jul, 2007)
3 Feedback: Re: OopenGLXM   (John - 09 Jan, 2008)
None Untitled  Keywords: OpenGL problems on FC5
by Jean-Emmanuel Groetz <Jean-Emmanuel Groetz>,   19 Jun, 2007
Hi,

I am trying to install Geant4 release 8.3 on a X86_64 platform with Fedora
Core 5. Since I was aware that it needs OpenGL tools, I had already 
install the Xwindow packages to get OpenGL utilities (mesa-libGL* and 
mesa-libGLU*).
Building and compilation of G4 seem to work fine and compilation of the 
example application A01 was done.
But problems start here: from the idle prompt and by typing /vis/open 
OGLIX, an OpenGL windows appears and disappears immediatly.
I got the following response:

Got standard cmap
Window name: viewer-0 (OpenGLImmediateX)
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  143 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  32
  Current serial number in output stream:  32

GLX appears as an extension after typing xdpyinfo.
Finally, I check the log file for installation and found these messages:

Compiling G4OpenGLBitMapStore.cc ...
src/G4OpenGLBitMapStore.cc: In function ‘const GLubyte* 
G4OpenGLBitMapStore::Get BitMap(G4OpenGLBitMapStore::Shape, G4double&,
 G4bool)’:
src/G4OpenGLBitMapStore.cc:48: attention : converting to ‘G4int’ from
‘double’

Compiling G4OpenGLSceneHandler.cc ...
src/G4OpenGLSceneHandler.cc: In member function ‘void 
G4OpenGLSceneHandler::AddC ircleSquare(const G4VMarker&, 
G4OpenGLBitMapStore::Shape)’:
src/G4OpenGLSceneHandler.cc:263: attention : passing ‘G4double’ 
for argument 1 t o ‘void glBitmap(GLsizei, GLsizei, GLfloat, GLfloat,
 GLfloat, GLfloat, const GLu byte*)’
src/G4OpenGLSceneHandler.cc:263: attention : passing ‘G4double’ for
 argument 2 t o ‘void glBitmap(GLsizei, GLsizei, GLfloat, GLfloat,
 GLfloat, GLfloat, const GLu byte*)’


Any help would be appreciated.
Jean-Emmanuel
1 None: Re: Untitled   (John Allison - 19 Jun, 2007)
None "OGLSX" causes a core dump  by Exaos Lee <Exaos Lee>,   07 Jun, 2007
Environment: 
1. Ubuntu Feisty (7.04) i386
2. gcc 4.1.2
3. mesa 6.5.2, (libgl1-mesa-dri)
4. lesstif 0.94.4
5. Geant4 8.3, Linux-g++
6. intel 82915G Integrated Graphics Controller

Problem: After successfully compiling exampleN03, then
1. Cannot see the detector shape and only particle tracks with OGLIX (OpenGL)
2. Core dump while using OGLSX, the error message is:
------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
0xb59e38a8 in ?? () from /usr/lib/dri/i915_dri.so
------------------------------------------------------
Any code using OGLSX may cause a core dump. 
I have no idea about how to solve this problem.
1 None: Re: "OGLSX" causes a core dump   (John Allison - 11 Jun, 2007)
None Compile problem for 4.8.3 example RE02  by CHEN YONG <CHEN YONG>,   06 Jun, 2007

system: windowxp+cygwin+vc2005 sp1,sdk
example:extended/runandevent/RE02 Can't get libvis_managment.a

G4VSceneHandler.cc
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\utility(54) : error C2079:
 'std::pair<_Ty1,_Ty2>::second' uses undefined class 'G4AttDef'
        with
        [
            _Ty1=const G4String,
            _Ty2=G4AttDef
        ]
        C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\vector(1083) : see
 reference to class template instantiation 'std::pair<_Ty1,_Ty2>' being compiled

        with
        [
            _Ty1=const G4String,
            _Ty2=G4AttDef
        ]
        C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\vector(1082) : whi
le compiling class template member function 'void std::vector<_Ty>::_Destroy(con
st std::map<_Kty,G4AttDef> **,const std::map<_Kty,G4AttDef> **)'
        with
        [
            _Ty=const std::map<G4String,G4AttDef> *,
            _Kty=G4String
        ]
        ../../../source/graphics_reps/include\G4AttHolder.hh(75) : see reference
 to class template instantiation 'std::vector<_Ty>' being compiled
        with
        [
            _Ty=const std::map<G4String,G4AttDef> *
        ]
make: *** [../../../tmp/WIN32-VC/G4vis_management/G4VSceneHandler.o] Error 2

1 None: Re: Compile problem for 4.8.3 example RE02   (Norman.Graf@slac.stanford.edu - 06 Jun, 2007)
(_ None: Re: Compile problem for 4.8.3 example RE02   (yong - 06 Jun, 2007)
(_ None: Re: Compile problem for 4.8.3 example RE02   (yong - 06 Jun, 2007)
(_ None: Re: Compile problem for 4.8.3 example RE02   (John Allison - 11 Jun, 2007)
None Visualisation of Voxelphantom with Nested Parameterisation  Keywords: G4VisAttributes nestedParameterisation
by Sylvia Studeny <sylvia.studeny@gsf.de>,   04 Jun, 2007

Hi,

I want to do calculations in a voxelPhantom. Up to now I did this with a simple parameterisation, scipping the empy voxels and defining several different VisualisationAttributes for the others in the parameterisation class. This worked well (I can see the Voxelphantom in colour, no problem), but is very slow. So I started to do it with Nested Parameterisation. This is running but has 2 Problems:

1.) I cannot see the phantom anymore! In nested parameterisation I have to place all voxels. Somehow, the VisAttributes don't work any more. How can I define them, so that I can check if everything is fine? (so far, all I see is a box out of many identical voxels, which only tells me that there is no overlap, but nothing more.)

2.) There is to much memory used. I found in the forum that I should make regions and stack tracks and so on, which sounds very difficult to me. Is there an example for it?

Another question: When will you be releasing the fast VoxelAlgorithm and will this be something similar to the faster voxelNavigation H.Paganetti proposed?

Thanks a lot for your answer, Sincerely, Sylvia

1 None: Re: Visualisation of Voxelphantom with Nested Parameterisation   (Joseph Perl - 04 Jun, 2007)
(_ None: Re: Visualisation of Voxelphantom with Nested Parameterisation   (Sylvia Studeny - 05 Jun, 2007)
Question Question to Enhanced Trajectory Drawing  Keywords: trajectory
by Kamil Sedlak <kamil.sedlak@cern.ch>,   04 Jun, 2007
Using Geant 4.8.2.p01 or 4.8.3, I would like to draw 
the trajectories of particles (in DAWN) with the colours 
depending on the particle ID.  I use the following commands:

/vis/open DAWNFILE
/vis/scene/create
/tracking/storeTrajectory 1
/vis/modeling/trajectories/create/drawByParcitleID

however after the last command I get the following error message:
command </vis/modeling/trajectories/create/drawByParcitleID> not found

Is there anything else I have to initialise before I can call
the drawByParticleID command?

Thanks,  Kamil
1 None: Re: Question to Enhanced Trajectory Drawing   (John Allison - 04 Jun, 2007)
None X11 on macbook pro  Keywords: opengl, Xorg, Xfree86, X11, Fink
by Ouared <Ouared>,   18 May, 2007

Hi,

I am a new g4 user. Platform: macosx 10.4.9 (tiger) (on macbook pro, 2core 2.33ghz, 2gb ram). Got a problem using opengl for A01 example and other examples.

Solution: install Xorg and Xorg.shlib through FINK (http://www.finkproject.org/index.php?phpLang=en).
which will install correctly /usr/X11R6 and /etc/X11 that you need.

Otherwise you might go through several build and compilation errors.

Reason: Xorg most recent than Xfree86 which is itself most recent than macosx native X11 provided in CD.

Other remark: FINK is excellent to check for inconsistencies and dependencies. check FINK faq.

Rafik

Question new version 4.8.4 fails in G4VSceneHandler.cc under Win32-VC  Keywords: geant4.8.3, G4VSceneHandler, win32-vc
by Valery Taranenko <Valery Taranenko>,   12 May, 2007

Hi!

New version 4.8.3 fails to build under Win32-VC in file G4VSceneHandler.cc.

I tried two computers, on both I can succesfuly build 4.8.2.p01 under either Linax or Win32-VC. However the new version I can build _only_ under Linax, and Windows fails. My Windows is XP, MS Visual Studio 2005 and Platform SDK--all standard and installation is made accordin to Joseph Perl instructions.

Here is the error log:
---
Compiling G4VSceneHandler.cc ...
G4VSceneHandler.cc
D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\utility(54) : error C2079: 'std::pair<_Ty1,_Ty2>::second' uses undefined class 'G4AttDef'
        with
        [
            _Ty1=const G4String,
            _Ty2=G4AttDef
        ]
        D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\vector(1083) : see reference to class template instantiation 'std::pair<_Ty1,_Ty2>' being compiled
        with
        [
            _Ty1=const G4String,
            _Ty2=G4AttDef
        ]
        D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\vector(1082) : while compiling class template member function 'void std::vector<_Ty>::_Destroy(const std::map<_Kty,G4AttDef> **,const std::map<_Kty,G4AttDef> **)'
        with
        [
            _Ty=const std::map<G4String,G4AttDef> *,
            _Kty=G4String
        ]
        c:/g4/geant4.8.3/source/graphics_reps/include\G4AttHolder.hh(75) : see reference to class template instantiation 'std::vector<_Ty>' being compiled
        with
        [
            _Ty=const std::map<G4String,G4AttDef> *
        ]
make[2]: *** [c:/g4/geant4.8.3/tmp/WIN32-VC/G4vis_management/G4VSceneHandler.o] Error 2
---

Dear John Allison, do you know how we can fix that?

Also I'd like to know, how it is possible to release official version w/o proper testing for supported platforms and compilers. Or maybe MS Visual Studio 2005 is not officially supported?

Thanks!

Val

1 None: Re: new version 4.8.4 fails in G4VSceneHandler.cc under Win32-VC   (Joseph Perl - 12 May, 2007)
(_ Ok: Re: new version 4.8.4 fails in G4VSceneHandler.cc under Win32-VC   (Valery Taranenko - 14 May, 2007)
News printEPS for Windows/Cygwin update!!!  by Victor_Makarov <Victor_Makarov>,   10 May, 2007

Until this moment command /vis/oglx/printEPS didn't work under Windows... I'm happy to tell you that John Allison has created a patch to solve the problem. So if any of you need one, feel free to let me or John Allison know about it. We'll send you the patch.

Usage:

There's a gzipped tar file. It's a patch to Geant4 8.2.p01. Unload it in the $G4INSTALL/source directory: cd $G4INSTALL/source tar xzf vispatch_printEPS.tgz It will overwrite files in graphics_reps and visualization. Remove all files in $G4WORKDIR and rebuild Geant4. Now you can use /vis/ogl/printEPS (pay attention: there's no-X letter after ogl).

1 None: Re: printEPS for Windows/Cygwin update!!!   (John Allison - 10 May, 2007)
Question Genat4 using OpenGL   Keywords: openGL geant4 libGLU.so.1 libGL.so.1
by Eduardo Medinaceli <Eduardo Medinaceli>,   03 May, 2007

Hello I'm using the "Geant4 Workshop Visualization Tutorial using the OpenGL Event Display" webpage to set up the visualization in Geant.

After setting the variables

setenv G4VIS_BUILD_OPENGLX_DRIVER 1 setenv G4VIS_USE_OPENGLX 1 setenv OGLHOME /usr/X11R6 setenv OGLFLAGS "-I$OGLHOME/include" setenv OGLLIBS "-L$OGLHOME/lib -lGLU -lGL"

I re build Geant4 cd $G4INSTALL/source gmake

everything was looking good, but when i try to rebuild the novice/N01 example, i get the next error

Creating shared library /home/ntd/g4work/tmp/Linux-g++/exampleN01/libexampleN01.so ... /usr/bin/ld: cannot find -lGLU

collect2: ld returned 1 exit status
gmake: *** [/home/ntd/g4work/tmp/Linux-g++/exampleN01/libexampleN01.so] Error 1
Exit 2

i'm sure that the libries libGL.so.1 and libGLU.so.1 are inside the /usr/X11R6/lib directory, so i can't understand whats going wrong

thanks a lot for any advice

1 None: Re: Genat4 using OpenGL   (John Allison - 03 May, 2007)
Question Change from portrait to landscape in DAWN  by Kamil <kamil.sedlak@cern.ch>,   03 May, 2007

How can I change the orientation of the picture from portrait orientation to landscape orientation in DAWN ?

1 None: Re: Change from portrait to landscape in DAWN   (John Allison - 03 May, 2007)
None Major New Version of Wired3, and a New Name, HepRApp  by Joseph Perl <Joseph Perl>,   12 Apr, 2007

All Wired3 users are encouraged to upgrade to the new version of this application, HepRApp.

HepRApp is a major improvement over Wired3 in terms of ease of installation, ease of use and extent of feature set. If you liked Wired3, you'll find HepRApp very familiar, but also better in every way.

HepRApp is not an entirely new application but is rather a major revision and refactoring of Wired3.14. Accordingly, this first release of HepRApp is called Version 3.15 rather than version 1.0 .

The new name, HepRApp, gives a better reflection of the application's function as a HepRep data browsing Application.

The improvements are too numerous to list here, but they start with a greatly simplified installation procedure (nothing could be simpler). Complete release notes are at: http://www.slac.stanford.edu/~perl/HepRApp/ReleaseNotes.html#3_15_0

All BaBar Event Display servers will continue to work both with the new HepRApp and with the older Wired3, so users can upgrade whenever it is most convenient for them (but the new installation is very easy, so why wait?)

A new HepRApp Home Page can be found at: http://www.slac.stanford.edu/~perl/HepRApp/

A completely revised HepRApp Tutorial for BaBar Users can be found at: http://www.slac.stanford.edu/BFROOT/www/Computing/Graphics/BaBarHepRAppTutorial/

A completely revised HepRApp Tutorial for Geant4 Users can be found at: http://geant4.slac.stanford.edu/Presentations/vis/G4HepRAppTutorial/G4HepRAppTutorial.html

Users who are comfortable with the other major HepRep browser applications, Wired4 and FRED, do not need to make any switch. All three HepRep browsers, HepRApp, Wired4 and FRED remain well supported by their respective teams.

Question Weird effect in OGLIX  Keywords: OGLIX, visualization, problem
by Justin Dingley <Justin Dingley>,   24 Mar, 2007
Hello all!

I am getting a weird effect in the visualization window using OGLIX- 
the initial view is set via /vis/viewer/set/viewpointVector 0 0 1.
When I change the vector to 1 0 0 or 0 1 0, my geometry disappears! 
Any ideas what is going on here? The section of my macro that initializes 
visualization is below:

/vis/scene/create
/vis/scene/add/volume World
/vis/open OGLIX
/vis/viewer/zoom 10.
/vis/viewer/set/viewpointVector 0 0 1
/vis/viewer/set/autoRefresh 1
/vis/drawVolume
/vis/scene/endOfEventAction accumulate
/tracking/storeTrajectory 1

I have changed my objects from wireframe to solid, but this keeps happening.
Any thoughts would be appreciated.

Thanks.

Justin Dingley
Rensselaer Polytechnic
Nuclear Engineering
1 None: Re: Weird effect in OGLIX   (John Allison - 25 Mar, 2007)
Question Error message from DAWN  Keywords: vis dawn camera position
by Dennis Haggerty <Dennis Haggerty>,   23 Mar, 2007

In a very simple simulation (just a slab) I get the following message:

ERROR: You tried to draw an object behind your camera position.
       Try again with a larger (or AUTO) camera distance.
       Good luck!

The vis commands I'm using are:

/vis/viewer/reset

/vis/viewer/zoom 1.0

/vis/viewer/set/viewpointThetaPhi 45 45

/vis/viewer/set/style wireframe

It does not seem to matter what angles I choose, I get the same message.

I've never seen this message before.

Also the eps figure that results is not complete. It shows the slab but only a very small fraction of the tracks.

My simulation is very small. I'm simply trying to understand the scattering inside a 350 angstrom Polyimid foil. So my detector geometry is simply

solidF2b = new G4Tubs("F2b",0.0, 0.00004*mm, 0.0000350/2.0*mm, 0.0, 2.0*G4pi);

Any ideas where this is comming from? and how to fix it.

Thanks

Dennis

1 None: Re: Error message from DAWN   (John Allison - 23 Mar, 2007)
1 None: Re: Error message from DAWN   (Dennis Haggerty - 23 Mar, 2007)
3 None: Re: Error message from DAWN   (dennis Haggerty - 23 Mar, 2007)
1 None: Re: Error message from DAWN   (John Allison - 27 Mar, 2007)
...
Question VRML image too dark (Cortona vrml client)  Keywords: VRML dark light
by Alain Ferragut <Alain Ferragut>,   20 Mar, 2007

Hi, I am using now VRML2FILE to display the geometry in Firefox. The only problem is that the image is too dark, even by using the "headlight" option of the viewer plugin (Cortona VRML viewer). Is there a way to increase the light with the G4 viewer commands ? Thanks,

Alain

1 None: Re: VRML image too dark (Cortona vrml client)   (John Allison - 20 Mar, 2007)
(_ None: Re: VRML image too dark (Cortona vrml client)   (Alain Ferragut - 20 Mar, 2007)
None printEPS not working  Keywords: vis/oglx/printEPS
by Sylvia Studeny <sylvia.studeny@gsf.de>,   12 Mar, 2007

Hi, First I want to say that the new printEPS-command was a very good idea! Unfortunately it is not working with me:

/vis/oglx/printEPS
X Error of failed request:  GLXBadContextState
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  162
  Current serial number in output stream:  162

After that, my programm is terminated.

I have a very simple geometry with an orb and a tube inside (this is very small). But the command is also not working when I try an example (novice/N02). I have the newest version: geant4.8.2.p01.

I don't remember exactly, but I thought that I tried it once before I installed the patch and it worked then.

I also tried it with my laptop which has a newer GL-version, but there was the same mistake. ddd gave the same info.

Hope you can solve the problem, because this feature would really be usefull! Greetings, Sylvia

1 None: Re: printEPS not working   (John Allison - 12 Mar, 2007)
None SL4 OpenGL -> Windows EXCEED-8,9 "X Error bad match" problem  by Guy Barrand <Guy Barrand>,   09 Mar, 2007
   Hello 
 
  A note to point out a problem we fall on in LHCb with our display
 and that may interest G4 vis people using OpenGL related drivers.

  We have seen that the OpenGL coming with SL4 simply does
 not work when attacking an X server EXCEED-3D of version 8,9 
 (then running on a Windows). Any OpenGL apps we tried fails with a :

X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  139 (GLX)
  Minor opcode of failed request:  21 ()
  Serial number of failed request:  10
  Current serial number in output stream:  10
 
  (If running Inventor, it stops with some SoXt error message
 but it is the upper problem which is behind).

  It appears that this happens very early, in fact in the 
 glXChooseVisual which is the first thing someone do when
 programming OpenGL with X11.

  The problem disappears with the version 11 of EXCEED-3D.
 Then if working with such an X server and wanting to work 
 with some remote Linux distrib with GL environment similar 
 to SL4, think to upgrade your EXCEED-3D !

  For info the related GL libs (given by ldd) was :
        libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x0000003c8e500000)
        libGLU.so.1 => /usr/X11R6/lib64/libGLU.so.1 (0x0000003006e00000)
        libGL.so.1 => /usr/X11R6/lib64/libGL.so.1 (0x0000003006c00000)
        libc.so.6 => /lib64/tls/libc.so.6 (0x0000003a22700000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003a22c00000)
        libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x0000003c8e700000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003a24e00000)
        libm.so.6 => /lib64/tls/libm.so.6 (0x0000003a22a00000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003a25200000)
        libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000003b4eb00000)
        libXxf86vm.so.1 => /usr/X11R6/lib64/libXxf86vm.so.1 (0x0000003c91900000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003a22500000)
 (and the problem was not related to 64 bits. It did not work too
  on SL4 32 bits) (and things where ok on SL3 !!!.


   Bon week-end

     Guy
 
None AttDef, parsing back G4String -> G4ThreeVector with G4BestUnit ?  by Guy Barrand <Guy Barrand>,   08 Mar, 2007
   Hello 

  I want to deal with the AttDefs (for example with G4Trajectory) in
my things. G4Trajectory defines, for example, IMag which is a 
G4ThreeVector.
   The G4Trajectory::GetAttDefs uses the G4BestUnit to convert
the G4ThreeVector to a G4String. Fine. But it appears that
I need in my application to reconvert back the G4String to 
a G4ThreeVector. But I do not see any method in G4BestUnit
to do that. Do I have missed something ?

  If there is no "back parser" in G4, it would be fine
to have one (I think that two methods in G4BestUnit to handle
the case of double and G4ThreeVector would be fine).

 The point is that the G4String contains the units and
then recovering the right number may be not trivial...
Waiting that, I am going to do the job in my things, but
it would be fine (if not in G4) to have such facility
coming in Geant4.

  Cheers
 
    Guy

1 None: Re: AttDef, parsing back G4String -> G4ThreeVector with G4BestUnit ?   (John Allison - 08 Mar, 2007)
1 None: Re: AttDef, parsing back G4String -> G4ThreeVector with G4BestUnit ?   (Guy Barrand - 08 Mar, 2007)
3 None: Re: AttDef, parsing back G4String -> G4ThreeVector with G4BestUnit ?   (John Allison - 08 Mar, 2007)
None /vis/open OIX and crash   by Alain Ferragut <Alain Ferragut>,   05 Mar, 2007

Hello, I am now at the stage of OpenInventor execution (see post #385) I have now another problem. In the macro file for the visualization I set : /vis/scene/create /vis/open OIX

I use G4UIXm as a terminal. I start my program. I can see UIXm terminal window, OpenInventor window is opening and..the whole session crashes! No more keyboard or mouse. What is wrong ??

By the way, I have .la object archive for Coin and SoXt. I have installed "standard" Coin and SoXt libraries from coin3D web site.

I feel I am lost....

Thanks, Alain

1 None: Re: /vis/open OIX and crash   (John Allison - 07 Mar, 2007)
(_ None: Re: /vis/open OIX and crash   (Alain Ferragut - 09 Mar, 2007)
(_ None: Re: /vis/open OIX and crash   (Alain Ferragut - 09 Mar, 2007)
(_ None: Re: /vis/open OIX and crash   (Alain Ferragut - 12 Mar, 2007)
Question geant4.8.2 build fails on opengl driver location  by Paul Van Allsburg <Paul Van Allsburg>,   02 Mar, 2007

I am trying to install geant4.8.2 but I can't get past the -build error

You have selected to use OpenGL driver. But it was not found in expected place.

I've found

find /usr -name libGLU*

/usr/X11R6/lib64/libGLU.so.1 /usr/X11R6/lib64/libGLU.so.1.3 /usr/lib64/libGLU.so.1

and

rpm -qa | grep esa

xorg-x11-Mesa-libGL-6.8.2-1.FC3.13 xorg-x11-Mesa-libGLU-6.8.2-1.FC3.13 xorg-x11-Mesa-libGL-6.8.2-1.FC3.13

and tried

# export OGLHOME=/usr/X11R6/lib
# export OGLFLAGS="-I$OGLHOME/include"
# export OGLLIBS="-L$OGLHOME/lib -lMesaGLU -lMesaGL"
# ./Configure -build
and
# export OGLHOME=/usr/X11R6/lib64
# export OGLFLAGS="-I$OGLHOME/include"
# export OGLLIBS="-L$OGLHOME/lib -lMesaGLU -lMesaGL"
# ./Configure -build

this machine is running fc3

Thanks! Paul Van Allsburg

1 None: Re: geant4.8.2 build fails on opengl driver location   (John Allison - 03 Mar, 2007)
(_ None: Re: geant4.8.2 build fails on opengl driver location   (Tom Roberts - 03 Mar, 2007)
(_ None: Re: geant4.8.2 build fails on opengl driver location   (Paul Van Allsburg - 06 Mar, 2007)
(_ None: Re: geant4.8.2 build fails on opengl driver location   (John Allison - 07 Mar, 2007)
(_ None: Re: geant4.8.2 build fails on opengl driver location   (Paul Van Allsburg - 07 Mar, 2007)
(_ None: Re: geant4.8.2 build fails on opengl driver location   (John Allison - 07 Mar, 2007)
None lInventorXt not found with COIN3D  Keywords: inventorXt library
by Alain Ferragut <Alain Ferragut>,   02 Mar, 2007

Hi, Now, I installed coin3D and SoXt. Compilation of G4 OpenInventor driver is successufull The problem comes at link stage for a specific application, such as exampleN01. It says "cannot find lInventorXt". Actually, there is no libInventorXt library with Coin. Should I set a symbolic link to point to some Coin library ???? I set LD_LIBRARY_PATH to /usr/local/lib where it seems that all libraries are installed....

Thanks for your help

Alain

1 None: Re: lInventorXt not found with COIN3D   (John Allison - 02 Mar, 2007)
(_ None: Re: lInventorXt not found with COIN3D   (Alain Ferragut - 04 Mar, 2007)
(_ None: Re: lInventorXt not found with COIN3D   (Alain Ferragut - 04 Mar, 2007)
Question the "__ctype_b" compilation error with Inventor  by Alain Ferragut <Alain Ferragut>,   01 Mar, 2007

Hi, I have a basic problem to install OpenInventor 2-1-5-10 (from SGI). I have RedHat Enterprise3, and tries to install from source tar ball. The compilation is fine until it crashes with this message : /usr/local/inventor/lib/libInventor.so: undefined reference to __ctype_b. Did anybody see this problem before ??? thanks, Alain

1 None: Re: the "__ctype_b" compilation error with Inventor   (Guy Barrand - 01 Mar, 2007)
3 None: Re: the "__ctype_b" compilation error with Inventor   (Tom Roberts - 01 Mar, 2007)
1 Question: Re: the "__ctype_b" compilation error with Inventor   (Alain Ferragut - 01 Mar, 2007)
(_ None: Re: the "__ctype_b" compilation error with Inventor   (Guy Barrand - 01 Mar, 2007)
Question How to get the ATLAS Group prim files  by <wuxy68@sohu.com>,   06 Feb, 2007

Dear All,

In those days, I study the Geant4 Visualization. For easy way to study, I read the ATLAS Work Group Visualization at http://geant4.kek.jp/~tanaka/GEANT4/ATLAS_G4_PRIMFIG/ and download those files. But the problem is that I don't know how to get those "PRIM" files.

   Thank You, 
   Best regards,

      Xiang-yao Wu

1 None: Re: How to get the ATLAS Group prim files   (John Allison - 06 Feb, 2007)
3 None: Re: How to get the ATLAS Group prim files   (Xiang Yao WU - 07 Feb, 2007)
1 None: Re: How to get the ATLAS Group prim files   (John Allison - 07 Feb, 2007)
(_ None: Re: How to get the ATLAS Group prim files   (Xiang Yao Wu - 08 Feb, 2007)
None Wrong orientation of daughter volume. WIRED3.14.1  by G.I.Vasilyev <Gennady.Vasilyev@pop.ioffe.rssi.ru>,   12 Jan, 2007

Hello. If I use DAWN or OGLIX the daughter volume is placed with correct orientation. If I use WIRED3.14.1 the daughter volume is placed with wrong orientation for 4 volumes. …………………………………………………………………………………………………….. G4double RScatDet=8.15*cm; solidScatDet=new G4Trd("solidScatDet",5.156*cm,4.175*cm,5.0*cm,5.0*cm,0.85*cm); logicScatDet=new G4LogicalVolume(solidScatDet,Sci,"logicScatDet"); G4double rotZ[6]; rotZ[0]=150.; rotZ[1]=210.; rotZ[2]=270.; rotZ[3]=330.; rotZ[4]=30.; rotZ[5]=90.;

for(G4int i=0;i<6;i++){
  G4double X=RScatDet*cos((i+1)*60.*deg);
  G4double Y=RScatDet*sin((i+1)*60.*deg);
  G4RotationMatrix* rm = new G4RotationMatrix;
  rm->rotateX(90.*deg);
  rm->rotateY(rotZ[i]*deg);

  physiScatDet == new G4PVPlacement(rm,  
      		    G4ThreeVector(X,Y,0.*cm),        
                                logicScatDet,     
		        "physiScatDet",     
                               logicWorld,           
                                false,             
				i);             
}
solidSDViemk = new G4Tubs("SDViemk",0,3.9*cm,0.4*cm, 0,360*deg);
logicSDViemk =  new G4LogicalVolume(solidSDViemk,  Vacuum,  "SDViemk");     
physiSDViemk = new G4PVPlacement(0, G4ThreeVector(0.,0.5*cm,4.5*mm),        
                                                  logicSDViemk,     
				                 "physiSDViemk",        
			                             logicScatDet,           
                                                                false,             
			                        	0);                 
………………………………………………………………………………..
The physiSDViemk appears revolved concerning the physiScatDet
 (i=0,1,3,4)   in spite of that the rotation matrix  is equal to 0.             

None Open Inventor on Mac OS X  by Tom Roberts <Tom Roberts>,   04 Jan, 2007

After a rather painful effort I have finally succeeded in building OpenInventor for Mac OS X (10.4.8 Intel). It works just like it does on Linux. Unfortunately it must be run under X windows.

Is it possible to build it to run directly on the Mac (i.e. without X windows)?

Note I had to make 2 edits to Coin (deleting an extraneous ";" in two different places). Note also that -framework didn't work, neither did Sc21 (fo0r Cocoa) nor SoGt. But SoXt works with the 2 edits.

1 None: Re: Open Inventor on Mac OS X   (John Allison - 08 Jan, 2007)
None Blank display in Wired4, works in Wired3  by Tom Roberts <Tom Roberts>,   04 Jan, 2007

I use the HepRepFile viewer:
 /vis/open HepRepFile
 /vis/drawVolume
 /vis/scene/add/trajectories
 /vis/scene/endOfEventAction accumulate
 /run/beamOn 5

This gives a file G4data0.heprep with 5 events that displays just fine in wired3. But Wired4 gives a blank screen (no data items below DetectorGeometry or EventData).

I get identical results on Linux (FC 5), WindowsXP/Cygwin, and Mac OSX (10.4.8 Intel) -- my program runs on all 3, and so do Wired3 and Wired4. In all 3 cases I installed jas3 from its website and then used its plugin manager to install HepRep, Wired4, and Wired4BaseLibrary. My program uses Geant4 8.2.

I've heard a rumor that there is a "next event" button I need to push, but I cannot find it (there are grayed-out left and right arrows where it would plausibly be).

I downloaded the sample A01Output.heprep file from the Wired4 website, and it displays fine (no "next event" needed).

How do I get this to work?

The two files start out very differently; here is the start of my
program's output G4data0.heprep (1076 lines total):
 <?xml version="1.0" ?>
 <heprep:heprep xmlns:heprep="http://www.slac.stanford.edu/~perl/heprep/"
   xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:schemaLocation="HepRep.xsd">
   <heprep:attdef extra="" name="Generator" type="Physics"
   desc="HepRep Data Generator"/>
   <heprep:attvalue showLabel="NONE" name="Generator"
     value=" Geant4 version Name: geant4-08-02    (15-December-2006)"/>
   <heprep:attdef extra="" name="LVol" type="Physics"
   desc="Logical Volume"/>
   <heprep:attdef extra="" name="Region" type="Physics"
...

1 None: Re: Blank display in Wired4, works in Wired3   (Mark Donszelmann - 05 Jan, 2007)
3 None: Re: Blank display in Wired4, works in Wired3   (Mark Donszelmann - 05 Jan, 2007)
1 None: Re: Blank display in Wired4, works in Wired3   (Tom Roberts - 05 Jan, 2007)
1 None: Re: Blank display in Wired4, works in Wired3   (Mark Donszelmann - 05 Jan, 2007)
... 1 Message(s)
3 None: Re: Blank display in Wired4, works in Wired3   (Mark Donszelmann - 05 Jan, 2007)
...
Question Problems with clipping volume  Keywords: visualization, clipping volume
by Henning Gast <Henning Gast>,   04 Jan, 2007

Hi,

with G4.8.2, I visualize my detector with one quarter clipped away, using the following command:

/vis/scene/add/volume World ! ! box m -2 0 -2 0 -2 2

This already gives impressive results, but I encountered two problems:

1.) One physical volume is not clipped away, and I get the following error message (many times):

 WARNING: G4PhysicalVolumeModel::DescribeSolid: clipped polyhedron for
   solid "trdLateralStiffener" not defined due to error during Boolean processing.
 BooleanProcessor::execute : unknown faces !!!
 BooleanProcessor: boolean operation failed

The resulting picture shows my detector properly clipped, except for my volume "trdLateralStiffener" still floating around in the volume supposedly clipped away. My suspicion is that the clipping doesn't work properly for volumes entirely contained inside the clipping volume, as "trdLateralStiffener" is the only volume for which that is the case in my geometry.

The problem occurs in VRMLFILE and in OpenGL, I haven't tried any others yet.

2.) It seems that for circular volumes, such as tubes or spheres, the visualization attribute given by VisAtt->SetForceLineSegmentsPerCircle(100); is ignored when using a clipping volume. Without clipping, I get beautifully smoothed circles, but when I use a clipping volume, I get octagons instead of circles.

Would anyone have any insights on these?

Cheers

Henning

1 None: Re: Problems with clipping volume   (John Allison - 04 Jan, 2007)
None no OpenInventor on WIN32-VC  by Tom Roberts <Tom Roberts>,   30 Dec, 2006

I have successfully built my program on WIN32-VC (thanks guys!), without OpenInventor. I have also built my program on Linux-g++ using Coin (open-source OpenInventor).

On WIN32-VC I built and installed Coin into C:/Coin, set 
 OIVHOME=C:/Coin
 COINDIR=C:/Coin
 OIVFLAGS=-IC:/Coin/include
 OIVLIBS=-LC:/Coin/lib -lsowin1 -lcoin2
and re-ran "Configure -build" telling it to use OIWIN32. The build 
succeeded, as did "Configure -install", "Configure", and building
my program. But I noticed it never entered the OpenInventor directory, 
and indeed my program runs but has no OIX visualization driver, nor 
OIWIN32 or anything similar.

"Configure -build" never gave the option for OIX, just OIWIN32.

The installation instructions don't discuss OpenInventor at all -- I learned the above config (on Linux-g++) from this forum. How do I get it to work on WIN32-VC ?

1 None: Re: no OpenInventor on WIN32-VC   (Tom Roberts - 04 Jan, 2007)
None OGLIXm leads to "X Error of failed request: BadMatch (invalid parameter attributes)"  by Kin Yip <kinyip@bnl.gov>,   25 Dec, 2006

Hi,

I run an GEANT4 executable in a remote machine from either my laptop running Windows (with Xmanager as the XWindow emulator) or my Desktop running Linux (RedHat ws3).

Both seems Ok if I use OGLIX/OGLSX, but if I use OGLIXm/OGLSXm, it seems to run OK in my laptop (Xmanager/XWindows) but I start from my Linux box, it'd crash and say:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  1 (X_CreateWindow)
  Serial number of failed request:  124
  Current serial number in output stream:  193

I attach more error messages below. Any idea what I should do in my Linux box ?

Kin

[geant] =I= /vis/open OGLIXm
[geant] =I= /vis/sceneHandler/create OGLIXm
[geant] =I= /vis/viewer/create ! ! 600
[geant] =I= Got standard cmap
Warning: translation table syntax error: Unknown keysym name:  osfActivate
Warning: ... found while parsing ':<Key>osfActivate:        ManagerParentActivate()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name:  osfBeginLine
Warning: ... found while parsing ':<Key>osfBeginLine:       ManagerGadgetTraverseHome()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name:  osfBeginLine
Warning: ... found while parsing ':c <Key>osfBeginLine:     SWTopLineGrab()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name:  osfActivate
Warning: ... found while parsing ':<Key>osfActivate:        ManagerParentActivate()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name:  osfSelect
Warning: ... found while parsing ':<Key>osfSelect:          MenuBarGadgetSelect()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name:  osfActivate
Warning: ... found while parsing ':<Key>osfActivate:        ManagerParentActivate()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name:  osfSelect
Warning: ... found while parsing ':<Key>osfSelect:          ManagerGadgetSelect()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown keysym name:  osfHelp
Warning: ... found while parsing ':<Key>osfHelp:            MenuHelp()'
Warning: String to TranslationTable conversion encountered errors
[geant] =I= Created menubar
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  1 (X_CreateWindow)
  Serial number of failed request:  124
  Current serial number in output stream:  193

1 None: Re: OGLIXm leads to "X Error of failed request: BadMatch (invalid parameter attributes)"   (Kin Yip - 25 Dec, 2006)
(_ None: Re: OGLIXm leads to "X Error of failed request: BadMatch (invalid parameter attributes)"   (John Allison - 28 Dec, 2006)
1 None: Re: OGLIXm leads to "X Error of failed request: BadMatch (invalid parameter attributes)"   (Kin Yip - 28 Dec, 2006)
3 None: Re: OGLIXm leads to "X Error of failed request: BadMatch (invalid parameter attributes)"   (Kin Yip - 28 Dec, 2006)
Question OpenGL vis: cannot see detector shape, only particle tracks  Keywords: OpenGL
by J. Martín-Albo <jmartina@mail.cern.ch>,   08 Nov, 2006

Hi,

after upgrading my system (Kubuntu Dapper to Edgy), I cannot see the detector shape (it works in other machines), only the particle tracks generated with /run/beamOn. There's no error message or way to know what's going on.

I have checked my OpenGL configuration and it seems OK. Any idea? Do I have to recompile Geant4 after a complete system upgrade?

Thanks in advance,

Justo Martín-Albo

1 None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Joseph Perl - 08 Nov, 2006)
1 Question: Re: OpenGL vis: cannot see detector shape, only particle tracks   (J. Martín-Albo - 09 Nov, 2006)
(_ None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Mark M. Ito - 30 Nov, 2006)
(_ None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Mark M. Ito - 30 Nov, 2006)
(_ None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (John Allison - 01 Dec, 2006)
(_ Feedback: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Mark M. Ito - 01 Dec, 2006)
(_ None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (John Allison - 04 Dec, 2006)
(_ Feedback: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Mark M. Ito - 05 Dec, 2006)
(_ None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (John Allison - 05 Dec, 2006)
(_ More: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Mark M. Ito - 05 Dec, 2006)
(_ None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Mark M. Ito - 19 Dec, 2006)
(_ None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (TaihsiangHo - 12 Apr, 2007)
(_ Idea: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Sean Kirkwood - 19 May, 2007)
1 None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Exaos Lee - 07 Jun, 2007)
...
3 None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Exaos Lee - 07 Jun, 2007)
... 2 Message(s)
3 None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Alexey Lubashevskiy - 11 May, 2007)
1 Feedback: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Valery Taranenko - 11 May, 2007)
1 None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Alexey Lubashevskiy - 14 May, 2007)
...
3 Idea: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Sean Kirkwood - 19 May, 2007)
5 Question: SL5 with Geant4.8.3: dont work wireframe mode   (Victor - 06 Jun, 2007)
1 None: Re: SL5 with Geant4.8.3: dont work wireframe mode   (boutayeb - 26 Mar, 2008)
(_ None: Re: SL5 with Geant4.8.3: dont work wireframe mode   (John Allison - 04 Apr, 2008)
7 None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Sean Kirkwood - 27 Jun, 2007)
1 None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Chris - 27 Sep, 2007)
9 None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Raymond Tsang - 09 Oct, 2007)
1 None: Re: OpenGL vis: cannot see detector shape, only particle tracks   (Abraham Zamudio - 09 Oct, 2007)
Question dawn crashes redhat linux enterprise  Keywords: dawn
by Alain Ferragut <aferragut@free.fr>,   03 Nov, 2006

Hello , I am installing dawn on redhat linux enterprise gcc3.2. dawn version is 3.88a-X. When I want to read a prim file by typing dawn <aname>.prim, the dawn panel control opens, but when I push OK button, the window disappears and I get this error message : display : no such file or directory.

what is it ??? Thanks,

Alain

Question Wrong Material in Parameterized Volume Appears in Wired3  Keywords: Wired3, parameterization, visualization, material
by Ioannis Sechopoulos <Ioannis Sechopoulos>,   02 Nov, 2006

I have 3 copies of a parameterized volume, each one with a different material. If I run ASCIITree, it outputs the different densities for each copy correctly. But if I "pick" the volumes in Wired3, I get the same value for the material property: the one that is originally assigned to the logical volume before the parameterization. Is this a known feature in Wired3, or could my parameterization be wrong?

Thanks!

1 None: Re: Wrong Material in Parameterized Volume Appears in Wired3   (Joseph Perl - 02 Nov, 2006)
3 None: Re: Wrong Material in Parameterized Volume Appears in Wired3   (Joseph Perl - 06 Nov, 2006)
5 None: Material issue   (ryan romero - 04 May, 2007)
1 None: Re: Material issue   (John Allison - 08 May, 2007)
None OGLXm not present?  by Theo DuBose <Theo DuBose>,   01 Nov, 2006

When I attempt to compile with the install configured to use OGLXm, I get the following error message:

/usr/bin/ld: Undefined symbols: G4OpenGLStoredXm::G4OpenGLStoredXm(

Does anyone know why this is happening? I am running Mac OS 10.4.8 on an Intel Mac, and I got my Openmotif install from Fink. I then copied to /X11R6/include/ everything in include under Xm and to /X11R6/lib/ I copied libXm.3.0.1.dylib, libXm.a, and libXm.la. Anyone have an idea of what is happening?

1 None: Re: OGLXm not present?   (John Allison - 02 Nov, 2006)
(_ None: Re: OGLXm not present?   (Theo DuBose - 02 Nov, 2006)
(_ None: Re: OGLXm not present?   (John Allison - 02 Nov, 2006)
Question Crash when Visualizing a G4EllipticalCone  by Malcolm Ellis <mellis@fnal.gov>,   24 Oct, 2006

We have recently attempted to use a G4EllipticalCone in the description of the MICE experiment.

Unfortunately, when attempting to visualize this geometry, the program crashes in the AllocateMemory method of HepPolyhedron (gdb listing is included below).

This crash has been observed on a number of different Linux systems using versions 8.1 and 8.1.p01 (with CLHEP 1.9.2.2) compiled with g++ 3.2.3

Does anyone know if this is due to an error on my part, or is this a bug in G4 that should be reported?

The code that is creating the G4EllipticalCode is:

solidMirror = new G4EllipticalCone("EllipticalCone",1.0*mm,0.5*mm,40.*mm,20.*mm);

logicMirror = new G4LogicalVolume(solidMirror, mater, "tmp",0,0,0);

placeMirror = new G4PVPlacement(0,G4ThreeVector(0.,0.,0.),logicMirror,"",mlv->GetLogicalVolume(),0,0);

Where mater is a G4Material* that is defined and mlv is a G4VPhysicalVolume* that the object is to be placed inside.

The output from gdb is:

> #0  0x04c57bbd in _int_malloc () from /lib/tls/libc.so.6
> #1  0x04c56ecd in malloc () from /lib/tls/libc.so.6
> #2  0x0485d56e in operator new (sz=80851328) at new_op.cc:48
> #3  0x0485d6cf in operator new[] (sz=1) at new_opv.cc:36
> #4  0x087c3d0e in HepPolyhedron::AllocateMemory ()
> #5  0x087c4e7a in HepPolyhedron::RotateAroundZ ()
> #6  0x087cc97c in 
> HepPolyhedronEllipticalCone::HepPolyhedronEllipticalCone
> ()
> #7  0x087bfed8 in 
> G4PolyhedronEllipticalCone::G4PolyhedronEllipticalCone ()
> #8  0x086dfbf7 in G4EllipticalCone::CreatePolyhedron ()
> #9  0x086dfc4b in G4EllipticalCone::GetPolyhedron ()
> #10 0x085617bf in G4VSceneHandler::RequestPrimitives ()
> #11 0x085600b5 in G4VSceneHandler::AddSolid ()
> #12 0x086dfaea in G4EllipticalCone::DescribeYourselfTo ()
> #13 0x0865f6f9 in G4PhysicalVolumeModel::DescribeSolid ()
> #14 0x0865f2e5 in G4PhysicalVolumeModel::DescribeAndDescend ()
> #15 0x0865e3d1 in G4PhysicalVolumeModel::VisitGeometryAndGetVisReps ()
> #16 0x0865f1c7 in G4PhysicalVolumeModel::DescribeAndDescend ()
> #17 0x0865e3d1 in G4PhysicalVolumeModel::VisitGeometryAndGetVisReps ()
> #18 0x0865f1c7 in G4PhysicalVolumeModel::DescribeAndDescend ()
> #19 0x0865e3d1 in G4PhysicalVolumeModel::VisitGeometryAndGetVisReps () 
> #20 0x0865dc47 in G4PhysicalVolumeModel::DescribeYourselfTo ()
> #21 0x08561aa3 in G4VSceneHandler::ProcessScene ()
> #22 0x08563e37 in G4VViewer::ProcessView ()
> #23 0x082cdb81 in G4VRML2FileViewer::DrawView () at
> src/G4HadronicInteractionWrapper.cc:31
> #24 0x085981e6 in G4VisCommandSceneNotifyHandlers::SetNewValue ()
> #25 0x087da420 in G4UIcommand::DoIt ()
> #26 0x087ea8fb in G4UImanager::ApplyCommand ()
> #27 0x08564f77 in G4VVisCommand::UpdateVisManagerScene ()
> #28 0x085a07a4 in G4VisCommandViewerRefresh::SetNewValue ()
> #29 0x087da420 in G4UIcommand::DoIt ()
> #30 0x087ea8fb in G4UImanager::ApplyCommand ()
> #31 0x0859d2e7 in G4VisCommandViewerFlush::SetNewValue ()
> #32 0x087da420 in G4UIcommand::DoIt ()
> #33 0x087ea8fb in G4UImanager::ApplyCommand ()
> #34 0x082ec088 in G4UIterminal::ExecuteCommand () at
> src/G4HadronicInteractionWrapper.cc:31
> #35 0x082ebd0c in G4UIterminal::SessionStart () at
> src/G4HadronicInteractionWrapper.cc:31
> #36 0x081b43b4 in main (argc=3, argv=0xbfffbdb4) at
> /home/csf/ellis/mice/MICE/Applications/Simulation/Simulation.cc:282

1 None: Re: Crash when Visualizing a G4EllipticalCone   (John Allison - 25 Oct, 2006)
(_ None: Re: Crash when Visualizing a G4EllipticalCone   (John Allison - 05 Dec, 2006)
Question suppressing materials info on BeamOn  Keywords: supress materials dump
by David Callender <quantumstringfield@yahoo.com>,   23 Oct, 2006

Hi,

How do I suppress the materials info dump to the terminal when I call BeamOn?

Thanks

1 None: Re: suppressing materials info on BeamOn   (Vladimir Ivanchenko - 24 Oct, 2006)
3 None: Re: suppressing materials info on BeamOn   (David Callender - 28 Oct, 2006)
1 None: Re: suppressing materials info on BeamOn   (Vladimir Ivanchenko - 30 Oct, 2006)
(_ Ok: Re: suppressing materials info on BeamOn   (David Callender - 30 Oct, 2006)
None Problem opening OpenInventor (iv) file.  by Norman Graf <Norman Graf>,   17 Oct, 2006
Dear Developers,
 I am experiencing difficulties opening .iv files written out from Geant4.
I am using the latest version of the OpenInventor SceneViewer (Version 6.0)
from Mercury Computer Systems, running on Windows XP. I encounter error
messages of the following type:


  Inventor warning in SoBase::createInstance();
  Creating unknown node for object of type
  Geant4_SoDetectorTreeKit (could not open DSO)

followed by:

  Inventor error in SoFieldData::readFieldDescriptions();
  UnknownNode does not have a field named
  alternateRep

and:

  Inventor error in SoFieldData::readFieldDescriptions();
  UnknownNode does not have a field named
  callBackList

and so forth...


I suspected the complexity of my detector might have something to do with
this, so tried drawing just a simple box. This caused the same problem, so
I suspect the problem is in how the files are written out.
 Is there something special which I must do in order to be able to read
the persistent .iv files?
Thank you very much,
Norman Graf
1 None: Re: Problem opening OpenInventor (iv) file.   (Guy Barrand - 18 Oct, 2006)
(_ None: Re: Problem opening OpenInventor (iv) file.   (Norman Graf - 18 Oct, 2006)
None Problem with hit visualization in VRML  Keywords: VRML Hit Visualization
by Apostolos Tsirigotis <Apostolos Tsirigotis>,   16 Oct, 2006

Hi, I want to visualize hits in Geant4 using VRML2FILE visualization drives. I do it (as in example novice/N05) by drawing the Sensitive Volume in a specific color:

----------------------------------------

.......
void MyHit::Draw()
{
  G4VisManager* pVisManager = (G4VisManager*)G4VVisManager::GetConcreteInstance();
  if(pVisManager)
  {
    G4Transform3D trans(*(physVol->GetObjectRotation()),physVol->GetTranslation());
    G4VisAttributes attribs;
    const G4VisAttributes* pVA = physVol->GetLogicalVolume()->GetVisAttributes();
    if(pVA) attribs = *pVA;
    G4Colour colour(1.,0.,0.);
    attribs.SetColour(colour);
    attribs.SetForceWireframe(false);
    attribs.SetForceSolid(true);
    pVisManager->Draw(*physVol,attribs,trans);
  }
}
........

----------------------------------------

The problem is that (the same happens when I compile and run example novice/N05) the output VRML file is not recognized by the viewer (VRMLview), because it contains the line " Global tag: Empty" every time the hitted sensitive volume is visualized.

------------------------------------------

..........
    shape{
..........
	}
#---------- SOLID: WARNING: GetCurrentTag() not implemented by concrete class.
  Global tag: Empty
	Shape {
		appearance Appearance {
.........
        }
.........

---------------------------------------------

If I delete this line the file is OK. Is there any way to stop this line from appearing?

Thanks

1 None: Re: Problem with hit visualization in VRML   (John Allison - 16 Oct, 2006)
None VRML seems not to respect geometry hierarchy  by Norman Graf <Norman Graf>,   13 Oct, 2006
Dear Developers,
  The VRML files written by GEANT4 seem not to respect the geometry 
hierarchy. All of the volumes are at the same level, making it
difficult to interact with structured portions of the detector.

  I am using geant4-08-01-patch-01 with the following macro commands:

/vis/scene/create
/vis/scene/add/volume
/vis/open VRML2FILE
/vis/viewer/flush

Is this expected behavior, or is there something I need to set up
in order to preserve the parent-child relationships of my geometry?
Thank you very much,
Norman Graf
None View angle in DAWN  Keywords: DAWN view OpenGl
by Sylvia Studeny <sylvia.studeny@gsf.de>,   12 Oct, 2006

Hi,
I have quite an urgent problem with the DAWN viewer. I work with the upper
part of a voxelphantom. To have a nice picture of it (which I need uregntly),
 I wanted to plot it in an angle, that one can see the interior and the 
shape of the phantom. In OpenGL, everything works fine:
with "/vis/viewer/set/viewpointThetaPhi 240 240 deg" I get a perfect picture.
As I need to safe it, I tried the same in DAWN, which looks totally different
(quite the other direction as in OpenGl).
I also tried "/vis/viewer/set/viewpointVector 1 1 -1" which again gave me a
good picture in DAWN, but a wrong one in DAWN.
What else can I try? Or is there a way to save a picture in OpenGl?
Please help me!
Sylvia

1 None: Re: View angle in DAWN   (John Allison - 12 Oct, 2006)
3 None: Re: View angle in DAWN   (John Allison - 12 Oct, 2006)
1 None: Re: View angle in DAWN   (Sylvia Studeny - 12 Oct, 2006)
None bus error writing HepRepFile  Keywords: bus error writing HepRepFile
by shri kanekal <shri kanekal>,   10 Oct, 2006
I just completed installation of of GEANT 4.7.1  on OS X 10.4 Tiger. I am getting an error when
I write heprep files. The error is 

 HepRepFile writing to G4Data0.heprep
 Bus error  

The simulation works, i.e, doe not crash when visualization is off. It also works fine with 
visualization ON on OS X 10.3.9 and writes heprep files.

The macro file is short - 

/run/initialize
/vis/open HepRepFile
/vis/scene/create
/vis/scene/add/volume expHall
/vis/viewer/flush
/vis/sceneHandler/attach
/vis/scene/add/trajectories
/vis/scene/add/hits
/tracking/storeTrajectory 1
#
/run/beamOn 10
exit

Is this  a  OS X 10.4 problem ?   What is the solution ?

thanks
Shri
1 None: Re: bus error writing HepRepFile   (shri.kanekal@lasp.colorado.edu - 12 Oct, 2006)
1 None: Re: bus error writing HepRepFile   (Mark Donszelmann - 12 Oct, 2006)
3 None: Re: bus error writing HepRepFile   (Joseph Perl - 13 Oct, 2006)
5 None: Re: bus error writing HepRepFile   (shri.kanekal@lasp.colorado.edu - 13 Oct, 2006)
Question secondary X event loop  Keywords: X event loop, Visualization, UI
by Sascha Moehrs <sascha.moehrs@df.unipi.it>,   03 Oct, 2006

Hi,

I have a problem with interactive visualization of events:

If I use a G4UIterminal as G4UIsession along with OpenInventor-X or OpenGL-Motif for visualization, then (after setting up the viewer) I get the following message:

"You have entered a viewer secondary X event loop" Quit it with an 'Escape' viewer button.

which basically means, that I have to press the 'Escape' button of the viewer after every event.

However, if I use a G4UIXm as G4UIsession along with one of the above mentioned viewers, I do not get the 'secondary loop message', i.e. I don't have to press the escape button after every event.

It would be great, if somebody could tell me:

What are secondary X event loops for?

I guess the behavior of the loops can be changed in G4VInteractorManager, where the functions 'EnableSecondaryLoop' and 'DisableSecondaryLoop' can be found. But how is it possible to get an instance/a handle to the interactor manager in place?

Why is the default behavior for G4UIXm and G4UIterminal different?

Thanks much, Sascha

1 None: Re: secondary X event loop   (John Allison - 05 Oct, 2006)
(_ Ok: Re: secondary X event loop   (Sascha Moehrs - 09 Oct, 2006)
Question How to draw trajectories only of primary particles?   Keywords: primary particle trajectory
by maddalena <maddalena.antonello@lngs.infn.it>,   26 Sep, 2006

Hi,

I would like to draw on a heprep file only trajectories of the primary generated particles and not of the secondary particles.

How can I do it? Is there some interactive command (/tracking/... ) I can add to my macro or do I have to implement a non interactive visualization class?

Thank you

Maddalena

1 None: Re: How to draw trajectories only of primary particles?   (Joseph Perl - 26 Sep, 2006)
None Viewer Problem in X86-64 Linux, Help!  by Yoomin <djdial@phya.snu.ac.kr>,   03 Sep, 2006

I bought a new computer, of which CPU is opteron 170. Anticipating better performance, I installed x86-64 Linux(Ubuntu Dapper), then installed geant4 on this system. All things works well but the viewer: configured well, example compiled well, simulated well... When I tried to execute an example using the viewer, it showed message below and failed to show any viewer. I tried once more on Fedora5, but it didn't work. HELP!

=======================================================================
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  143 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  30
  Current serial number in output stream:  30
=======================================================================

1 None: Re: Viewer Problem in X86-64 Linux, Help!   (John Allison - 04 Sep, 2006)
Question Hit from sensitive detector are created without primary or secondary trajectories  Keywords: Hit secondary trace
by Jacquemier Jean <Jacquemier Jean>,   31 Aug, 2006

Hi,

I use G4VSensitiveDetector and G4VHit classes in my G4 simulation for digitalisation. Most of Hits seem to be correct, they are corresponding either to primary or secondary trajectories in a sensitive detector. But some Hits are not correct, because they are not corresponding neither primary or secondary trajectory. Could these "bad" hits correspond to trajectories which are not displayed; or do this mistake comes from my source code ( bug ).

Have a look here: http://lappweb.in2p3.fr/~jacquem/geant4/badHits.JPG Hits are draw in white. All trajectories are drawing.

Thank you for your response. Best regard, Jean

1 None: Re: Hit from sensitive detector are created without primary or secondary trajectories   (John Allison - 31 Aug, 2006)
(_ None: Re: Hit from sensitive detector are created without primary or secondary trajectories   (Jacquemier Jean - 01 Sep, 2006)
Sad error compiling dawn_3_86 with gcc 4.1.1  by Blair Smith <bmsmith@lsu.edu>,   19 Aug, 2006

Hi,

Can someone please suggest a course of action for me? The problem is that I could not compile DAWN with gcc 4.1.1 I had DAWN working OK with gcc 3.4 I'm running FC5, intel i386

Here is the output after running, `make clean`, `./configure_min` and then `make`:

 g++ -c  -O2  main.cc
 g++ -c  -O2  main_selector1.cc
 g++ -c  -O2  main_selector2.cc
 g++ -c  -O2  parameter.cc
 g++ -c  -O2  command1.cc
 command1.cc:18: error: explicit specialization of ‘int QuickSort<NameAndValue>::compare0(NameAndValue*, NameAndValue*)’ must be introduced by ‘template <>’
 command1.cc:18: error: template-id ‘compare0<>’ for ‘int QuickSort<NameAndValue>::compare0(NameAndValue*, NameAndValue*)’ does not match any template declaration
 command1.cc:18: error: invalid function declaration
 command1.cc:33: error: explicit specialization of ‘int QuickSort<NameAndValue>::compare1(NameAndValue*, NameAndValue*)’ must be introduced by ‘template <>’
 command1.cc:33: error: template-id ‘compare1<>’ for ‘int QuickSort<NameAndValue>::compare1(NameAndValue*, NameAndValue*)’ does not match any template declaration
 command1.cc:33: error: invalid function declaration
 make: *** [command1.o] Error 1

I assume dawn_3_86 works on some machines. So what's the likely cause of this problem for me? I have no idea myself.

Thanks.

None Problem with DCUT  Keywords: DCUT, plane sectioning
by Theo DuBose <Theo DuBose>,   16 Aug, 2006

Hello all.

I am attempting to get a planar cut using /vis/viewer/set/sectionPlane. For seemingly any paramters, I get a black screen with strings of dots. This happens both in wireframe and solid visualization using OGLSXm. Any advice on how to fix this?

--Theo

1 None: Re: Problem with DCUT   (John Allison - 16 Aug, 2006)