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

Liquidoscorporales2 091125085646 Phpapp01
Liquidoscorporales2 091125085646 Phpapp01Liquidoscorporales2 091125085646 Phpapp01
Liquidoscorporales2 091125085646 Phpapp01
galipote
 
Power point electricitat
Power point electricitatPower point electricitat
Power point electricitat
acunilles
 

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 presentation
krevuri
 
Alex_Vlachos_Advanced_VR_Rendering_GDC2015
Alex_Vlachos_Advanced_VR_Rendering_GDC2015Alex_Vlachos_Advanced_VR_Rendering_GDC2015
Alex_Vlachos_Advanced_VR_Rendering_GDC2015
Alex 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 numbers
Justin Dorfman
 
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
Marcin Krzysztofik
 
Lofar python meetup jan9 2013
Lofar python meetup jan9 2013Lofar python meetup jan9 2013
Lofar python meetup jan9 2013
Gijs Molenaar
 
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
 

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

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 

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>