HS/HL Removal1 FUNDAMENTOS DE ELIMINACIÓN DE SUPERFICIES OCULTAS Graficación FCC.

Slides:



Advertisements
Presentaciones similares
Sistemas de Graficación
Advertisements

El Verbo GUSTAR En español gustar means to be pleasing In English, the equivalent is to like.
ENSAYOS (Composiciones)
AUTO-ORGANIZACIÓN Samuel Sanz Guzmán.
Sistemas de coordenadas de referencia
Using Localised “Gossip” to Structure Distributed Learning Bruce Edmonds Centre for Policy Modelling Manchester Metropolitan University.
Preposciones de Lugar U2.2.
Triangles. How many triangles can you count in this picture? Are they the same? NOTA: Para cambiar las imágenes de esta diapositiva, seleccione una imagen.
Sistemas de ecuaciones
Graficación IV. Síntesis de imagen. Detección de superficie visible Para sintetizar una imagen que parezca real, es necesario determinar qué objetos están.
Ordenación, Clasificación
Adjectives agree in gender and number with the persons or things they describe. Masculine adjectives usually end in -o and feminine adjectives usually.
Eliminación de Superficies Ocultas
Los verbos regulares – ar What is an infinitive? An infinitive in both Spanish and English is the base form of the verb. In English, the infinitive.
Español 2-2 Sra. Carpinella.  In Spanish, there are several verbs that have spelling changes in the stem of the word.  The stem is the part of the word.
Demonstrative Adjectives and Pronouns
Gustar- To like (to please)
Visualización Computacional de Datos I Graficando objetos 3D en el monitor.
FUNDAMENTOS DE LOS GRÁFICOS EN 3D
Vocabulary of Instruction: Geometry
Estrategias de Optimización Visualización II – 2009 Ing. Juan P.D’Amato.
Fundamentos.  Abstracción Matemática  Rendering  Pre-rendering  Real-time rendering.
Primer Parcial -> Tema 1 Minería de Datos Universidad del Cauca.
Modeling of objects Watt chap. 2, Hearn ,
LOCATION! LOCATION! READ ALL ABOUT IT!! ¿DÓNDE ESTÁ? WHERE IS IT? Based on the clues, try to figure out the meaning of the BOLD Spanish prepositional phrases.
>> Visibilidad <<
Rendering.
4.1 Continuidad en un punto 4.2 Tipos de discontinuidades 4.3 Continuidad en intervalos.
Superficies Visibles Prof. Fernández et al. (Universidad de la República de Uruguay) - Prof. Möller et.
The Normal Distribution To calculate the probability of a Normal distribution between a and b:
Time Expression with Hacer Grammar Essential #106.
Fundamentos.  Abstracción Matemática  Rendering  Pre-rendering  Real-time rendering.
Mapeo de Texturas Capitulo 9 de Angel. Detalle de superficie Hasta ahora hemos visto como crear superficies uniformes planas o bicúbicas, y hemos animado.
A direct object noun receives the action of the verb directly and generally follows the verb. In the example above, the direct object noun answers the.
A direct object noun receives the action of the verb directly and generally follows the verb. In the example above, the direct object noun answers the.
HYPERBOLAS Standard 4, 9, 16, 17 DEFINITION OF A HYPERBOLA
DEFINITION OF A ELLIPSE STANDARD FORMULAS FOR ELLIPSES
TIENEN 5 MINUTOS Objective: I can use prepositions to help describe where things are located. Vocab/Ideas: Estar Estoy Estás Está Estamos Estáis Están.
Create a PowerPoint illustrating the weather in a Spanish-speaking country. Make two slides only Sign up with the teacher for your country. They cannot.
Los mandatos. Cómo formar los mandatos Use commands when you want to tell someone to do something or not to do something.
Arboles B (búsqueda externa)
First Grade – High Frequency Word Reading Competition Classroom Competition Created by: Malene Golding School Improvement Officer: Kimberly Fonteno.
Mi dormitorio My bedroom
Digital Photography: Selfie Slides By: Essence L. Thomas.
¡Hola clase! Take notes and answer questions on all upcoming slides. (except for the Tip of the Day slide) ¡Nos vemos el martes!
El calentamiento - el 6 de octubre 1.el bolígrafo la bolígrafo 2.la carpetaslas carpetas 3.el deporteslos deportes 4.el plumala pluma 5.las animaleslos.
Adverbs are words that describe how, when, and where actions take place. They can modify verbs, adjectives, and even other adverbs. In previous lessons,
El Verbo “GUSTAR” En español gustar means “to be pleasing” In English, the equivalent is “to like”
Hoy es jueves, el diez y siete de octubre
Las preposiciones Prepositions of place.
10.4 Adverbs ANTE TODO  Adverbs are words that describe how, when, and where actions take place.  They can modify verbs, adjectives, and even other adverbs.
Overclipping It’s very important as a trader that you understand your clip size and what positions this allows you to have. In addition it will help you.
Gustar “to like” By Arianna and Sarah. Gustar- To like (to please) Me gusta (I like) Te gusta (you like) Singular Nos gusta (we like) Me gustan (I like)
Los verbos reflexivos Reflexive Verbs.
El presente indicativo ESPAÑOL 1. A. What is the present tense? It is when the action of a verb occurs at the moment. Verbs can be divided into two categories:
Two-dimensional Shapes Las formas bidimensionales
1 Ordenando. 2 Sorting Input Una secuencia de numeros a 1, a 2, a 3, …, a n Output Una permutación (reorden) a’ 1, a’ 2, a’ 3, …, a’ n de la input, tal.
Relaciones de las formas entre sí (Relation among shapes and forms)
NEIGHBOURHOOD By Viviana Lezica & Flavia Pereira By Viviana Lezica & Flavia Pereira.
Las preposiciones Prepositions of place.
Expressing likes and dislikes.
Gender Equality By Sandra y Estela.
Quasimodo: Tienes que hacer parte D de la tarea..
©2014 by Vista Higher Learning, Inc. All rights reserved The verb ir (to go) is irregular in the present tense. Note that, except for the yo form.
Demonstrative adjective
Determinación de superficies ocultas
VECTOR: Conjuction of 2 parameters: Module: Quantity, actual value, dimension Direction: “Where is it going to or coming from”
Día 2 –Español 4 NS (HL) y NM (SL)
Astronomy has really big numbers. Distance between Earth and Sun meters kilometers This is the closest star.
Las Preguntas (the questions) Tengo una pregunta… Sí, Juan habla mucho con el profesor en clase. No, Juan no habla mucho en clase. s vo s vo Forming.
Transcripción de la presentación:

