Three-Dimensional Rendering As a Tool in Science and Engineering

Total Page:16

File Type:pdf, Size:1020Kb

Three-Dimensional Rendering As a Tool in Science and Engineering TECHNICAL NOTES ______________________________________________________ MATTHEW R. FEINSTEIN THREE-DIMENSIONAL RENDERING AS A TOOL IN SCIENCE AND ENGINEERING Specialized graphics hardware and standardized software libraries are making three-dimensional rendering a rapid and easy process. These advances have opened the way to using rendering to perform computations in short-wavelength scattering and propagation. INTRODUCTION As the power and capabilities of specialized computer libraries and the emergence of standards for 3D render­ graphics hardware have increased, computer-generated ing, have simplified the software interface between the three-dimensional (3D) renderings of objects and scenes programmer and the hardware. Trends in technology have have become remarkably realistic, acquiring complex brought high-powered graphics programming to nonspe­ textures, perspective, lighting, atmospheric effects, and cialists, allowing the use of graphics hardware and soft­ other characteristics that can all be varied in real time. ware for many scientific and engineering purposes. From the standpoint of a scientist or engineer, however, an imbalance exists between graphics capabilities and A CASE STUDY graphics uses: we can render 3D scenes and objects The broader availability and lower cost of graphics rapidly and realistically, but the considerable program­ tools lead one to ask when one should use advanced ming effort and computer power that go into producing graphics hardware and software for computations. The these effects contrast unfavorably with their limited (al­ trade-offs in performance, cost, and ease of operation are though commercially valuable) uses. illustrated by a recent case study. Recent trends nevertheless suggest that the computa­ A large, mature Fortran program was being used to tions underlying the entertaining graphics we see in render 3D scenes for a variety of analysis tasks. However, movies and video arcades will become useful in science the analyst using the program was unhappy with its per­ and engineering. Although specialized 3D graphics soft­ formance. Since the Fortran program was written for a ware and hardware have been available to graphics pro­ generic UNIX computer but was running on a Silicon fessionals for several years, the advances in technology Graphics (SGI) workstation, it was reasonable to propose that are lowering the cost, increasing the speed, and that the rendering task be done with the built-in SGI broadening the availability of personal computers are graphics hardware and graphics software libraries. This also putting sophisticated graphics tools on the desktops approach raised several questions. For example, what is of many scientists and engineers. the difference in performance between a generic program These tools have a broader utility than one might and one that uses specialized hardware and software? expect, since calculations repeatedly and quickly per­ What is the difference in performance between low-end formed in modem 3D rendering are very similar to com­ and high-end graphics workstations? putations done (or that would be done if they were not We answered these questions by writing a functional so arduous) in many technical problems. For example, a equivalent of the older Fortran program using the same classic difficult problem in short-wavelength scattering is input files. The new program produced the same output the effects of shadows and blockage of one object by files as the Fortran program but took advantage of the another, but computations of shadows, hidden surface sophisticated graphics software library known as the GL, removal, and viewable areas are easy and rapid with which comes with SGI computers. With the GL version modem graphics workstations. Similarly, the effects of in hand, the old and new programs could be compared nonuniform lighting, illumination and shadows on on various SGr computers at APL. curved surfaces, and averaging of multiple viewpoints of Table 1 lists the times taken to produce a scene with a scene involve difficult, time-consuming computations about 1 million facets for the two programs tested on that are part of the repertoire of advanced computer two SGI computers. One can see that rendering speed rendering techniques. depends strongly on computer cost, and, in particular, In the past, using dedicated computer graphics hard­ that a significant performance advantage exists for the ware for scientific computations would have required GL program, but it appears only at the high end of the specialized knowledge. Major improvements, such as cost spectrum. One notable finding not displayed in the the development of hardware- and vendor-independent table is that the GL program was at least an order 342 Johns Hopkins APL Technical Digest, Volume 15, Number 4 (1994) Table 1. Comparison of rendering speeds using two programs larger computation. In sum, we now have a new, simpler and two computers for a 1-million facet scene. way of doing computations that would previously have required a long-term, large-scale effort. Generic GL program time program time Computer (s) (s) REFERENCES SGI 4D/35 (low cost) 105 110 IOpenGL Architecture Review Board, OpenGL Reference Manual, Addison­ SGI Onyx (high cost) 30 5 Wesley, Reading, MA (1993). 20penGL Architecture Review Board, OpenGL Programming Guide, Addison-Wesley, Reading, MA (1993). 3 Graff, M. , PEXlib: A Reference Manual, Prentice-HaU, Englewood Cliffs, NJ (1994). of magnitude smaller and simpler than the older Fortran 4Womak, P. , PEXlib: A Tutorial, Prentice-Hall, Englewood Cliffs, NJ program. (1994). We have learned that rendering is a rather easy thing to do. This is a nontrivial lesson. One can expect that the cost and speed of a given computation will decrease over time, but one cannot expect that the computation will THE AUTHOR become simpler. MATTHEW R. FEINSTEIN re­ STANDARDS FOR 3D RENDERING ceived B.S. and M.Eng. degrees In the past year or two, candidates for standardized from Cornell University in engi­ neering physics in 1970 and rendering libraries have emerged. For example, the GL 1971 , respectively, and a Ph.D. in only exists on SGI machines; however, an initial version applied physics from Yale Uni­ of a vendor-independent GL, known as OpenGL, has versity in 1976. He is a physicist been developed. 1,2 Another example of a vendor-indepen­ in the STW/ASUW Missile Sys­ 3 tems Group in the APL Fleet dent rendering library is PEXlib. ,4 Systems Department and a mem­ The comparison of one rendering library to another is ber of the Senior Professional less significant than the trend toward standardization, Staff. Since joining APL in 1978, which can be expected to continue. Dr. Feinstein has worked on variational techniques in scatter­ ing theory, measurement and CONCLUSION modeling of polarization aberra- tion due to radomes, and develop­ "Three-dimensional rendering for the masses" is a re­ ment of multi port monopulse ra­ ality, and it is now easy to make this technology part of a dar algorithms. Johns Hopkins APL Technical Digest, Volume 15, Number 4 (1994) 343 .
Recommended publications
  • Object Oriented Programming
    No. 52 March-A pril'1990 $3.95 T H E M TEe H CAL J 0 URN A L COPIA Object Oriented Programming First it was BASIC, then it was structures, now it's objects. C++ afi<;ionados feel, of course, that objects are so powerful, so encompassing that anything could be so defined. I hope they're not placing bets, because if they are, money's no object. C++ 2.0 page 8 An objective view of the newest C++. Training A Neural Network Now that you have a neural network what do you do with it? Part two of a fascinating series. Debugging C page 21 Pointers Using MEM Keep C fro111 (C)rashing your system. An AT Keyboard Interface Use an AT keyboard with your latest project. And More ... Understanding Logic Families EPROM Programming Speeding Up Your AT Keyboard ((CHAOS MADE TO ORDER~ Explore the Magnificent and Infinite World of Fractals with FRAC LS™ AN ELECTRONIC KALEIDOSCOPE OF NATURES GEOMETRYTM With FracTools, you can modify and play with any of the included images, or easily create new ones by marking a region in an existing image or entering the coordinates directly. Filter out areas of the display, change colors in any area, and animate the fractal to create gorgeous and mesmerizing images. Special effects include Strobe, Kaleidoscope, Stained Glass, Horizontal, Vertical and Diagonal Panning, and Mouse Movies. The most spectacular application is the creation of self-running Slide Shows. Include any PCX file from any of the popular "paint" programs. FracTools also includes a Slide Show Programming Language, to bring a higher degree of control to your shows.
    [Show full text]
  • 3D Graphics Fundamentals
    11BegGameDev.qxd 9/20/04 5:20 PM Page 211 chapter 11 3D Graphics Fundamentals his chapter covers the basics of 3D graphics. You will learn the basic concepts so that you are at least aware of the key points in 3D programming. However, this Tchapter will not go into great detail on 3D mathematics or graphics theory, which are far too advanced for this book. What you will learn instead is the practical implemen- tation of 3D in order to write simple 3D games. You will get just exactly what you need to 211 11BegGameDev.qxd 9/20/04 5:20 PM Page 212 212 Chapter 11 ■ 3D Graphics Fundamentals write a simple 3D game without getting bogged down in theory. If you have questions about how matrix math works and about how 3D rendering is done, you might want to use this chapter as a starting point and then go on and read a book such as Beginning Direct3D Game Programming,by Wolfgang Engel (Course PTR). The goal of this chapter is to provide you with a set of reusable functions that can be used to develop 3D games. Here is what you will learn in this chapter: ■ How to create and use vertices. ■ How to manipulate polygons. ■ How to create a textured polygon. ■ How to create a cube and rotate it. Introduction to 3D Programming It’s a foregone conclusion today that everyone has a 3D accelerated video card. Even the low-end budget video cards are equipped with a 3D graphics processing unit (GPU) that would be impressive were it not for all the competition in this market pushing out more and more polygons and new features every year.
    [Show full text]
  • Computer Science and Software Engineering 1
    Computer Science and Software Engineering 1 Computer Science and Software Engineering Software Engineering The focus of the software engineering curriculum, which leads to the bachelor of software engineering, is on the analysis, design, verification, validation, construction, application, and maintenance of software systems. The degree program prepares students for professional careers and graduate study with a balance of computer science theory and practical application of software engineering methodology using modern software engineering environments and tools. The curriculum is based on a strong core of topics including software modeling and design, construction, process and quality assurance, intelligent and interactive systems, networks, operating systems, and computer architecture. The curriculum also enriches each student’s general education with a range of courses from science, mathematics, the humanities and the social sciences. Through advanced elective courses, the curriculum allows students to specialize in core areas of computer science and software engineering. Engineering design theory and methodology, as they apply to software systems, form an integral part of the curriculum, beginning with the first course in computing and culminating with a comprehensive senior design project, which gives students the opportunity to work in one or more significant application domains. The curriculum also emphasizes oral and written communication skills, the importance of ethical behavior, and the need for continual, life-long learning. The overall educational objectives of the Software Engineering program are for graduates of the program to attain success in their chosen profession and/or post-undergraduate studies. The undergraduate Software Engineering program is accredited by the Engineering Accreditation Commission of ABET, http:// www.abet.org.
    [Show full text]
  • Introduction to Computer Graphics and Animation
    NATIONAL OPEN UNIVERSITY OF NIGERIA COURSE CODE :CIT 371 COURSE TITLE: INTRODUCTION TO COMPUTER GRAPHICS AND ANIMATION 1 2 COURSE GUIDE CIT 371 INTRODUCTION TO COMPUTER GRAPHICS AND ANIMATION Course Team Mr. F. E. Ekpenyong (Writer) – NDA Course Editor Programme Leader Course Coordinator 3 NATIONAL OPEN UNIVERSITY OF NIGERIA National Open University of Nigeria Headquarters 14/16 Ahmadu Bello Way Victoria Island Lagos Abuja Office No. 5 Dar es Salaam Street Off Aminu Kano Crescent Wuse II, Abuja Nigeria e-mail: [email protected] URL: www.nou.edu.ng Published By: National Open University of Nigeria Printed 2009 ISBN: All Rights Reserved 4 CONTENTS PAGE Introduction………………………………………………………… 1 What you will Learn in this Course…………………………………. 1 Course Aims… … … … … … … … 4 Course Objectives……….… … … … … … 4 Working through this Course… … … … … … 5 The Course Material… … … … … … 5 Study Units… … … … … … … 6 Presentation Schedule… … … … … … … 7 Assessments… … … … … … … … 7 Tutor Marked Assignment… … … … … … 7 Final Examination and Grading… … … … … … 8 Course Marking Scheme… … … … … … … 8 Facilitators/Tutors and Tutorials… … … … … 9 Summary… … … … … … … … … 9 5 Introduction Computer graphics is concerned with producing images and animations (or sequences of images) using a computer. This includes the hardware and software systems used to make these images. The task of producing photo-realistic images is an extremely complex one, but this is a field that is in great demand because of the nearly limitless variety of applications. The field of computer graphics has grown enormously over the past 10–20 years, and many software systems have been developed for generating computer graphics of various sorts. This can include systems for producing 3-dimensional models of the scene to be drawn, the rendering software for drawing the images, and the associated user- interface software and hardware.
    [Show full text]
  • Computer Technology to Imitate Traditional Tie-Dye Patterns
    Advances in Engineering Research (AER), volume 117 2nd Annual International Conference on Electronics, Electrical Engineering and Information Science (EEEIS 2016) Computer technology to imitate traditional tie-dye patterns Xiao-Sha Yin1,a and Jian-Ming Wang2,b, † 1Beijing Institute of Fashion Technology, Beijing, China 2Beijing Institute of Fashion Technology, Beijing, China [email protected], [email protected] †Jian-Ming Wang Abstract. Because of its long tradition of printing and dyeing technology cycle, complicated production process, and the pollution of the environment, energy consumption in the future development of the ecological environment has hazards. By using Ultra Fractal to simulate fractal tie-dye pattern, reproduce the Chinese traditional tie-dye art, but also carry forward the traditional culture and inheritance. Keywords: Simulation; Fractal; Tie-dye. Introduction Tie-dye is an ancient folk art, handmade tie-dye all over the world, different historical and geographical environment, create tie-dye works differently[1].Since the penetration of fiber texture of the fabric, the fabric will be a strong level of color halos, even if the same graphic design, because of different method, different tightness, different water temperatures will allow the works to produce dry-changing of the results , so there will be some limitations in the design, and computer simulation can be dyed just right to fill the vacancy[2]. In recent years, through the use of computer-aided design technology graphic design, fractal pattern design and intelligent graphic design and digital printing technology and other methods combined. Wherein the graphic design software, image processing software Photoshop, graphics software Freehand, Illustrator, Corel Draw, mapping software Painter, typesetting software Pagemkae, Quark, etc.
    [Show full text]
  • Critical Review of Open Source Tools for 3D Animation
    IJRECE VOL. 6 ISSUE 2 APR.-JUNE 2018 ISSN: 2393-9028 (PRINT) | ISSN: 2348-2281 (ONLINE) Critical Review of Open Source Tools for 3D Animation Shilpa Sharma1, Navjot Singh Kohli2 1PG Department of Computer Science and IT, 2Department of Bollywood Department 1Lyallpur Khalsa College, Jalandhar, India, 2 Senior Video Editor at Punjab Kesari, Jalandhar, India ABSTRACT- the most popular and powerful open source is 3d Blender is a 3D computer graphics software program for and animation tools. blender is not a free software its a developing animated movies, visual effects, 3D games, and professional tool software used in animated shorts, tv adds software It’s a very easy and simple software you can use. It's show, and movies, as well as in production for films like also easy to download. Blender is an open source program, spiderman, beginning blender covers the latest blender 2.5 that's free software anybody can use it. Its offers with many release in depth. we also suggest to improve and possible features included in 3D modeling, texturing, rigging, skinning, additions to better the process. animation is an effective way of smoke simulation, animation, and rendering. Camera videos more suitable for the students. For e.g. litmus augmenting the learning of lab experiments. 3d animation is paper changing color, a video would be more convincing not only continues to have the advantages offered by 2d, like instead of animated clip, On the other hand, camera video is interactivity but also advertisement are new dimension of not adequate in certain work e.g. like separating hydrogen from vision probability.
    [Show full text]
  • 3D Modeling, Animation, and Special Effects
    3D Modeling, Animation, and Special Effects ITP 215 (2 Units) Catalogue Developing a 3D animation from modeling to rendering: basics of surfacing, Description lighting, animation, and modeling techniques. Advanced topics: compositing, particle systems, and character animation. Objective Fundamentals of 3D modeling, animation, surfacing, and special effects: Understanding the processes involved in the creation of 3D animation and the interaction of vision, budget, and time constraints. Developing an understanding of diverse methods for achieving similar results and decision-making processes involved at various stages of project development. Gaining insight into the differences among the various animation tools. Understanding the opportunities and tracks in the field of 3D animation. Prerequisites Knowledge of any 2D paint, drawing, or CAD program Instructor Lance S. Winkel E-mail: [email protected] Tel: 213/740.9959 Office: OHE 530 H Office Hours: Tue/Thur 8am-10am Lab Assistants: Qingzhou Tang: [email protected] Hours 4 hours Course Structure The Final Exam will be conducted at the time dictated in the Schedule of Classes. Details and instructions for all projects will be available on Blackboard. For grading criteria of each assignment, project, and exam, see the Grading section below. Textbook(s) Blackboard Autodesk Maya Documentation Resources online and at Lynda.com and knowledge.autodesk.com Adobe online resources where necessary for Photoshop and After Effects Grading Planets = 10 points Cityscape 1 of 7 = 10 points Cityscape 2 of
    [Show full text]
  • 3D Modeling and the Role of 3D Modeling in Our Life
    ISSN 2413-1032 COMPUTER SCIENCE 3D MODELING AND THE ROLE OF 3D MODELING IN OUR LIFE 1Beknazarova Saida Safibullaevna 2Maxammadjonov Maxammadjon Alisher o’g’li 2Ibodullayev Sardor Nasriddin o’g’li 1Uzbekistan, Tashkent, Tashkent University of Informational Technologies, Senior Teacher 2Uzbekistan, Tashkent, Tashkent University of Informational Technologies, student Abstract. In 3D computer graphics, 3D modeling is the process of developing a mathematical representation of any three-dimensional surface of an object (either inanimate or living) via specialized software. The product is called a 3D model. It can be displayed as a two-dimensional image through a process called 3D rendering or used in a computer simulation of physical phenomena. The model can also be physically created using 3D printing devices. Models may be created automatically or manually. The manual modeling process of preparing geometric data for 3D computer graphics is similar to plastic arts such as sculpting. 3D modeling software is a class of 3D computer graphics software used to produce 3D models. Individual programs of this class are called modeling applications or modelers. Key words: 3D, modeling, programming, unity, 3D programs. Nowadays 3D modeling impacts in every sphere of: computer programming, architecture and so on. Firstly, we will present basic information about 3D modeling. 3D models represent a physical body using a collection of points in 3D space, connected by various geometric entities such as triangles, lines, curved surfaces, etc. Being a collection of data (points and other information), 3D models can be created by hand, algorithmically (procedural modeling), or scanned. 3D models are widely used anywhere in 3D graphics.
    [Show full text]
  • Interactive Rendering in the Post-GPU Era
    Interactive Rendering In The Post-GPU Era Matt Pharr Graphics Hardware 2006 Last Five Years • Rise of programmable GPUs – 100s/GFLOPS compute – 10s/GB/s bandwidth • Architecture characteristics have deeply influenced s/w and algorithm development • Revolution in interactive graphics as software has exploited new hardware Next Five Years: A Second Revolution • Continued GPU innovation • CPUs finally providing FLOPS as well – Don’t require nearly as much parallelism • Shared memory/high bandwidth interconnect enable flexible computation model • Future role of today's graphics APIs is unclear Overview • The transition to programmable GPUs and the importance of computation in interactive rendering • New heterogeneous architectures • Implications for graphics software – Implementation challenges and opportunities – Increasing importance of software to drive complex hardware • Longer-term trends and convergence? Offline Rendering 5 Years Ago Shrek (PDI/Dreamworks) Interactive 5 Years Ago Quake 3 (id Software) Modern Offline Rendering Madagascar (PDI/Dreamworks) Modern Interactive Rendering Project Gotham Racing Modern Offline Rendering Starship Troopers 2 (Tippett Studio) Modern Interactive Rendering I-8 (Insomniac Games) What’s Happened In The Last 5 Years? • GPUs have taken advantage of semiconductor trends to deliver performance • GPU strengths/weaknesses have sparked innovation in algorithms and software – Interactive graphics is about computation • Interactive is delivering near-offline quality 1,000,000x faster GPU Architecture Has Led
    [Show full text]
  • Sun Bladetm 100 Workstation Just the Facts Copyrights
    Sun BladeTM 100 Workstation Just the Facts Copyrights ©2001 Sun Microsystems, Inc. All Rights Reserved. Sun, Sun Microsystems, the Sun logo, Sun Blade, Solaris, StarOffice, Ultra, Java, Java 3D, iPlanet, OpenWindows, PGX24, PGX32, VIS, SunPCi, Sun Workstation, Solaris Resource Manager, Solstice, Solstice AutoClient, SunVTS, ShowMe, ShowMe TV, ShowMe How, AnswerBook, AnswerBook2, Sun OpenGL for Solaris, Sun StorEdge, SunMicrophone, SunATM, SunClient, SunSpectrum, SunSpectrum Platinum, SunSpectrum Gold, SunSpectrum Silver, SunSpectrum Bronze, and SunSolve are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the United States and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. UNIX is a registered trademark in the United States and other countries, exclusively licensed through X/Open Company, Ltd. FireWire is a trademark of Apple Computer, Inc., used under license. OpenGL is a registered trademark of Silicon Graphics, Inc. Display PostScript and PostScript are trademarks of Adobe Systems, Incorporated, which may be registered in certain jurisdictions. Netscape is a trademark of Netscape Communications Corporation. Last update: 9/22/01 Just the Facts September 2001 2 Table of Contents Positioning............................................................................................................................................................5
    [Show full text]
  • Chapter 3 Application Software Chapter 3 Objectives Application
    Chapter 3 Objectives Identify the widely used Define application software application software products and explain their key features Understand how system software interacts with Identify various products application software available as Web applications Identify the role of the user Describe the learning aids Chapter 3 interface available with many software applications Application Software Explain how to start a software application Next p. 3.2 Application Software Application Software What is application software? What are the categories of application software? To serve as a productivity/ • Programs that business tool perform specific To assist with tasks for users graphics and • Also called a multimedia projects software application or an To support application household activities, • Several reasons to for personal use application business, or for education software To facilitate communications Next Next p. 3.2 p. 3.2 Fig. 3-1 Application Software Application Software What is system software? What is an antivirus program? • Programs that • A utility that prevents, detects, and removes viruses control the from a computer’s memory or storage devices operations of the computer • Serves as the Some interface viruses between the destroy or user, the corrupt data application software, and the computer's hardware Next Next p. 3.3 Fig. 3-2 p. 3.3 Fig. 3-3 1 Application Software Application Software What is an application window? What is a menu? command • A rectangular • A menu Start menu area of the contains title bar screen that commands Accessories submenu displays a you can All Programs toolbar submenu program, data, select and/or information shortcut Imaging program menu command Next Start button Next Paint p.
    [Show full text]
  • Custom Shader and 3D Rendering for Computationally Efficient Sonar
    Custom Shader and 3D Rendering for computationally efficient Sonar Simulation Romuloˆ Cerqueira∗y, Tiago Trocoli∗, Gustavo Neves∗, Luciano Oliveiray, Sylvain Joyeux∗ and Jan Albiez∗z ∗Brazilian Institute of Robotics, SENAI CIMATEC, Salvador, Bahia, Brazil, Email: romulo.cerqueira@fieb.org.br yIntelligent Vision Research Lab, Federal University of Bahia, Salvador, Bahia, Brazil zRobotics Innovation Center, DFKI GmbH, Bremen, Germany Sonar Parameters opening angle, direction, range osg viewport select rendering area osg world 3D Shader rendering of three channel picture Beam Angle in Camera Surface Angle to Camera Distance from Camera n° 90° Near 0° calculation -n° 0° Far select beam select bin Distance Histogramm # f(x) 1 Return Intensity Data Structure of Sonar Beam for n° return value return normalisation Bin Val 0,5 Bin # 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Near Far 0 0,5 0,77 1 x Fig. 1. A graphical representation of the individual steps to get from the OpenSceneGraph scene to a sonar beam data structure. Abstract—This paper introduces a novel method for simulating is that the simulation has to be good enough to test the decision underwater sonar sensors by vertex and fragment processing. making algorithms in the control system. The virtual scenario used is composed of the integration between When dealing with autonomous underwater vehicles the Gazebo simulator and the Robot Construction Kit (ROCK) framework. A 3-channel matrix with depth and intensity buffers (AUVs) a real-time simulation plays a key role. Since an AUV and angular distortion values is extracted from OpenSceneGraph can only scarcely communicate back via mostly unreliable 3D scene frames by shader rendering, and subsequently fused acoustic communication, the robot has to be able to make and processed to generate the synthetic sonar data.
    [Show full text]