SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Downloaden Sie, um offline zu lesen
Fluka Raytracer



Implementing a Raytracer inside FLUKA

           David Siñuela Pastor
           <dsinuela@cern.ch>
Fluka Raytracer - Outline
●   Why?
●   Alternative solutions
●   How raytracing works
●   Implementation in FLUKA
●   Problem solving
●   Samples
●   Time schedule
●   Future improvements
Fluka Raytracer - Why?
●   The current geometry is complex to visualize
●   External visualization tools with separate
    development
●   FLUKA only plots 2 dimensional plane cuts
●   Lack of interactivity
Fluka Raytracer – Alternative
                 Solutions
●   OpenGL: Realtime viewport of the geometry
    mesh in Flair
●   Raytracing
    ●   External: Using Povray as renderer
    ●   Internal: Using the FLUKA geometry engine
Fluka Raytracer – Alternatives
               Speed                 Correction     Dependencies         Features




OpenGL         ●Initial conversion   Lots of        ● Opengl libraries   ✔ Realtime
viewport in    &syncrhonization      inaccuracies   ● External math.     ✔ Interactive

Flair          ●Realtime                              libraries          ✔ User friendly

               visualization                        ● Hardware?




External RT.
With PovRay




Internal
FLUKA RT.
Fluka Raytracer – Alternatives
               Speed                 Correction     Dependencies         Features




OpenGL         ●Initial conversion   Lots of        ● Opengl libraries   ✔ Realtime
viewport in    &syncrhonization      inaccuracies   ● External math.     ✔ Interactive

Flair          ●Realtime                              libraries          ✔ User friendly

               visualization                        ● Hardware?




External RT.   Slow
               ●                     Some           ●   PovRay           ✔ PovRay is a
With PovRay                          inaccuracies                          well-known
                                                                           raytracer
                                                                         ✔ Optimized

                                                                         ✔ Community



Internal
FLUKA RT.
Fluka Raytracer – Alternatives
               Speed                 Correction          Dependencies            Features




OpenGL         ●Initial conversion   Lots of             ● Opengl libraries      ✔ Realtime
viewport in    &syncrhonization      inaccuracies        ● External math.        ✔ Interactive

Flair          ●Realtime                                   libraries             ✔ User friendly

               visualization                             ● Hardware?




External RT.   Slow
               ●                     Some                ●   PovRay              ✔ PovRay is a
With PovRay                          inaccuracies                                  well-known
                                                                                   raytracer
                                                                                 ✔ Optimized

                                                                                 ✔ Community



Internal       Slow
               ●                     Same geometry       ●   No external needs   ✔ Accuracy
FLUKA RT.                            as the simulation       *image conversion   ✔ Lattices

                                                                                 ✔ Built-in
Fluka Raytracer – How it works?




     General raytracing algorithm
            (Image by Wikipedia)
Fluka Raytracer – Implementation
●   Input cards
    ● CAMERA
    ● LIGHT


    ● MATERIAL PROPERTIES


●   FLUKA functions used
    ●   GEOREG: Region number
    ●   GEOFAR: Intersection detection & distance
    ●   GEONOR: Compute normals
Fluka Raytracer – Problem solving
●   FORTRAN 77: doesn't allow recurrency
     ●   Implementation of a binary tree in a fixed size array
         –   Maximum depth level in subrays
●   Performance: Raytracing is slooow
     ●   Use of FLUKA geometry engine (optimizations)
     ●   Adaptative Sampling with heuristic
         –   Estimate the complexity of the scene on each point and
             compare it to neightbours
     ●   Caching as much as possible
Fluka Raytracer – Samples
Fluka Raytracer – Samples




Sample input file
Features:
● Camera model

● Material ambient, diffuse and specular colors

● Material transparency, reflectivity and fuzziness

● Index of refraction of materials

● Diffuse and specular illumination

● Shadow casting with transparent shadows

● Light colors

● Adaptative antialiasing
ITER Geometry
Geometry by Elias Lebbos
ITER Geometry – Adaptative sampling heuristic for detail detection
                                              Geometry by Elias Lebbos