HS/HL Removal1 FUNDAMENTOS DE ELIMINACIÓN DE SUPERFICIES OCULTAS Graficación FCC

HS/HL Removal2 HL / HS Algorithms Hybrid Object Space Image Space Hidden Line Hidden Surface Taxonomy of Algorithms

HS/HL Removal3 ALGORITMOS DE ESTUDIO El método de la normal al plano El Algoritmo del Pintor El algoritmo de Z-Buffer El algoritmo Árboles de Partición del Espacio Binario (BSP Trees) (Tarea 5: investigar)

HS/HL Removal4 1. Introducción ¿Por qué eliminar HL/HS ? ¿Cuál ?

HS/HL Removal5 Introducción Para producir una visión realista de un cuerpo hemos de determinar qué curvas y superficies pueden ser observadas desde un punto de vista dado y cuáles no. El problema general que consiste en hacer que los objetos se vuelvan opacos en el mundo de los gráficos tridimensionales se denomina eliminación de las superficies ocultas o eliminación de líneas ocultas, puesto que implica eliminar aquellas superficies o líneas del dibujo que habitualmente permanecerían ocultas. A continuación ser verán algunos algoritmos que se dedican al tratamiento de dicho problema.

HS/HL Removal6 El Método de la normal al plano (Back-Face Culling) back-face normal pointing inside

HS/HL Removal7 Inside a polygon V Assuming, i.e., Furthermore, boundary outside Back-Face Culling (Cont’)

HS/HL Removal8 Back-Face Culling (Cont’) Summary Calculate a surface normal, N = (A,B,C). N = ( P2 - P1 ) x ( P3 - P2 ) Compute D in plane equation by substituting any polygon vertex into the plane equation. Plane(P) = Ax + By + Cz + D = 0 Calculate Plane(eyept) to determine if eye is above or below. This corresponds to checking the sign of D.

