- Stahuj zápisky z přednášek a ostatní studijní materiály
- Zapisuj si jen kvalitní vyučující (obsáhlá databáze referencí)
- Nastav si své předměty a buď stále v obraze
- Zapoj se svojí aktivitou do soutěže o ceny
- Založ si svůj profil, aby tě tví spolužáci mohli najít
- Najdi své přátele podle místa kde bydlíš nebo školy kterou studuješ
- Diskutuj ve skupinách o tématech, které tě zajímají
Studijní materiály
Hromadně přidat materiály
Prezentace Camera analogy_Hlopko Marcel
Y04A2Z - Anglický jazyk 2-1
Hodnocení materiálu:
Zjednodušená ukázka:
Stáhnout celý tento materiálglEnd();
glFlush();
UpdateTheWindow();
}
InitializeAWindow() command initializes a window on the screen. This command is different on different window systems (X window systém on Solaris, Microsoft Windows etc.). Next two commands will set the background color to black and will clear the window (to black). GlColor3f sets what color to use for drawing objects. In this case, color is white. GlOrtho specifies a coordinate system. Next calls that are bracketed by glStart() and glEnd() define the object to be drawn. In our case a polygon with 4 vertices is drawn. GlFlush() ensures that drawing commands are executed, not only stored in buffer and waiting for additional commands. UpdateTheWindow() is also dependable on an operating system.
At the highest level of abstraction, there are only three basic drawing operations: clearing the window, drawing a geometric object and drawing a raster object. Raster objects are things like two dimensional images (as you could see in old action games like Duke Nukem 3d), bitmaps, character fonts.
This image has been drawn using a similar (but far more complicated) code as you saw before. Everything you can see consists of points, lines, and polygons. Nothing more. There is a round table, many things with curved surface. How to do that using straight lines? It turns out that all the curved lines and surfaces you’ve seen are approximated by large numbers of little flat polygons or straight lines, in the same way that the globe is constructed from a large set of rectangular blocks. The globe doesn't appear to have a smooth surface, because the blocks are relatively large compared to the globe.
What are points, lines and polygons?
You have a fairly good idea what a point, line and polygon are. The OpenGL meaning is similar, but not the same. One difference comes from the limitation of computer-based calculations that are finite precision, and have round-off errors. Another limitation arises from a raster graphic display. The smallest displayable unit is a pixel. And the pixel is larger than an infinitely small point or infinitely thin line.
A point is represented as a vertex. In OpenGL a term line refers to a line segment, not as mathematicians' version that extends to infinity.Polygons are the areas enclosed by single closed loops of line segments. OpenGL polygons must be convex. That means that if two points are in interior, the line segment must be in interior too. Polygons don't have to be in a plane. Imagine a four-point quadrilateral where the points are slightly out of plane. And now look at it almost edge-on. You can get a non-simple polygon. That is why triangles are used. Three points always lie on the same plane.
Other choices – DirectX
DirectX is almost the same thing as OpenGL. It is widely used in the developm
Vloženo: 26.04.2009
Velikost: 230,50 kB
Komentáře
Tento materiál neobsahuje žádné komentáře.
Mohlo by tě zajímat:
Skupina předmětu Y04A2Z - Anglický jazyk 2-1
Reference vyučujících předmětu Y04A2Z - Anglický jazyk 2-1
Podobné materiály
- Y04A2Z - Anglický jazyk 2-1 - Prezentace A two-factor method_Kellerová Ludmila
- Y04A2Z - Anglický jazyk 2-1 - Prezentace A Way to Cut Fuel Consumption_Hybrid Vehicles_Pohlreich Martin
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Cogeneration_Balata Jan
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Content Management System
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Energy Green Paper_Pápai Ján
- Y04A2Z - Anglický jazyk 2-1 - Prezentace European Union_Kobetič Vladimír
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Five main EU institutions_Franěk Dominik
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Forms of Advertising_Šimáček Dalibor
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Future world_Daum Martin
- Y04A2Z - Anglický jazyk 2-1 - Prezentace History of the European Union
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Investment criteria for the selection of cogeneration plants_Muchka Václav
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Marketing research_Mach Jaroslav
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Mixed Reality Geographical Information System_Pavlišta Jiří
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Optical Mouse Principle_Pavelka Jiří
- Y04A2Z - Anglický jazyk 2-1 - Prezentace RADIO_Hilgert Luboš
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Why the EU_Bartošová Veronika
- Y04A2Z - Anglický jazyk 2-1 - Prezentace wifi_Vančišin Jakub
- Y04A2L - Anglický jazyk 2-2 - Prezentace 3Dmodeling_Kučera Adam
- Y04A2L - Anglický jazyk 2-2 - Prezentace AutoCAD_Vagner Vlastimil
- Y04A2L - Anglický jazyk 2-2 - Prezentace Comparison_USA x GB_Běhounek Jan
- Y04A2L - Anglický jazyk 2-2 - Prezentace Data Storage
- Y04A2L - Anglický jazyk 2-2 - Prezentace Database modelling_Peisar Jakub
- Y04A2L - Anglický jazyk 2-2 - Prezentace Database_Tvaroh Tomáš
- Y04A2L - Anglický jazyk 2-2 - Prezentace EU Institutions_Krebs Zbyněk
- Y04A2L - Anglický jazyk 2-2 - Prezentace European Commission_Hilgert Luboš
- Y04A2L - Anglický jazyk 2-2 - Prezentace European Council_Boháčová Markéta
- Y04A2L - Anglický jazyk 2-2 - Prezentace Freedom, security and justice_Vedral Martin
- Y04A2L - Anglický jazyk 2-2 - Prezentace gdt_Dudová Kristýna
- Y04A2L - Anglický jazyk 2-2 - Prezentace Loudspeakers_Tománek Jakub
- Y04A2L - Anglický jazyk 2-2 - Prezentace Optical drives_Fábry Martin
- Y04A2L - Anglický jazyk 2-2 - Prezentace Schengen_Agreement_Kubera Ondřej, Klíma Zdeněk
- Y04A2L - Anglický jazyk 2-2 - Prezentace Separation of powers_Říha Vladimír
- Y04A2L - Anglický jazyk 2-2 - Prezentace SQL
- Y04A2L - Anglický jazyk 2-2 - Prezentace Structured Query Language_Nazarov Andrej
- Y04A2L - Anglický jazyk 2-2 - Prezentace Surround sound_Vávra David
- Y04A2L - Anglický jazyk 2-2 - Prezentace System of government_Šimák Boris
- Y04A2L - Anglický jazyk 2-2 - Prezentace The European Economic and Social Committee_Mižík Peter
- Y04A2L - Anglický jazyk 2-2 - Prezentace Turning 2D Shapes into 3D Objects_Košlab Richard
- Y04A2L - Anglický jazyk 2-2 - Prezentace UDDI_Kalinová Petra
- Y04A2L - Anglický jazyk 2-2 - Prezentace UnitedStatesCongress_Přibyl Rostislav
- Y04A2L - Anglický jazyk 2-2 - Prezentace WCM and MLM system_Novák Vojtěch
- Y04A2L - Anglický jazyk 2-2 - Prezentace Web Content Management Systems_Balata Jan
- Y04A2L - Anglický jazyk 2-2 - Prezentace XMLaSOAP Michal
Copyright 2025 unium.cz


