SlideShare una empresa de Scribd logo
1 de 18
Descargar para leer sin conexión
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>

Más contenido relacionado

Destacado

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
 

Destacado (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
 

Similar a 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
 

Similar a 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
 

Último

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 

Último (20)

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 

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>