HS/HL Removal9 Back-face culling (Another way) Take a vector V from the eye to any point within the polygon (for example, from the eye to a vertex) Let A be the normal of the polygon Then, compute V*A. If it is positive then do not display. If it is negative, the face is facing the camera and might be seen. The back-face culling can be determined easily with dot product.

HS/HL Removal10 In other words. 1. V=(x 1 -e x, y 1 -e y, z 1 -e z ) 2. A= ( P2 - P1 ) x ( P3 - P2 ) 3. Calculate V · A If V · A > 0 then display If V · A < 0 then not display

HS/HL Removal11 ALGORITMO DEL PINTOR Se procede a dibujar todos los polígonos que aparecen en la escena de atrás hacia adelante, de manera que los polígonos situados en primer plano se dibujan sobre los polígonos situados en el fondo. De esta manera, los polígonos más cercanos obstaculizan la visión de los polígonos más lejanos. Los objetos que aparecen en primer plano (en este caso, las personas, pintados sobre los objetos del fondo)

HS/HL Removal12 ALGORITMO DEL PINTOR: Problema del solapamiento mutuo La clasificación se realiza sobre la coordenada z máxima de cada polígono. Existe una situación en la cual el algoritmo del pintor no es capaz de realizar una clasificación correcta de los polígonos que se pretenden dibujar. Se trata del denominado solapamiento mutuo que tiene lugar cuando tres o más polígonos se solapan entre sí de manera circular. Si dichos polígonos fuesen clasificados mediante el algoritmo del pintor, no habría un orden correcto en el cual clasificarlos. La única solución totalmente satisfactoria consistiría en dividir cada uno de los polígonos en dos.

HS/HL Removal13 6. Depth Sorting Algorithm (List Priority Algorithms) C B A y x z C B A z x sorting painting Painter’s Algorithm !!! (A,B,C)

HS/HL Removal14 Depth comparison min z max z A B Z XY-plane min(z-coord of A)> max(z-coord of B)  A behind B min(z-coord of B)> max(z-coord of A)  B behind A

HS/HL Removal15 Establishing Depth Order List: lists those triangles that are in front of it Counter: how many triangle are behind it Triangle: list of object triangles trianglecounterlist

HS/HL Removal16 EL ALGORITMO Z-BUFFER I El único sistema realmente exhaustivo para llevar a cabo una clasificación de profundidades implicaría determinar la profundidad de cada punto sobre la superficie de cada polígono en la pantalla y proceder a dibujar sólo los puntos que estén más cercanos con respecto al espectador. Afortunadamente, sólo es preciso clasificar aquellos puntos que van a ser dibujados, es decir, aquellos que corresponden a los pixels situados en el puerto de visualización. El algoritmo Z-buffer determina qué puntos situados sobre determinados polígonos están más cerca del espectador para cada píxel en el puerto de visualización. En cada posición del píxel x,y sobre el plano de visión, la superficie con la menor coordenada z en esa posición es visible.

HS/HL Removal17 EL ALGORITMO Z-BUFFER II Cada vez que un punto de la superficie de un polígono se dibuje, la coordenada z del punto es comparada con el valor actual de dicha posición en el buffer. Si la coordenada z en el buffer es menor que la del nuevo punto, el nuevo píxel no se dibuja, ya que dicho punto estaría más lejos que el punto anterior y formaría parte de una superficie oculta, en caso contrario el nuevo píxel se dibuja sobre la anterior y la coordenada z del nuevo píxel se coloca, reemplazando al anterior.

HS/HL Removal18 5. Depth-Buffer Algorithms (z-buffer algorithms) Frame buffer intensity Depth buffer depth z x y

HS/HL Removal19

HS/HL Removal20 Summary of Z-buffer algorithm: for all i,j { Depth[i,j] = MAX_DEPTH Image[i,j] = BACKGROUND_COLOUR } for all polygons P { for all pixels in P { if (Z_pixel < Depth[i,j]) { Image[i,j] = C_pixel Depth[i,j] = Z_pixel }