ITER Geometry –
Detail with shadows
Geometry by Elias Lebbos
Fluka Raytracer – Schedule
●   Currently converting from C to FORTRAN
●   We can have a working code in about 1 or 2
    months
Fluka Raytracer – Future
              improvements
●   Textures (procedural or images)
●   Implement spotlights
●   Performance optimizations
●   Orthogonal projection
●   Show USRBIN data as texture
●   Plane cut of the scene?
Fluka Raytracer




          Thank you
David Siñuela Pastor <dsinuela@cern.ch>

Weitere ähnliche Inhalte

Andere mochten auch

Palestra com Angela Santos
Palestra com Angela SantosPalestra com Angela Santos
Palestra com Angela SantosPriscila Souza
 
Liquidoscorporales2 091125085646 Phpapp01
Liquidoscorporales2 091125085646 Phpapp01Liquidoscorporales2 091125085646 Phpapp01
Liquidoscorporales2 091125085646 Phpapp01galipote
 
Power point electricitat
Power point electricitatPower point electricitat
Power point electricitatacunilles
 
Estris Del Dibuix
Estris Del DibuixEstris Del Dibuix
Estris Del Dibuixlunadan
 
StoreInfo Informatiezuil
StoreInfo InformatiezuilStoreInfo Informatiezuil
StoreInfo InformatiezuilStoreInfo
 
How do you pick the right Storage vendor?
How do you pick the right Storage vendor?How do you pick the right Storage vendor?
How do you pick the right Storage vendor?Violin Memory
 
Lake 4 20-13 membership mtg notes
Lake 4 20-13 membership mtg notesLake 4 20-13 membership mtg notes
Lake 4 20-13 membership mtg notesCUHW Local 4034
 
Using Semantic Technologies to Create Virtual Families from Historical Vital ...
Using Semantic Technologies to Create Virtual Families from Historical Vital ...Using Semantic Technologies to Create Virtual Families from Historical Vital ...
Using Semantic Technologies to Create Virtual Families from Historical Vital ...Christophe Debruyne
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)theijes
 

Andere mochten auch (17)

Los Reinos
Los ReinosLos Reinos
Los Reinos
 
Palestra com Angela Santos
Palestra com Angela SantosPalestra com Angela Santos
Palestra com Angela Santos
 
El fantasma de l'escola
El fantasma de l'escolaEl fantasma de l'escola
El fantasma de l'escola
 
Liquidoscorporales2 091125085646 Phpapp01
Liquidoscorporales2 091125085646 Phpapp01Liquidoscorporales2 091125085646 Phpapp01
Liquidoscorporales2 091125085646 Phpapp01
 
Unchistecillo
UnchistecilloUnchistecillo
Unchistecillo
 
Nombres i objectes quotidians
Nombres i objectes quotidiansNombres i objectes quotidians
Nombres i objectes quotidians
 
small business
small businesssmall business
small business
 
Power point electricitat
Power point electricitatPower point electricitat
Power point electricitat
 
Estris Del Dibuix
Estris Del DibuixEstris Del Dibuix
Estris Del Dibuix
 
StoreInfo Informatiezuil
StoreInfo InformatiezuilStoreInfo Informatiezuil
StoreInfo Informatiezuil
 
How do you pick the right Storage vendor?
How do you pick the right Storage vendor?How do you pick the right Storage vendor?
How do you pick the right Storage vendor?
 
Lake 4 20-13 membership mtg notes
Lake 4 20-13 membership mtg notesLake 4 20-13 membership mtg notes
Lake 4 20-13 membership mtg notes
 
Using Semantic Technologies to Create Virtual Families from Historical Vital ...
Using Semantic Technologies to Create Virtual Families from Historical Vital ...Using Semantic Technologies to Create Virtual Families from Historical Vital ...
Using Semantic Technologies to Create Virtual Families from Historical Vital ...
 
Cancer de mama
Cancer de mamaCancer de mama
Cancer de mama
 
First session
First sessionFirst session
First session
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 
Credit 101
Credit 101Credit 101
Credit 101
 

Ähnlich wie FLUKA Raytracer 04/09

Rubyconf presentation
Rubyconf presentationRubyconf presentation
Rubyconf presentationkrevuri
 
