RASTERIZATION Projection Transformation Orthographic Projection Perspective Projection 2
- Slides: 123
RASTERIZATION
Projection Transformation ทสำคญ แบบ • Orthographic Projection • Perspective Projection 2
Orthographic Projection )ตอ ( http: //www 2. arts. ubc. ca/Theatre. Design/crslib/drft_1/orthint. htm
Orthographic Projection )ตอ ( http: //www 2. arts. ubc. ca/Theatre. Design/crslib/drft_1/cad/wdstv. htm
การนยาม Orthographic Projection )ตอ ( • Matrix ของ orthographic projection ตองทำอะไรบา – สง – สง x = left ไป x = -1 x = right ไป x = 1 y = bottom ไป y = -1 y = top ไป y = 1 z = -far ไป z = 1 z = -near ไป z = -1
Matrix ของ Orthographic Projection
คำสง Open. GL เกยวกบ Orthographic Projection • gl. Ortho(left, right, bottom, top, near, far) – คณ matrix ปจจบนดวย matrix ของ orthographic projection ในหนากอน – กอนใชควรเรยก gl. Matrix. Mode(GL_PROJECTION) gl. Load. Identity() กอนเพอเปลยน mode และเคลยรคา projection matrix เดม • gl. Ortho 2 D(left, right, bottom, top) – เหมอนกบ เปน 1 gl. Ortho แตใหคา near เปน 0 และ คา far
Perspective Projection )ตอ (
Perspective Projection (cont. ) orthographic perspective
การนยาม Perspective Projection • นยามดวยเลข 6 ตวเหมอนกบ projection orthographic
การนยาม Perspective Projection) ตอ ( • หา x ใน clip space (x, y, z) (0, 0, 0)
การนยาม Perspective Projection) ตอ ( • กลาวคอ perspective projection matrix จะตองสง ไปยง
Matrix ของ Perspective Projection
คำสง Open. GL เกยวกบ Perspective Projection • gl. Frustum(left, right, bottom, top, near, far) – คณ matrix ปจจบนดวย projection ในหนากอน – กอนใชควรเรยก matrix ของ perspective gl. Matrix. Mode(GL_PROJECTION) gl. Load. Identity() กอนเพอเปลยน mode และเคลยรคา matrix เดม projection
คำสง Open. GL เกยวกบ Perspective Projection) ตอ ( • glu. Perspective(fovy, aspect, near, far) – คณ matrix ปจจบนดวย perspective projection matrix เชนเดยวกบ gl. Frustrum – มผลเหมอนกบสง gl. Frustum โดยได • • top = near * tan(fovy / 2) bottom = -top right = aspect * top left = -right
RASTERIZATION
HIDDEN SURFACE REMOVAL
DEPTH BUFFER ใน OPENGL
เมอ Render โดยไมม Depth Buffer
จรงๆ แลว code เปนอยางน gl. Color 3 d(0. 5, 1, 0. 5); gl. Begin(GL_TRIANGLES); gl. Vertex 3 d(0, 0. 5, 0); gl. Vertex 3 d(-0. 5, 0); gl. Vertex 3 d(0. 5, -0. 5, 0); gl. End(); gl. Color 3 d(1, 0. 5); gl. Begin(GL_TRIANGLES); gl. Vertex 3 d(0, -0. 75, 1); gl. Vertex 3 d(0. 40, 0, 1); gl. Vertex 3 d(-0. 40, 0. 30, -1); gl. End();
การใช Depth Buffer ใน GLUT • เวลาสง glut. Init. Display. Mode ใหเพม GLUT_DEPTH ดวย glut. Init. Display. Mode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH) • เรยก gl. Enable(GL_DEPTH_TEST) • เวลาเรยก gl. Clear ใหเพม GL_DEPTH_BUFFER_BIT gl. Clear(GL_COLOR_BUFFER_BIT | GLUT_DEPTH_BUFFER_BIT)
โคดตวอยาง int main(int argc, char **argv) { glut. Init(&argc, argv); glut. Init. Display. Mode(GLUT_RGBA | GLUT_DOUBLE); glut. Init. Window. Size(600, 600); glut. Create. Window("No Depth Buffering"); glut. Display. Func(display); gl. Enable(GL_DEPTH_TEST); glut. Main. Loop(); return 0; }
ILLUMINATION
- Isometric drawing view
- Projection matrix
- Line rasterization
- Triangle rasterization algorithm
- Gpu perfstudio
- Scan converting ellipse in computer graphics
- Raster grafika
- Rasterization
- Ray tracing vs rasterization
- Scan conversion also known as
- Types of polygon filling in computer graphics
- Drawing conceptual framework
- Orthographic projection types
- Orthographic projection animation
- Multi-view drawing
- Primary auxiliary view
- Points
- Cad
- Orthographic projection
- Missing views
- Orthographic projection quadrants
- Orthographic drawing steps
- What's missing
- Orthographic projection
- The representation of an object on a plane surface
- Orthographic and oblique projection
- Orthographic projection
- Homogeneous coordinate
- What is end view in engineering drawing
- Orthographic projection geology
- Single curved surface
- First and third angle projections
- Oblique drawing examples
- Orthographic projection of cone
- Visible line example
- Size
- How to draw orthographic projection
- Orthographic drawing
- Pyramid in engineering drawing
- Hexagonal prism
- 45 degree miter line
- Orthographic drawing
- Orthographic projection solidworks
- 3 views of isometric drawing
- First angle and third angle projection
- 3/4 isometric view
- Orthographic projection of pyramid
- Multiview drawing with dimensions
- Projections of lines
- Orthographic projection circle
- Introduction of orthographic projection
- In unidirectional system the dimensions are placed
- First angle projection method
- Stairs one point perspective
- Silo perspective vs business process perspective
- Berapa banyak kontrol transformation dalam 3d
- Perspective projection
- Auxiliary vanishing points
- Eglive
- Perspective projection matrix
- Perspective projection
- Weak perspective projection
- Perspective projection
- Cavalier projection drawing
- Scalar projection vs vector projection
- Orthographic dyslexia
- Piping engineering drawing
- Imaginarily definition
- Orthographic processor
- Orthographic view of the outside of a building
- Orthographic drawing
- Running dimensioning
- Multiview sketches
- Top view is directly above the front view
- Orthographic sketching
- The six standard views
- Inclined surfaces in orthographic projections
- Axonometric
- Orthographic
- Surface area jeopardy
- Vistas isometricas
- Orthographic changing verbs
- Reverse perspective
- Glu perspective
- Orthagonals
- Example of emic and etic
- Manohar khushalani
- Discontinuous development psychology
- Symbols in sociology
- History of midwifery in india
- Non isometric line
- Entrepreneurial perspective
- Managerial economics fundamental concepts
- What sociological perspective stresses that age
- Second person perspective
- Ideas of structural functionalism
- Sociological perspective on mental health
- Non linear perspective
- What is linear perspective?
- Mercantile models
- Bedroom perspective drawing
- Why is point of view important
- Financial perspective
- Conflict theory
- Linear perspective ap psychology
- Outrageous celebrity psychology assignment
- The sociological perspective is a point of view that
- One point perspective object
- Perspective vs perception
- Broad problem area example
- Snow white feminist
- Second person clue words
- Perspective
- Information design: a unified perspective
- My perspective
- Glu perspective
- 1 point perspective examples
- Perspective taking examples
- Conflict perspective on education
- Monocular cue relative motion
- Becl2 perspective drawing
- Two point perspective city
- Humanistic
- Perspective mod