Lecture 16 Thin Lenses – Ray Tracing

Total Page:16

File Type:pdf, Size:1020Kb

Lecture 16 Thin Lenses – Ray Tracing LECTURE 16 THIN LENSES – RAY TRACING Instructor: Kazumi Tolich Lecture 16 2 ¨ 18.4 Image formation by refraction ¨ 18.5 Thin lenses: ray tracing ¤ Converging lenses ¤ Real images ¤ Magnification ¤ Virtual images ¤ Diverging lenses Quiz: 18.4-1 18.4 Image formation by refraction ¨ The optical axis is the line through the object and perpendicular to the boundary. ¨ Using Snell’s law and geometry, you can show that the image distance is given by � �" = % � �& 18.5 Thin lenses: ray tracing ¨ A lens uses refraction of light rays at curved surfaces to form an image. ¨ Ray tracing is a pictorial method used to understand image formation. Quiz: 18.5-1 18.5 Thin lenses: ray tracing – focal point and focal length ¨ The incoming rays parallel to the optical axis converge at (converging lens) or appear to diverge from (diverging lens) the focal point of the lens. ¨ The focal point on the incident-light side is the near focal point; the focal point on the other side is the far focal point. ¨ The focal length � of the lens is the distance of the focal point from the lens. 18.5 Converging lenses ¨ A thin lens is an idealized lens whose thickness is zero and that lies entirely in a plane called the lens plane. ¨ Within the thin-lens approximation, all refraction occurs as the rays cross the lens plane, and all distances are measured from the lens plane. ¨ The special rays for a converging lens: Quiz: 18.5-2 through 18.5-4 18.5 Magnification ¨ The magnification � describes the orientation and size of the image relative to the object and its size. �" � = − � *+ ¤ � = is the ratio of image height to object height. * ¤ If � > 0, the image is upright relative to the object. ¤ If � < 0, the image is inverted relative to the object. 18.5 Virtual images ¨ When the object is inside the focal point of a converging lens, the refracted rays do not converge. ¨ Rays appear to diverge from a virtual image. ¨ Because no rays actually pass through a virtual image, placing a screen at the image plane would not produce an image. ¨ We use a sign convention defining the image distance �" to be negative for a virtual image. 18.5 Diverging lenses ¨ The special rays for a diverging lens: Quiz: 18.5-5 through 18.5-7.
Recommended publications
  • Ray-Tracing in Vulkan.Pdf
    Ray-tracing in Vulkan A brief overview of the provisional VK_KHR_ray_tracing API Jason Ekstrand, XDC 2020 Who am I? ▪ Name: Jason Ekstrand ▪ Employer: Intel ▪ First freedesktop.org commit: wayland/31511d0e dated Jan 11, 2013 ▪ What I work on: Everything Intel but not OpenGL front-end – src/intel/* – src/compiler/nir – src/compiler/spirv – src/mesa/drivers/dri/i965 – src/gallium/drivers/iris 2 Vulkan ray-tracing history: ▪ On March 19, 2018, Microsoft announced DirectX Ray-tracing (DXR) ▪ On September 19, 2018, Vulkan 1.1.85 included VK_NVX_ray_tracing for ray- tracing on Nvidia RTX GPUs ▪ On March 17, 2020, Khronos released provisional cross-vendor extensions: – VK_KHR_ray_tracing – SPV_KHR_ray_tracing ▪ Final cross-vendor Vulkan ray-tracing extensions are still in-progress within the Khronos Vulkan working group 3 Overview: My objective with this presentation is mostly educational ▪ Quick overview of ray-tracing concepts ▪ Walk through how it all maps to the Vulkan ray-tracing API ▪ Focus on the provisional VK/SPV_KHR_ray_tracing extension – There are several details that will likely be different in the final extension – None of that is public yet, sorry. – The general shape should be roughly the same between provisional and final ▪ Not going to discuss details of ray-tracing on Intel GPUs 4 What is ray-tracing? All 3D rendering is a simulation of physical light 6 7 8 Why don't we do all 3D rendering this way? The primary problem here is wasted rays ▪ The chances of a random photon from the sun hitting your scene is tiny – About 1 in
    [Show full text]
  • Directx ® Ray Tracing
    DIRECTX® RAYTRACING 1.1 RYS SOMMEFELDT INTRO • DirectX® Raytracing 1.1 in DirectX® 12 Ultimate • AMD RDNA™ 2 PC performance recommendations AMD PUBLIC | DirectX® 12 Ultimate: DirectX Ray Tracing 1.1 | November 2020 2 WHAT IS DXR 1.1? • Adds inline raytracing • More direct control over raytracing workload scheduling • Allows raytracing from all shader stages • Particularly well suited to solving secondary visibility problems AMD PUBLIC | DirectX® 12 Ultimate: DirectX Ray Tracing 1.1 | November 2020 3 NEW RAY ACCELERATOR AMD PUBLIC | DirectX® 12 Ultimate: DirectX Ray Tracing 1.1 | November 2020 4 DXR 1.1 BEST PRACTICES • Trace as few rays as possible to achieve the right level of quality • Content and scene dependent techniques work best • Positive results when driving your raytracing system from a scene classifier • 1 ray per pixel can generate high quality results • Especially when combined with techniques and high quality denoising systems • Lets you judiciously spend your ray tracing budget right where it will pay off AMD PUBLIC | DirectX® 12 Ultimate: DirectX Ray Tracing 1.1 | November 2020 5 USING DXR 1.1 TO TRACE RAYS • DXR 1.1 lets you call TraceRay() from any shader stage • Best performance is found when you use it in compute shaders, dispatched on a compute queue • Matches existing asynchronous compute techniques you’re already familiar with • Always have just 1 active RayQuery object in scope at any time AMD PUBLIC | DirectX® 12 Ultimate: DirectX Ray Tracing 1.1 | November 2020 6 RESOURCE BALANCING • Part of our ray tracing system
    [Show full text]
  • Visualization Tools and Trends a Resource Tour the Obligatory Disclaimer
    Visualization Tools and Trends A resource tour The obligatory disclaimer This presentation is provided as part of a discussion on transportation visualization resources. The Atlanta Regional Commission (ARC) does not endorse nor profit, in whole or in part, from any product or service offered or promoted by any of the commercial interests whose products appear herein. No funding or sponsorship, in whole or in part, has been provided in return for displaying these products. The products are listed herein at the sole discretion of the presenter and are principally oriented toward transportation practitioners as well as graphics and media professionals. The ARC disclaims and waives any responsibility, in whole or in part, for any products, services or merchandise offered by the aforementioned commercial interests or any of their associated parties or entities. You should evaluate your own individual requirements against available resources when establishing your own preferred methods of visualization. What is Visualization • As described on Wikipedia • Illustration • Information Graphics – visual representations of information data or knowledge • Mental Image – imagination • Spatial Visualization – ability to mentally manipulate 2dimensional and 3dimensional figures • Computer Graphics • Interactive Imaging • Music visual IEEE on Visualization “Traditionally the tool of the statistician and engineer, information visualization has increasingly become a powerful new medium for artists and designers as well. Owing in part to the mainstreaming
    [Show full text]
  • Lens Equation – Thin Lens
    h s’ s f h’ Refraction on Spherical Surface θa=α +φ ; φ = β +θb ⎫ an sinθ a= n bsinθ b n⎬aα + n bβ = ( n b− )φ n a anθ a≅ n b θ b ⎭ h h h tanα = ; tanβ = ; tanφ = s + δ s'−δ R − δ h h h n n n− n ≅α ; β ≅; φ ≅ ⇒a+ b = b a s s' R s s' R Refraction on Spherical Surface n n n− n a+ b = b a Magnification s s' R R positive if C on transmission side; negative otherwise y − y′ tanθ = tanθ = na y nb y′ a b = − s s′ s s′ nasinθ a= n bsin θ b y′ na ′ s esl angallFor sm m = = − y n s tanθ≅ sin θ b Refraction on Spherical Surface n n n− n a+ b = b a . A fish is 7.5Example: Fish bowl s s' R cm from the front of the bowl. y′ n′ s Find the location and magnification of the m = = − a fish as seen by the cat.bowl. Ignore effect of y nb s Radius of bowl = 15 cm. na = 1.33 R negative b O n n n− n n n− n n I s’ a+ b =b a b = b a− a s s' R s' R s s n 1 s′ = b = =6 .− 44cm n− n n 0− . 331 . 33 a b a− a − R s −cm15 7 . 5 cm n′ s 1 .( 33 6− . 44cm ) The fish appears closer and larger. m= − a= − ∗ 1= . 14 nb s 1 7 .cm 5 Lenses • A lens is a piece of transparent material shaped such that parallel light rays are refracted towards a point, a focus: – Convergent Lens Positive f » light moving from air into glass will move toward the normal » light moving from glass back into air will move away from the normal » real focus Negative f – Divergent Lens » light moving from air into glass will move toward the normal » light moving from glass back into air will move away from the normal » virtual focus Lens Equation – thin lens n n n− n n n n− n a b+ b = a b+ a = a b 1s s 1' R 1 2s s 2' R2 For air, na=1 and glass, nb=n, and s2=-s1’.
    [Show full text]
  • Geforce ® RTX 2070 Overclocked Dual
    GAMING GeForce RTX™ 2O7O 8GB XLR8 Gaming Overclocked Edition Up to 6X Faster Performance Real-Time Ray Tracing in Games Latest AI Enhanced Graphics Experience 6X the performance of previous-generation GeForce RTX™ 2070 is light years ahead of other cards, delivering Powered by NVIDIA Turing, GeForce™ RTX 2070 brings the graphics cards combined with maximum power efficiency. truly unique real-time ray-tracing technologies for cutting-edge, power of AI to games. hyper-realistic graphics. GRAPHICS REINVENTED PRODUCT SPECIFICATIONS ® The powerful new GeForce® RTX 2070 takes advantage of the cutting- NVIDIA CUDA Cores 2304 edge NVIDIA Turing™ architecture to immerse you in incredible realism Clock Speed 1410 MHz and performance in the latest games. The future of gaming starts here. Boost Speed 1710 MHz GeForce® RTX graphics cards are powered by the Turing GPU Memory Speed (Gbps) 14 architecture and the all-new RTX platform. This gives you up to 6x the Memory Size 8GB GDDR6 performance of previous-generation graphics cards and brings the Memory Interface 256-bit power of real-time ray tracing and AI to your favorite games. Memory Bandwidth (Gbps) 448 When it comes to next-gen gaming, it’s all about realism. GeForce RTX TDP 185 W>5 2070 is light years ahead of other cards, delivering truly unique real- NVLink Not Supported time ray-tracing technologies for cutting-edge, hyper-realistic graphics. Outputs DisplayPort 1.4 (x2), HDMI 2.0b, USB Type-C Multi-Screen Yes Resolution 7680 x 4320 @60Hz (Digital)>1 KEY FEATURES SYSTEM REQUIREMENTS Power
    [Show full text]
  • Tracepro's Accurate LED Source Modeling Improves the Performance of Optical Design Simulations
    TECHNICAL ARTICLE March, 2015 TracePro’s accurate LED source modeling improves the performance of optical design simulations. Modern optical modeling programs allow product design engineers to create, analyze, and optimize LED sources and LED optical systems as a virtual prototype prior to manufacturing the actual product. The precision of these virtual models depends on accurately representing the components that make up the model, including the light source. This paper discusses the physics behind light source modeling, source modeling options in TracePro, selection of the best modeling method, comparing modeled vs measured results, and source model reporting. Ray Tracing Physics and Source Representation In TracePro and other ray tracing programs, LED sources are represented as a series of individual rays, each with attributes of wavelength, luminous flux, and direction. To obtain the most accurate results, sources are typically represented using millions of individual rays. Source models range from simple (e.g. point source) to complex (e.g. 3D model) and can involve complex interactions completely within the source model. For example, a light source with integrated TIR lens can effectively be represented as a “source” in TracePro. However, sources are usually integrated with other components to represent the complete optical system. We will discuss ray tracing in this context. Ray tracing engines, in their simplest form, employ Snell’s Law and the Law of Reflection to determine the path and characteristics of each individual ray as it passes through the optical system. Figure 1 illustrates a simple optical system with reflection and refraction. Figure 1 – Simple ray trace with refraction and reflection TracePro’s sophisticated ray tracing engine incorporates specular transmission and reflection, scattered transmission and reflection, absorption, bulk scattering, polarization, fluorescence, diffraction, and gradient index properties.
    [Show full text]
  • Location of Cardinal Points from the ABCD Matrix for the General Optical System
    EE482 Fall 2000 Handout #2 Page 1 Location of Cardinal Points from the ABCD Matrix for the General Optical System I II n1 n2 F1 P1 N1 P2 N2 F2 f1 f2 Figure 1 Cardinal points of a system which is characterized by an ABCD matrix between an input plane I and an output plane II. Cardinal Point Measured Function Special Case From To (n1=n2) First Focal Point P1 F1 -n1/(n2C)-1/C First Principle Point I P1 (n1-n2D)/(n2C)(1-D)/C First Nodal Point I N1 (1-D)/C (1-D)/C Second Focal Point P2 F2 -1/C -1/C Second Principle Point II P2 (1-A)/C (1-A)/C Second Nodal Point II N2 (n1-n2A)/(n2C)(1-A)/C Table 1 When analyzing an optical system, we often are first interested in basic properties of the system such as the focal length (or optical power of the system) and the location of the focal planes, etc. In the limit of paraxial optics, any optical system, from a simple lens to a combination of lenses, mirrors and ducts, can be described in terms of six special surfaces, called the cardinal surfaces of the system. In paraxial optics, these surfaces are planes, normal to the optical axis. The point where the plane intersects the optical axis is the cardinal point corresponding to that cardinal plane. The six special planes are: First Focal Plane Second Focal Plane First Principle Plane Second Principle Plane First Nodal Plane Second Nodal Plane Once we know the location of these special planes, relative to the physical location of the lenses in the system, we can describe all of the paraxial imaging properties of the system.
    [Show full text]
  • Ray-Tracing Procedural Displacement Shaders
    Ray-tracing Procedural Displacement Shaders Wolfgang Heidrich and Hans-Peter Seidel Computer Graphics Group University of Erlangen fheidrich,[email protected] Abstract displacement shaders are resolution independent and Displacement maps and procedural displacement storage efficient. shaders are a widely used approach of specifying geo- metric detail and increasing the visual complexity of a scene. While it is relatively straightforward to handle displacement shaders in pipeline based rendering systems such as the Reyes-architecture, it is much harder to efficiently integrate displacement-mapped surfaces in ray-tracers. Many commercial ray-tracers tessellate the surface into a multitude of small trian- Figure 1: A simple displacement shader showing a gles. This introduces a series of problems such as wave function with exponential decay. The underly- excessive memory consumption and possibly unde- ing geometry used for this image is a planar polygon. tected surface detail. In this paper we describe a novel way of ray-tracing Unfortunately, because displacement shaders mod- procedural displacement shaders directly, that is, ify the geometry, their use in many rendering systems without introducing intermediate geometry. Affine is limited. Since ray-tracers cannot handle proce- arithmetic is used to compute bounding boxes for dural displacements directly, many commercial ray- the shader over any range in the parameter domain. tracing systems, such as Alias [1], tessellate geomet- The method is comparable to the direct ray-tracing ric objects with displacement shaders into a mul- of B´ezier surfaces and implicit surfaces using B´ezier titude of small triangles. Unlike in pipeline-based clipping and interval methods, respectively. renderers, such as the Reyes-architecture [17], these Keywords: ray-tracing, displacement-mapping, pro- triangles have to be kept around, and cannot be ren- cedural shaders, affine arithmetic dered independently.
    [Show full text]
  • Getting Started (Pdf)
    GETTING STARTED PHOTO REALISTIC RENDERS OF YOUR 3D MODELS Available for Ver. 1.01 © Kerkythea 2008 Echo Date: April 24th, 2008 GETTING STARTED Page 1 of 41 Written by: The KT Team GETTING STARTED Preface: Kerkythea is a standalone render engine, using physically accurate materials and lights, aiming for the best quality rendering in the most efficient timeframe. The target of Kerkythea is to simplify the task of quality rendering by providing the necessary tools to automate scene setup, such as staging using the GL real-time viewer, material editor, general/render settings, editors, etc., under a common interface. Reaching now the 4th year of development and gaining popularity, I want to believe that KT can now be considered among the top freeware/open source render engines and can be used for both academic and commercial purposes. In the beginning of 2008, we have a strong and rapidly growing community and a website that is more "alive" than ever! KT2008 Echo is very powerful release with a lot of improvements. Kerkythea has grown constantly over the last year, growing into a standard rendering application among architectural studios and extensively used within educational institutes. Of course there are a lot of things that can be added and improved. But we are really proud of reaching a high quality and stable application that is more than usable for commercial purposes with an amazing zero cost! Ioannis Pantazopoulos January 2008 Like the heading is saying, this is a Getting Started “step-by-step guide” and it’s designed to get you started using Kerkythea 2008 Echo.
    [Show full text]
  • The Shallow Water Wave Ray Tracing Model SWRT
    The Shallow Water Wave Ray Tracing Model SWRT Prepared for: BMT ARGOSS Our reference: BMTA-SWRT Date of issue: 20 Apr 2016 Prepared for: BMT ARGOSS The Shallow Water Wave Ray Tracing Model SWRT Document Status Sheet Title : The Shallow Water Wave Ray Tracing Model SWRT Our reference : BMTA-SWRT Date of issue : 20 Apr 2016 Prepared for : BMT ARGOSS Author(s) : Peter Groenewoud (BMT ARGOSS) Distribution : BMT ARGOSS (BMT ARGOSS) Review history: Rev. Status Date Reviewers Comments 1 Final 20 Apr 2016 Ian Wade, Mark van der Putte and Rob Koenders Information contained in this document is commercial-in-confidence and should not be transmitted to a third party without prior written agreement of BMT ARGOSS. © Copyright BMT ARGOSS 2016. If you have questions regarding the contents of this document please contact us by sending an email to [email protected] or contact the author directly at [email protected]. 20 Apr 2016 Document Status Sheet Prepared for: BMT ARGOSS The Shallow Water Wave Ray Tracing Model SWRT Contents 1. INTRODUCTION ..................................................................................................................... 1 1.1. MODEL ENVIRONMENTS .............................................................................................................. 1 1.2. THE MODEL IN A NUTSHELL ......................................................................................................... 1 1.3. EXAMPLE MODEL CONFIGURATION OFF PANAMA .........................................................................
    [Show full text]
  • Laboratory 7: Properties of Lenses and Mirrors
    Laboratory 7: Properties of Lenses and Mirrors Converging and Diverging Lens Focal Lengths: A converging lens is thicker at the center than at the periphery and light from an object at infinity passes through the lens and converges to a real image at the focal point on the other side of the lens. A diverging lens is thinner at the center than at the periphery and light from an object at infinity appears to diverge from a virtual focus point on the same side of the lens as the object. The principal axis of a lens is a line drawn through the center of the lens perpendicular to the face of the lens. The principal focus is a point on the principal axis through which incident rays parallel to the principal axis pass, or appear to pass, after refraction by the lens. There are principle focus points on either side of the lens equidistant from the center (See Figure 1a). Figure 1a: Converging Lens, f>0 Figure 1b: Diverging Lens, f<0 In Fig. 1 the object and image are represented by arrows. Two rays are drawn from the top of the object. One ray is parallel to the principal axis which bends at the lens to pass through the principle focus. The second ray passes through the center of the lens and undeflected. The intersection of these two rays determines the image position. The focal length, f, of a lens is the distance from the optical center of the lens to the principal focus. It is positive for a converging lens, negative for a diverging lens.
    [Show full text]
  • Interactive Rendering with Coherent Ray Tracing
    EUROGRAPHICS 2001 / A. Chalmers and T.-M. Rhyne Volume 20 (2001), Number 3 (Guest Editors) Interactive Rendering with Coherent Ray Tracing Ingo Wald, Philipp Slusallek, Carsten Benthin, and Markus Wagner Computer Graphics Group, Saarland University Abstract For almost two decades researchers have argued that ray tracing will eventually become faster than the rasteri- zation technique that completely dominates todays graphics hardware. However, this has not happened yet. Ray tracing is still exclusively being used for off-line rendering of photorealistic images and it is commonly believed that ray tracing is simply too costly to ever challenge rasterization-based algorithms for interactive use. However, there is hardly any scientific analysis that supports either point of view. In particular there is no evidence of where the crossover point might be, at which ray tracing would eventually become faster, or if such a point does exist at all. This paper provides several contributions to this discussion: We first present a highly optimized implementation of a ray tracer that improves performance by more than an order of magnitude compared to currently available ray tracers. The new algorithm makes better use of computational resources such as caches and SIMD instructions and better exploits image and object space coherence. Secondly, we show that this software implementation can challenge and even outperform high-end graphics hardware in interactive rendering performance for complex environments. We also provide an brief overview of the benefits of ray tracing over rasterization algorithms and point out the potential of interactive ray tracing both in hardware and software. 1. Introduction Ray tracing is famous for its ability to generate high-quality images but is also well-known for long rendering times due to its high computational cost.
    [Show full text]