Ensuring Performance in a Fast-Paced Environment (CMG 2014)
Ensuring Performance in a Fast-Paced Environment (CMG 2014)Ensuring Performance in a Fast-Paced Environment (CMG 2014)
Ensuring Performance in a Fast-Paced Environment (CMG 2014)Martin Spier
 
Alex_Vlachos_Advanced_VR_Rendering_GDC2015
Alex_Vlachos_Advanced_VR_Rendering_GDC2015Alex_Vlachos_Advanced_VR_Rendering_GDC2015
Alex_Vlachos_Advanced_VR_Rendering_GDC2015Alex Vlachos
 
Benchmarks, performance, scalability, and capacity what's behind the numbers
Benchmarks, performance, scalability, and capacity what's behind the numbersBenchmarks, performance, scalability, and capacity what's behind the numbers
Benchmarks, performance, scalability, and capacity what's behind the numbersJustin Dorfman
 
Benchmarks, performance, scalability, and capacity what s behind the numbers...
Benchmarks, performance, scalability, and capacity  what s behind the numbers...Benchmarks, performance, scalability, and capacity  what s behind the numbers...
Benchmarks, performance, scalability, and capacity what s behind the numbers...james tong
 
Why quants love NAG & NAG from Excel
Why quants love NAG & NAG from ExcelWhy quants love NAG & NAG from Excel
Why quants love NAG & NAG from ExcelMarcin Krzysztofik
 
GPU Computing With Apache Spark And Python
GPU Computing With Apache Spark And PythonGPU Computing With Apache Spark And Python
GPU Computing With Apache Spark And PythonJen Aman
 
Lofar python meetup jan9 2013
Lofar python meetup jan9 2013Lofar python meetup jan9 2013
Lofar python meetup jan9 2013Gijs Molenaar
 
PSGL (PlayStation Graphics Library)
PSGL (PlayStation Graphics Library)PSGL (PlayStation Graphics Library)
PSGL (PlayStation Graphics Library)Slide_N
 
Byteman and The Jokre, Sanne Grinovero (JBoss by RedHat)
Byteman and The Jokre, Sanne Grinovero (JBoss by RedHat)Byteman and The Jokre, Sanne Grinovero (JBoss by RedHat)
Byteman and The Jokre, Sanne Grinovero (JBoss by RedHat)OpenBlend society
 
Wireless hacking 20120126
Wireless hacking 20120126Wireless hacking 20120126
Wireless hacking 20120126Paul Tanner
 
OSMC 2014: Naemon 1, 2, 3, N | Andreas Ericsson
OSMC 2014: Naemon 1, 2, 3, N | Andreas EricssonOSMC 2014: Naemon 1, 2, 3, N | Andreas Ericsson
OSMC 2014: Naemon 1, 2, 3, N | Andreas EricssonNETWAYS
 
【Unite 2018 Tokyo】スクリプタブルレンダーパイプライン入門
【Unite 2018 Tokyo】スクリプタブルレンダーパイプライン入門【Unite 2018 Tokyo】スクリプタブルレンダーパイプライン入門
【Unite 2018 Tokyo】スクリプタブルレンダーパイプライン入門Unity Technologies Japan K.K.
 
Gainesville Web Developer Group, Sept 2012
Gainesville Web Developer Group, Sept 2012Gainesville Web Developer Group, Sept 2012
Gainesville Web Developer Group, Sept 2012Daniel Woods
 
Developing Next-Generation Games with Stage3D (Molehill)
Developing Next-Generation Games with Stage3D (Molehill) Developing Next-Generation Games with Stage3D (Molehill)
Developing Next-Generation Games with Stage3D (Molehill) Jean-Philippe Doiron
 
"Making Computer Vision Software Run Fast on Your Embedded Platform," a Prese...
"Making Computer Vision Software Run Fast on Your Embedded Platform," a Prese..."Making Computer Vision Software Run Fast on Your Embedded Platform," a Prese...
"Making Computer Vision Software Run Fast on Your Embedded Platform," a Prese...Edge AI and Vision Alliance
 
WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...
WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...
WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...AMD Developer Central
 

Ähnlich wie FLUKA Raytracer 04/09 (20)

