Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render with Opticks #55

Open
ggalgoczi opened this issue Nov 10, 2024 · 6 comments
Open

Render with Opticks #55

ggalgoczi opened this issue Nov 10, 2024 · 6 comments
Assignees

Comments

@ggalgoczi
Copy link
Collaborator

In order to visualize with GPU we have the G4CXOpticks::render(). Need to explore this.

@ggalgoczi ggalgoczi self-assigned this Nov 10, 2024
@ggalgoczi
Copy link
Collaborator Author

ggalgoczi commented Nov 11, 2024

It seems there is an example:
G4CXRenderTest.cc

I tried to do the same calls:

SEventConfig::SetRGModeRender(); // before geom definition
gx->render();

And define the environment variables:


eye=-0.4,0,0
moi=-1
export EYE=${EYE:-$eye} 
export MOI=${MOI:-$moi}
export UP=0,0,1
export LOOK=0,0,0.5

Got segfault:
SEvt::beginPhoton FATAL not in_range idx 99

@ggalgoczi
Copy link
Collaborator Author

Let's create a separate executable just for rendering IMO as done in G4CXRenderTest.cc.

@ggalgoczi
Copy link
Collaborator Author

First successful rendering of the pfRICH drum:

nonamepfx_ALL00007

@ggalgoczi
Copy link
Collaborator Author

ggalgoczi commented Nov 12, 2024

Comparison of G4 GUI and Opticks rendering for esi-g4ox/geom/pfrich_min.gdml

$EYE = 0.00002,-0.00004,-0.11
$LOOK = 0,0,0.5

Screenshot from 2024-11-12 18-56-49
Screenshot from 2024-11-12 18-49-31

@ggalgoczi
Copy link
Collaborator Author

@plexoos I remember you played with the path of simulated rays. Do you happen to have an idea how to include them in these renders?

@plexoos
Copy link
Member

plexoos commented Nov 13, 2024

My approach was outside Opticks, but there is a way to create an animation from a simulated event. You can see these instructions how to accomplish that: https://groups.io/g/opticks/message/526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants