SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
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>

Contenu connexe

En vedette

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
 

En vedette (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
 

Similaire à 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
 

Similaire à 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
 

Dernier

“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdfMuhammad Subhan
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfFIDO Alliance
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptxFIDO Alliance
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...FIDO Alliance
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingScyllaDB
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024Stephen Perrenod
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Hiroshi SHIBATA
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...ScyllaDB
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...FIDO Alliance
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfFIDO Alliance
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightSafe Software
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewDianaGray10
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideStefan Dietze
 

Dernier (20)

“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 

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>