Rubyconf presentation
Rubyconf presentationRubyconf presentation
Rubyconf presentation
 
Ensuring Performance in a Fast-Paced Environment (CMG 2014)
Ensuring Performance in a Fast-Paced Environment (CMG 2014)Ensuring Performance in a Fast-Paced Environment (CMG 2014)
Ensuring Performance in a Fast-Paced Environment (CMG 2014)
 
Sensible scaling
Sensible scalingSensible scaling
Sensible scaling
 
Alex_Vlachos_Advanced_VR_Rendering_GDC2015
Alex_Vlachos_Advanced_VR_Rendering_GDC2015Alex_Vlachos_Advanced_VR_Rendering_GDC2015
Alex_Vlachos_Advanced_VR_Rendering_GDC2015
 
Benchmarks, performance, scalability, and capacity what's behind the numbers
Benchmarks, performance, scalability, and capacity what's behind the numbersBenchmarks, performance, scalability, and capacity what's behind the numbers
Benchmarks, performance, scalability, and capacity what's behind the numbers
 
Benchmarks, performance, scalability, and capacity what s behind the numbers...
Benchmarks, performance, scalability, and capacity  what s behind the numbers...Benchmarks, performance, scalability, and capacity  what s behind the numbers...
Benchmarks, performance, scalability, and capacity what s behind the numbers...
 
Why quants love NAG & NAG from Excel
Why quants love NAG & NAG from ExcelWhy quants love NAG & NAG from Excel
Why quants love NAG & NAG from Excel
 
GPU Computing With Apache Spark And Python
GPU Computing With Apache Spark And PythonGPU Computing With Apache Spark And Python
GPU Computing With Apache Spark And Python
 
Lofar python meetup jan9 2013
Lofar python meetup jan9 2013Lofar python meetup jan9 2013
Lofar python meetup jan9 2013
 
Project Tango
Project TangoProject Tango
Project Tango
 
PSGL (PlayStation Graphics Library)
PSGL (PlayStation Graphics Library)PSGL (PlayStation Graphics Library)
PSGL (PlayStation Graphics Library)
 
Byteman and The Jokre, Sanne Grinovero (JBoss by RedHat)
Byteman and The Jokre, Sanne Grinovero (JBoss by RedHat)Byteman and The Jokre, Sanne Grinovero (JBoss by RedHat)
Byteman and The Jokre, Sanne Grinovero (JBoss by RedHat)
 
Wireless hacking 20120126
Wireless hacking 20120126Wireless hacking 20120126
Wireless hacking 20120126
 
OSMC 2014: Naemon 1, 2, 3, N | Andreas Ericsson
OSMC 2014: Naemon 1, 2, 3, N | Andreas EricssonOSMC 2014: Naemon 1, 2, 3, N | Andreas Ericsson
OSMC 2014: Naemon 1, 2, 3, N | Andreas Ericsson
 
【Unite 2018 Tokyo】スクリプタブルレンダーパイプライン入門
【Unite 2018 Tokyo】スクリプタブルレンダーパイプライン入門【Unite 2018 Tokyo】スクリプタブルレンダーパイプライン入門
【Unite 2018 Tokyo】スクリプタブルレンダーパイプライン入門
 
Gainesville Web Developer Group, Sept 2012
Gainesville Web Developer Group, Sept 2012Gainesville Web Developer Group, Sept 2012
Gainesville Web Developer Group, Sept 2012
 
Developing Next-Generation Games with Stage3D (Molehill)
Developing Next-Generation Games with Stage3D (Molehill) Developing Next-Generation Games with Stage3D (Molehill)
Developing Next-Generation Games with Stage3D (Molehill)
 
"Making Computer Vision Software Run Fast on Your Embedded Platform," a Prese...
"Making Computer Vision Software Run Fast on Your Embedded Platform," a Prese..."Making Computer Vision Software Run Fast on Your Embedded Platform," a Prese...
"Making Computer Vision Software Run Fast on Your Embedded Platform," a Prese...
 
WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...
WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...
WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...
 
GPU Algorithms and trends 2018
GPU Algorithms and trends 2018GPU Algorithms and trends 2018
GPU Algorithms and trends 2018
 

Kürzlich hochgeladen

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Kürzlich hochgeladen (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

FLUKA Raytracer 04/09

  • 1. Fluka Raytracer Implementing a Raytracer inside FLUKA David Siñuela Pastor <dsinuela@cern.ch>
  • 2. Fluka Raytracer - Outline ● Why? ● Alternative solutions ● How raytracing works ● Implementation in FLUKA ● Problem solving ● Samples ● Time schedule ● Future improvements
  • 3. Fluka Raytracer - Why? ● The current geometry is complex to visualize ● External visualization tools with separate development ● FLUKA only plots 2 dimensional plane cuts ● Lack of interactivity
  • 4. Fluka Raytracer – Alternative Solutions ● OpenGL: Realtime viewport of the geometry mesh in Flair ● Raytracing ● External: Using Povray as renderer ● Internal: Using the FLUKA geometry engine
  • 5. Fluka Raytracer – Alternatives Speed Correction Dependencies Features OpenGL ●Initial conversion Lots of ● Opengl libraries ✔ Realtime viewport in &syncrhonization inaccuracies ● External math. ✔ Interactive Flair ●Realtime libraries ✔ User friendly visualization ● Hardware? External RT. With PovRay Internal FLUKA RT.
  • 6. Fluka Raytracer – Alternatives Speed Correction Dependencies Features OpenGL ●Initial conversion Lots of ● Opengl libraries ✔ Realtime viewport in &syncrhonization inaccuracies ● External math. ✔ Interactive Flair ●Realtime libraries ✔ User friendly visualization ● Hardware? External RT. Slow ● Some ● PovRay ✔ PovRay is a With PovRay inaccuracies well-known raytracer ✔ Optimized ✔ Community Internal FLUKA RT.
  • 7. Fluka Raytracer – Alternatives Speed Correction Dependencies Features OpenGL ●Initial conversion Lots of ● Opengl libraries ✔ Realtime viewport in &syncrhonization inaccuracies ● External math. ✔ Interactive Flair ●Realtime libraries ✔ User friendly visualization ● Hardware? External RT. Slow ● Some ● PovRay ✔ PovRay is a With PovRay inaccuracies well-known raytracer ✔ Optimized ✔ Community Internal Slow ● Same geometry ● No external needs ✔ Accuracy FLUKA RT. as the simulation *image conversion ✔ Lattices ✔ Built-in
  • 8. Fluka Raytracer – How it works? General raytracing algorithm (Image by Wikipedia)
  • 9. Fluka Raytracer – Implementation ● Input cards ● CAMERA ● LIGHT ● MATERIAL PROPERTIES ● FLUKA functions used ● GEOREG: Region number ● GEOFAR: Intersection detection & distance ● GEONOR: Compute normals
  • 10. Fluka Raytracer – Problem solving ● FORTRAN 77: doesn't allow recurrency ● Implementation of a binary tree in a fixed size array – Maximum depth level in subrays ● Performance: Raytracing is slooow ● Use of FLUKA geometry engine (optimizations) ● Adaptative Sampling with heuristic – Estimate the complexity of the scene on each point and compare it to neightbours ● Caching as much as possible
  • 12. Fluka Raytracer – Samples Sample input file Features: ● Camera model ● Material ambient, diffuse and specular colors ● Material transparency, reflectivity and fuzziness ● Index of refraction of materials ● Diffuse and specular illumination ● Shadow casting with transparent shadows ● Light colors ● Adaptative antialiasing
  • 14. ITER Geometry – Adaptative sampling heuristic for detail detection Geometry by Elias Lebbos
  • 15. ITER Geometry – Detail with shadows Geometry by Elias Lebbos
  • 16. Fluka Raytracer – Schedule ● Currently converting from C to FORTRAN ● We can have a working code in about 1 or 2 months
  • 17. Fluka Raytracer – Future improvements ● Textures (procedural or images) ● Implement spotlights ● Performance optimizations ● Orthogonal projection ● Show USRBIN data as texture ● Plane cut of the scene?
  • 18. Fluka Raytracer Thank you David Siñuela Pastor <dsinuela@cern.ch>