Run-Time Terrain Deformation in Unreal Engine 4

Total Page:16

File Type:pdf, Size:1020Kb

Run-Time Terrain Deformation in Unreal Engine 4 Master of Science in Game and Software Engineering May 2020 Run-time Terrain Deformation in Unreal Engine 4 Rikard Magnom Faculty of Computing, Blekinge Institute of Technology, 371 79 Karlskrona, Sweden This thesis is submitted to the Faculty of Computing at Blekinge Institute of Technology in partial fulfilment of the requirements for the degree of Master of Science in Game and Software Engineering. The thesis is equivalent to 20 weeks of full time studies. The authors declare that they are the sole authors of this thesis and that they have not used any sources other than those listed in the bibliography and identified as references. They further declare that they have not submitted this thesis at any other institution to obtain a degree. Contact Information: Author(s): Rikard Magnom E-mail: [email protected] University advisor: Adjunct Prof. Stefan Petersson Department of Computer Science Faculty of Computing Internet : www.bth.se Blekinge Institute of Technology Phone : +46 455 38 50 00 SE–371 79 Karlskrona, Sweden Fax : +46 455 38 50 57 Abstract Background. When developing video games, an often desired trait is that of player immersion. Player immersion can be achieved through many different ways. How- ever, a common technique used is to allow the player to affect the environment in some way, through destruction or deformation. Unreal Engine 4 is a commonly used commercial game engine, that lacks features necessary to deform terrain at run-time. Objectives. This thesis explores the viability of run-time performant terrain defor- mation in Unreal Engine version 4.23. A deformation technique of a depth-based Dynamically-Displaced Height Map (DDHM) is selected for implementation and tested with various sizes of landscape terrains. Methods. A small literature study is performed to select a feasible run-time terrain deformation technique. The technique is then implemented in the engine, along with modifications to the engine to provide the necessary functionality. The implementa- tion is then tested on performance and accuracy. Results. The DDHM technique is shown to provide run-time performant terrain de- formation for smaller terrain sizes, consisting of an individual landscape component. The selected technique does not meet the run-time requirements for full, large-scale deformation. Conclusions. Run-time performant terrain deformation is shown to be achievable in Unreal Engine 4.23. While the selected technique fails to achieve satisfying results for larger terrain sizes, results on individual landscape components show feasibility for generic technique implementations. Keywords: terrain, deformation, real-time, unreal engine i Sammanfattning Bakgrund. Under utvecklingen av datorspel är det ofta en eftertraktad egenskap att kunna övertyga spelaren om realismen i spelvärlden. Detta kan uppnås på flera sätt, men en vanlig teknik är att låta spela påverka omgivningen i spelet på något sätt, genom förstörelse eller deformering. Unreal Engine 4 är en vida använd kom- mersiell spelmotor som saknar funktionalitet för att deformera terräng i realtid. Syfte. Syftet med detta arbete är att utforska genomförbarheten i att tillföra ter- rängdeformering i realtid i Unreal Engine version 4.23. En deformeringsteknik in- volverande en “Dynamically-Displaced Height Map” (DDHM) väljs ut för implemen- tation och testas med olika storlekar på landskapsterräng. Metod. En mindre litteraturstudie genomförs för att välja en rimlig teknik för ter- rängdeformering i körtid. Tekniken implementeras sedan i motorn, i sambard med modifikationer till motorn för att tillföra nödvändig funktionalitet. Implementatio- nen testas sedan på prestanda och precision. Resultat. DDHM-tekniken visas kunna tillföra körtidsduglig terrängdeformering för mindre terrängstorlekar, bestående av individuella landskapskomponenter. Tekniken möter inte realtidskriterierna för full, storskalig terrängdeformation. Slutsatser. Deformering av terräng i körtid visas vara genomförbart i Unreal Engine 4.23. Den utvalda tekniken visar lovande resultat för mindre storlekar av landskap- sterräng, men misslyckas att prestera för större terrängstorlekar. Nyckelord: terräng, deformering, realtid, unreal engine iii Acknowledgments First and foremost I would like to sincerely thank Stefan Petersson for his superb guidance and valuable feedback during the writing of this thesis, and for helping me stay sane throughout the process. I also express great gratitude towards Logic Artists for collaborating with me in the execution of this thesis, and for giving me free reign to work whenever needed throughout the process. An additional special thank you to my dear friend James Partridge for his assistance in proofreading. Finally, a warm thank you to my mother and my grandparents, for staying supportive of me forever and always. v Contents Abstract i Sammanfattning iii Acknowledgments v 1 Introduction 1 1.1 Environment Interaction . 1 1.2 Objectives and Research Questions . 1 1.3 Terminology . 2 2 Related Work 3 2.1 Hardware Tessellation . 3 2.2 Unreal Engine Landscape Systems . 4 2.3 Displacement mapping . 5 2.4 Parallax mapping . 5 3 Method 7 3.1 Literature Study . 7 3.2 Depth-based DDHM . 9 3.3 Visual Representation . 11 4 Implementation 13 4.1 Deformation Actor . 13 4.1.1 Actor Initialization . 13 4.1.2 Class Structure . 13 4.2 Engine Source Code Modifications . 15 4.3 Engine Limitations . 17 4.3.1 Limitations of the USceneCaptureComponent2D . 18 4.3.2 Limitations of the Landscape Module . 18 5 Results 21 5.1 Experimental Results . 21 5.1.1 Testing Environment . 21 5.1.2 Full Algorithm Performance . 22 5.1.3 Render Target Import Performance . 23 5.1.4 Heightmap Update Performance . 23 5.1.5 Average Error . 24 vii 5.1.6 Conversion Resolution Scalar . 24 6 Analysis and Discussion 27 6.1 DDHM . 27 6.2 Generic Run-time Deformation . 27 6.3 Sustainability . 28 6.4 Validity Threats . 28 7 Conclusions 29 8 Future Work 31 References 33 A Deformation Actor Source Code 37 viii List of Figures 2.1 Visual example of overlapping landscape components. Note the du- plicated vertices [13]. 4 2.2 Parallax mapping used on a wall texture in Bethesdas The Elder Scrolls IV: Oblivion [28]. 5 3.1 Details of the first Google Scholar database search of the small liter- ature study. 7 3.2 Details of the first BTH Summon database search of the small litera- ture study. 8 3.3 Details of the second BTH Summon database search of the small lit- erature study. 9 3.4 Details of the third BTH Summon database search of the small liter- ature study. 9 3.5 The depth capture camera configuration for generation of a DDHM [1]. 10 3.6 The process of depth information being converted to a heightmap through the DDHM technique. (a) shows the object depth clipping through the terrain and being rendered to the depth capture render target. (b) shows the depth value data being used to repopulate the height map. [1] . 11 3.7 Example of one iteration of the terrain deformation. (a) shows the original unmodified terrain. (b) shows the sphere mesh used for this deformation example, rendered for demonstration purposes. (c) shows the resulting deformation in the terrain. 11 3.8 Example of height levels converging to set stages as a result of colour banding in the depth buffer. This example shows the result on the landscape after 30 iterations. 12 4.1 One iteration of the implementation performed on a flat landscape, visualized in gray, deforming around a cube shaped mesh, visualized in orange. (a) shows the configuration before the deformation. (b) shows the result of one iteration of the implementation. 14 4.2 The orthographic projection matrix. The direction parameters left, right, top, bottom represent the size of the orthographic projection from the center. The parameters far and near represent the distance from the camera of the far and near planes respectively. 18 5.1 Execution time of the algorithms performed on a single landscape component with no collision updating. 22 ix 5.2 Average error distance per vertex with the DepthCaptureCamera placed with the near plane at various distances from the landscape mesh. 24 x List of Tables 4.1 All modified engine source code files. 17 5.1 The results of the execution time of a full iteration with collision up- dating enabled. 22 5.2 The results of the execution time of a full iteration with collision up- dating disabled. 23 5.3 The results of the execution time of the render target import. 23 5.4 The results of the execution time of Algorithm 3 with collision updat- ing enabled. 23 5.5 The results of the execution time of Algorithm 3 with collision updat- ing disabled. 24 5.6 Depth buffer heightmap resolution and resolution conversion scalar at various distances of the DepthCaptureCamera. 25 xi List of Algorithms 1 ImportHeightmapFromRenderTarget . 15 2 DeformActorInitialize . 16 3 UpdateLandscapeHeightData . 17 xiii Chapter 1 Introduction In video game development, an often desired element is that of player immersion. Player immersion, which involves convincing the player of the realism of the inter- active game world they are experiencing. A strong contributor to player immersion involves being able to directly interact and affect the game environment. This can be done a multitude of ways such as simply being able to have the environment respond to player interaction [21]. 1.1 Environment Interaction One common form of environment interaction found in video games is the ability for the player to destroy parts of the environment dynamically. Destructible environ- ments in games have a long history, dating back to early examples such as the 1978 arcade game Space Invaders, which featured cover for the player to hide behind. This cover would then progressively get destroyed upon being hit [3]. This trend continued into the 3D era of video games, with series such as Volition’s Red Faction utilizing interactive and fully destructive environments as a primary selling point.
Recommended publications
  • Seamscape a Procedural Generation System for Accelerated Creation of 3D Landscapes
    SeamScape A procedural generation system for accelerated creation of 3D landscapes Bachelor Thesis in Computer Science and Engineering Link to video demonstration: youtu.be/K5yaTmksIOM Sebastian Ekman Anders Hansson Thomas Högberg Anna Nylander Alma Ottedag Joakim Thorén Chalmers University of Technology University of Gothenburg Department of Computer Science and Engineering Gothenburg, Sweden, June 2016 The Authors grants to Chalmers University of Technology and University of Gothenburg the non-exclusive right to publish the Work electronically and in a non-commercial purpose make it accessible on the Internet. The Author warrants that he/she is the author to the Work, and warrants that the Work does not contain text, pictures or other material that violates copyright law. The Author shall, when transferring the rights of the Work to a third party (for example a publisher or a company), acknowledge the third party about this agreement. If the Author has signed a copyright agreement with a third party regarding the Work, the Author warrants hereby that he/she has obtained any necessary permission from this third party to let Chalmers University of Technology and University of Gothenburg store the Work electronically and make it accessible on the Internet. SeamScape A procedural generation system for accelerated creation of 3D landscapes Sebastian Ekman Anders Hansson Thomas Högberg Anna Nylander Alma Ottedag Joakim Thorén c Sebastian Ekman, 2016. c Anders Hansson, 2016. c Thomas Högberg, 2016. c Anna Nylander, 2016. c Alma Ottedag, 2016.
    [Show full text]
  • The Uses of Animation 1
    The Uses of Animation 1 1 The Uses of Animation ANIMATION Animation is the process of making the illusion of motion and change by means of the rapid display of a sequence of static images that minimally differ from each other. The illusion—as in motion pictures in general—is thought to rely on the phi phenomenon. Animators are artists who specialize in the creation of animation. Animation can be recorded with either analogue media, a flip book, motion picture film, video tape,digital media, including formats with animated GIF, Flash animation and digital video. To display animation, a digital camera, computer, or projector are used along with new technologies that are produced. Animation creation methods include the traditional animation creation method and those involving stop motion animation of two and three-dimensional objects, paper cutouts, puppets and clay figures. Images are displayed in a rapid succession, usually 24, 25, 30, or 60 frames per second. THE MOST COMMON USES OF ANIMATION Cartoons The most common use of animation, and perhaps the origin of it, is cartoons. Cartoons appear all the time on television and the cinema and can be used for entertainment, advertising, 2 Aspects of Animation: Steps to Learn Animated Cartoons presentations and many more applications that are only limited by the imagination of the designer. The most important factor about making cartoons on a computer is reusability and flexibility. The system that will actually do the animation needs to be such that all the actions that are going to be performed can be repeated easily, without much fuss from the side of the animator.
    [Show full text]
  • Game Engine Review
    Game Engine Review Mr. Stuart Armstrong 12565 Research Parkway, Suite 350 Orlando FL, 32826 USA [email protected] ABSTRACT There has been a significant amount of interest around the use of Commercial Off The Shelf products to support military training and education. This paper compares a number of current game engines available on the market and assesses them against potential military simulation criteria. 1.0 GAMES IN DEFENSE “A game is a system in which players engage in an artificial conflict, defined by rules, which result in a quantifiable outcome.” The use of games for defence simulation can be broadly split into two categories – the use of game technologies to provide an immersive and flexible military training system and a “serious game” that uses game design principles (such as narrative and scoring) to deliver education and training content in a novel way. This talk and subsequent education notes focus on the use of game technologies, in particular game engines to support military training. 2.0 INTRODUCTION TO GAMES ENGINES “A games engine is a software suite designed to facilitate the production of computer games.” Developers use games engines to create games for games consoles, personal computers and growingly mobile devices. Games engines provide a flexible and reusable development toolkit with all the core functionality required to produce a game quickly and efficiently. Multiple games can be produced from the same games engine, for example Counter Strike Source, Half Life 2 and Left 4 Dead 2 are all created using the Source engine. Equally once created, the game source code can with little, if any modification be abstracted for different gaming platforms such as a Playstation, Personal Computer or Wii.
    [Show full text]
  • Comparison of Spherical Cube Map Projections Used in Planet-Sized Terrain Rendering
    FACTA UNIVERSITATIS (NIS)ˇ Ser. Math. Inform. Vol. 31, No 2 (2016), 259–297 COMPARISON OF SPHERICAL CUBE MAP PROJECTIONS USED IN PLANET-SIZED TERRAIN RENDERING Aleksandar M. Dimitrijevi´c, Martin Lambers and Dejan D. Ranˇci´c Abstract. A wide variety of projections from a planet surface to a two-dimensional map are known, and the correct choice of a particular projection for a given application area depends on many factors. In the computer graphics domain, in particular in the field of planet rendering systems, the importance of that choice has been neglected so far and inadequate criteria have been used to select a projection. In this paper, we derive evaluation criteria, based on texture distortion, suitable for this application domain, and apply them to a comprehensive list of spherical cube map projections to demonstrate their properties. Keywords: Map projection, spherical cube, distortion, texturing, graphics 1. Introduction Map projections have been used for centuries to represent the curved surface of the Earth with a two-dimensional map. A wide variety of map projections have been proposed, each with different properties. Of particular interest are scale variations and angular distortions introduced by map projections – since the spheroidal surface is not developable, a projection onto a plane cannot be both conformal (angle- preserving) and equal-area (constant-scale) at the same time. These two properties are usually analyzed using Tissot’s indicatrix. An overview of map projections and an introduction to Tissot’s indicatrix are given by Snyder [24]. In computer graphics, a map projection is a central part of systems that render planets or similar celestial bodies: the surface properties (photos, digital elevation models, radar imagery, thermal measurements, etc.) are stored in a map hierarchy in different resolutions.
    [Show full text]
  • Postupci Generiranja Modela Krajolika
    SVEUČILIŠTE U ZAGREBU FAKULTET ELEKTROTEHNIKE I RAČUNARSTVA DIPLOMSKI RAD br. 1039 POSTUPCI GENERIRANJA MODELA KRAJOLIKA Niko Mikuličić Zagreb, lipanj 2015. Sadržaj 1. Uvod ............................................................................................................................... 1 2. Teren ............................................................................................................................... 2 2.1. Visinska mapa ......................................................................................................... 2 2.1.1. Podatci iz stvarnog svijeta ............................................................................... 2 2.1.2. Proceduralno generiranje visinske mape ......................................................... 3 2.2. Mreža trokuta .......................................................................................................... 5 2.2.1. Razine detalja .................................................................................................. 6 2.2.2. Lindstrom-Koller metoda simplifikacije ......................................................... 7 2.3. Teksturiranje ......................................................................................................... 10 2.3.1. Tekstura boje ................................................................................................. 10 2.3.2. Miješanje tekstura detalja .............................................................................. 11 2.3.3. Proceduralno teksturiranje ............................................................................
    [Show full text]
  • Element Racers of Destruction Development of a Multiplayer 3D Racing Game with Focus on Graphical Effects
    Element Racers of Destruction Development of a multiplayer 3D racing game with focus on graphical effects Alexander Hederstaf Anton Bergman Sebastian Odbjer Johan Bowald Department of Computer Science and Engineering CHALMERS UNIVERSITYOF TECHNOLOGY Göteborg, Sverige 2014 The Author grants to Chalmers University of Technology and University of Gothenburg the non-exclusive right to publish the Work electronically and in a non-commercial purpose make it accessible on the Internet. The Author warrants that he/she is the author to the Work, and warrants that the Work does not contain text, pictures or other material that violates copyright law. The Author shall, when transferring the rights of the Work to a third party (for example a publisher or a company), acknowledge the third party about this agreement. If the Author has signed a copyright agreement with a third party regarding the Work, the Author warrants hereby that he/she has obtained any necessary permission from this third party to let Chalmers University of Technology and University of Gothenburg store the Work electronically and make it accessible on the Internet. Element Racers of Destruction Paper on development of a multiplayer 3D racing game with focus on graphical effects Alexander Hederstaf Anton Bergman Sebastian Odbjer Johan Bowald ©Alexander Hederstaf, June 2014 ©Anton Bergman, June 2014 ©Sebastian Odbjer, June 2014 ©Johan Bowald, June 2014 Examiner: Arne Linde Chalmers University of Technology University of Gothenburg Department of Computer Science and Engineering SE-412 96 Göteborg Sweden Telephone + 46 (0)31-772 1000 Cover: Ingame Screenshot with the game logotype in top right corner. Image used as menu background in the implementation.
    [Show full text]
  • SN-Engine, a Scale-Free Geometric Modelling Environment
    SN-Engine, a Scale-free Geometric Modelling Environment T.A. Zhukov Abstract We present a new scale-free geometric modelling environment designed by the author of the paper. It allows one to consistently treat geometric objects of arbitrary size and offers extensive analytic and computational support for visualization of both real and artificial sceneries. Keywords: Geometric Modelling, Virtual Reality, Game Engine, 3D Visualization, Procedu- ral Generation. 1 INTRODUCTION Geometric modelling of real-world and imaginary objects is an important task that is ubiquitous in modern computer science. Today, geometric modelling environments (GME) are widely used in cartography [5], architecture [26], geology [24], hydrology [20], and astronomy [27]. Apart from being used for modelling, importing and storing real-world data, GMEs are crucially important in computer games industry [12]. Creating a detailed model of a real-world or imaginary environment is a task of great com- putational complexity. Modelling various physical phenomena like gravity, atmospheric light scattering, terrain weathering, and erosion processes requires full use of modern computer alge- bra algorithms as well as their efficient implementation. Finding exact and numeric solutions to differential, difference, and algebraic equations by means of computer algebra methods (see [7] and the references therein) is at the core of the crucial algorithms of modern geometric modelling environments. There exist a wide variety of geometric modelling environments, both universal and highly specialized. They include three-dimensional planetariums like SpaceEngine or Celestia, virtual Earth engine Outerra, procedural scenery generator Terragen, 3D computer graphics editors Autodesk 3ds Max, Blender, Houdini, and 3D game engines like Unreal Engine 4, CryEngine 3, arXiv:2006.12661v1 [cs.GR] 22 Jun 2020 and Unity.
    [Show full text]
  • Praca Dyplomowa - Magisterska
    Wydział Informatyki i Zarządzania kierunek studiów: Informatyka specjalność: Systemy informacyjne Praca dyplomowa - magisterska Procedural heightmap generation for level of detail purposes Odyseusz Spiridis słowa kluczowe: procedural heightmap generation Krótkie streszczenie: W poniższej pracy zostaną ocenione, pod względem szybkości generowania, dwa rodzaje shaderów. opiekun .................................................. ....................... ....................... pracy Tytuł/stopień naukowy/imię i nazwisko ocena podpis dyplomowej Ostateczna ocena za pracę dyplomową Przewodniczący .................................................. ....................... ....................... Komisji egzaminu ocena podpis dyplomowego Tytuł/stopień naukowy/imię i nazwisko Do celów archiwalnych pracę dyplomową zakwalifikowano do:* a) kategorii A (akta wieczyste) b) kategorii BE 50 (po 50 latach podlegające ekspertyzie) * niepotrzebne skreślić pieczątka wydziałowa Wrocław 2017 Streszczenie: Praca traktuje o proceduralnym generowaniu zawartości gry z naciskiem na generowane map wysokości w celu stworzenia proceduralnego planetarnego terenu. Aby móc użyć mapę wysokości w algorytmie optymalizującym konkretny typ szumu musi być użyty w celu uniknięcia nieciągłości. Po objaśnieniu szumów, algorytmu optymalizującego oraz dlaczego to GPU zostało wybrane do tego zadania kilka testów wydajności zostanie przeprowadzonych aby sprawdzić który rodzaj shadera daje najlepsze wyniki pod względem szybkości generowania map wysokości mierzonej w, dobrze znanej w
    [Show full text]
  • Slovak Game Industry 2020 / 2021
    SLOVAK GAME INDUSTRY 2020 / 2021 03 Introduction 04 Slovak Game Development Industry 2020 07 Game Dev Companies 59 Outsourcing and Services 95 Education 107 Events 118 Slovak Arts Council To currently speak about the games industry without mentioning the unprecedented times we’re all living through is a neary impossible task. I would like to express a huge amount of gratitude towards every single studio’s and individual’s hard work and dedication - continuing not only to create, but also to support our association. We have entered an era of uncertainty and hard decision-making that will challenge contributors to all sectors and industries. Games communicate in a language free of restrictions. There are no walls, and borders are surpassed with ease through both playing and the creative process. Sharing work or a simple project has never been easier, likewise entering the games industry. And since most of our work is digital, we've never been better prepared for what’s ahead. Nurturing the environment and community comes at the price of sustainability. Some of our members have been badly impacted by this crisis - we feel for them and pledge that We’re all in this together.” The games industry has always reinvented itself by either introducing a new generation (that starts later this year), developing new tools, innovating creative processes, or all of these factors. And such means of reinvention have never been more important than now - when the pathway to talent, best practices, knowledge sharing, learning, promotion, and business development have been severely cut or negatively impacted. The challenge to remain competitive whilst also pushing the envelope is a continual process of insight, innovation, and ingenuity.
    [Show full text]
  • View the Report
    Procedurally Generated Planets Matthew Lowe 15 April 2019 A project report submitted in partial fulfilment for the degree of Master of Computing in Computer Games Development School of Physical Sciences and Computing University of Central Lancashire Abstract Creating and rendering near real size planets is no easy task. A robust and well-designed solution must be implemented. The solution must be able to render planets at a distance and close up, whilst taking up no more than the average memory available on a standard computer. Additionally, the terrain should be aesthetically pleasing and include the use of biomes, water, clouds and an atmosphere. If an engine with these features exist, it could be used as the backbone for many games. This project aims to achieve a solution to rendering very large planets, including some aspect of realism to the terrain and other phenomena like atmospheres and water. It would then be well on the way to creating a generic, procedural planet renderer. Furthermore, this report investigates methods to assemble the planets into a star system. This future work could support large scale distance, and smaller scale distance travelling. To solve the problem, rigorous research was carried out beforehand. Then agile development techniques similar to DSDM were applied - with source control to aid, to rapidly iterate features. Due to the timeboxed nature of the methodology, features were put on hold if they took too long. This made way for other features which may be faster to complete. The solution in this paper achieves most of the initial objectives. The engine can render very large planets, with atmospheres, water, clouds and biomes.
    [Show full text]
  • Opengl 4.4 Review 29 July 2013, Christophe Riccio
    OpenGL 4.4 review 29 July 2013, Christophe Riccio G-Truc Creation Table of contents INTRODUCTION 3 1. A SHIFT OF THE RESOURCE MODEL 4 1.1. ARB_SPARSE_TEXTURE 4 1.2. ARB_BINDLESS_TEXTURE 4 1.3. ARB_SEAMLESS_CUBEMAP_PER_TEXTURE 5 1.4. IMMUTABLE BUFFERS (OPENGL 4.4, ARB_BUFFER_STORAGE) 5 2. A STEP FURTHER TOWARD PROGRAMMABLE VERTEX PULLING 7 2.1. ARB_SHADER_DRAW_PARAMETERS 7 2.2. ARB_INDIRECT_PARAMETERS 7 3. DECOUPLED PER-SIMD AND SIMD COMPONENT EXECUTION 9 4. STILL REDUCING THE CPU INTERVENTIONS 10 4.1. MULTIPLE BINDING PER CALLS 10 4.2. DIRECT STATE ACCESS TEXTURE CLEARING 10 5. BETTER INTERACTIONS WITH THE FIXED PIPELINE FUNCTIONALITIES 11 6. STRONGER SHADER INTERFACE BETWEEN SHADER STAGES 12 6.1. PARTIAL MATCHING OF SHADER INTERFACES USING BLOCKS FOR SEPARATE SHADER PROGRAMS. 12 6.2. PACKED SHADER INPUTS AND OUTPUTS 14 6.3. FUTURE DIRECTIONS AND DEPRECATION FOR THE INPUT AND OUTPUT INTERFACES 15 6.4. OFFSET AND ALIGNMENT IN UNIFORM AND STORAGE BUFFER. 15 6.5. CONSTANT EXPRESSIONS FOR QUALIFIERS. 16 6.6. EMBEDDED TRANSFORM FEEDBACK INTERFACE IN SHADERS 16 6.7. MORE EMBEDDED SHADER INTERFACES FOR RESOURCES? 17 7. TEXTURING 18 7.1. A NEW MIRROR CLAMP TO EDGE TEXTURE COORDINATE MODE 18 7.2. NO MORE NEED FOR STENCIL RENDERBUFFER 19 8. MISC 20 ARB_COMPUTE_VARIABLE_GROUP_SIZE 20 ARB_VERTEX_TYPE_10F_11F_11F_REV 20 CONCLUSIONS 21 Introduction OpenGL 4.4 specifications have been released at Siggraph 2013. It is composed of eight core extensions but none of them is really a big new feature. There are nice additions. The big announcements for OpenGL weren’t the new core specifications but a set of ARB extensions designed for post-OpenGL 4 hardware and the availability of the conformance test for OpenGL 4.4.
    [Show full text]
  • Projection Matrices and Related Viewing Frustums: New Ways To
    Projection matrices and related viewing frustums: new ways to create and apply Nikita Glushkov∗ and Tyuleneva Emiliya† Graphical Department Huawei Russian Research Institute Saints-Petersburg Russian Federation May 21, 2021 Abstract In computer graphics, the field of view of a camera is represented by a viewing frustum and a corresponding projection matrix, the properties of which, in the absence of restrictions on rectangular shape of the near plane and its parallelism to the far plane are currently not fully explored and structured. This study aims to consider the properties of arbitrary affine frustums, as well as various techniques for their transformation for practical use in devices with limited resources. Additionally, this article explores the methods of working with the visible volume as an arbitrary frustum that is not associated with the projection matrix. To study the properties of affine frustums, the dependencies between its planes and formulas for obtaining key points from the inverse projection matrix were derived. Methods of constructing frustum by key points and given planes were also considered. Moreover, frustum transformation formulas were obtained to simulate the effects of reflection, refraction and cropping in devices with limited resources. In conclusion, a method arXiv:2105.09476v1 [cs.GR] 19 May 2021 was proposed for applying an arbitrary frustum, which does not have a corresponding projection matrix, to limit the visible volume and then transform the points into NDC space. 1 Introduction There are several ways to represent the visible volume in computer graphics, and one of them is to store it as a viewing frustum[1]. From the mathematical ∗[email protected][email protected] 1 point of view, it can be represented by three pairs of planes.
    [Show full text]