{ "course": "Computer_Graphics", "course_id": "CO3059", "schema_version": "material.v1", "slides": [ { "page_index": 0, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_001.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_001.png", "page_index": 0, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:07:24+07:00" }, "raw_text": "Hochiminh city University of Technology Faculty of Computer Science and Engineering COMPUTER GRAPHICS CHAPTER 01: Graphics System" }, { "page_index": 1, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_002.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_002.png", "page_index": 1, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:07:29+07:00" }, "raw_text": "Outline Application Image Formation Models and Architectures APl Contents Faculty of Computer Science and Engineering - HCMUT Slide 2" }, { "page_index": 2, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_003.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_003.png", "page_index": 2, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:07:45+07:00" }, "raw_text": "Computer Graphics: Why & What? Why How does a water softener work? by Nicholas Gerbis - \"A Picture is Worth a f share yTweet 89 8-1 33 Page 12 3 Thousand Words\" howstuffw?rks.com Quickc Whaf's hard and scaly and dwells in your pipes?No,its not the pet alligator your parents flushed down the toilet-he's grown up and Brain terrorizing the sewers of Chicago.We're talking about hard water. Stuff We call water hardir it contains a lot of calcium magnesium or other minerals.Groundwater withMarshall Brain acquires these metals by dissolving them frorm Water Softner surrounding soil and rock.Industry measures water hardness in terms of grains per gallon GPGor mlligrams per iermg/L.A grain is defined as64.8miligrams of calcium carbonate Watch as Marehall Brain cxplaina howwater softenere work source:Business Dictionary.I your water tests brainstutr at 1GPG17.1mg/L) or less,then you have soft water.Water around 1-35GPG17.1-60 mg/L) UP NEXT ocoupies a gray zone between soft and slightly How Home Dry Cleaning Works hard water and 3.5-7GPG60-120 mg/L) is How the Toto Washiet Works moderately hard.Hard water is around7-10.5 10 Stand-up Facts About Wateriess Urinals GPG120-180mg/L)and very hardwater is above that [source:Water Quality Association] How do all those number affect you?Hard water causes two problems 1.Dissolved calcium and magnesium precipltate out of hard water as scale,which builds up on the insides of pipes,water heaters,tea kettles,coffee makers and industrial machineryScale reduces flow through pipes and is a poor conductor of heat.Eventually.pipes can become completely clogged. 2.Hard water reduces soap's abllty to lather,whether in the shower,sink,dishwasher or washing machine.and reacts witn soap to form a sticky scum Science and Engineering - HCMUT Faculty of Computer Slide 3" }, { "page_index": 3, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_004.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_004.png", "page_index": 3, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:07:55+07:00" }, "raw_text": "Computer Graphics: Why & What? Softening Process HARDWATER SOFTWATER ENTERS THE ENTERS YOUR NATERSOFTENER HOME. Resin beads hold sodium. 2 TINYBEADSIN THERESIN BED ATTRACT THE HARDWATER MINERALS, REMOVING As the hard water THEMFROM flows through the THEWATER. resin beads... Resin Tank Resin Bed ..sodium is swapped for hard waterminerals Faculty of Computer Science and Engineering - HCMUT Slide 4" }, { "page_index": 4, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_005.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_005.png", "page_index": 4, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:08:01+07:00" }, "raw_text": "Computer r Graphics: Why & What? E Faculty of Computer Science and Engineering - HCMUT Slide 5" }, { "page_index": 5, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_006.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_006.png", "page_index": 5, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:08:08+07:00" }, "raw_text": "Computer r Graphics: Why & What? THE HUMAN BRAIN PROCESSES VISUALS 60,000 TIMES I FASTER THAN TEXT Faculty of Computer Science and Engineering - HCMUT Slide 6" }, { "page_index": 6, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_007.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_007.png", "page_index": 6, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:08:13+07:00" }, "raw_text": "Computer r Graphics: Why & What? What - Computer graphics deals with all aspects of creating images with a computer Hardware Software High-Level: Maya, Lightwave, 3DS Studio Low-level: OpenGL, Direct3D - Libraries for programming graphics applications Applications Faculty of Computer Science and Engineering - HCMUT Slide 7" }, { "page_index": 7, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_008.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_008.png", "page_index": 7, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:08:19+07:00" }, "raw_text": "Application Display of Information Simulation and Animation User Interface Faculty of Computer Science and Engineering - HCMUT Slide 8" }, { "page_index": 8, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_009.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_009.png", "page_index": 8, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:08:26+07:00" }, "raw_text": "Application Display of Information - Complex scientific data Faculty of Computer Science and Engineering - HCMUT Slide 9" }, { "page_index": 9, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_010.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_010.png", "page_index": 9, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:08:32+07:00" }, "raw_text": "Application Display of Information - Medical Imaging 00000 Faculty of Computer r Science and Engineering - HCMUT Slide 10" }, { "page_index": 10, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_011.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_011.png", "page_index": 10, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:08:37+07:00" }, "raw_text": "Application Display of Information - Network and threat visualization Faculty of Computer Science and Engineering - HCMUT Slide 11" }, { "page_index": 11, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_012.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_012.png", "page_index": 11, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:08:45+07:00" }, "raw_text": "Application Computer-Aided Design - Architecture Faculty of Computer Science and Engineering - HCMUT Slide 12" }, { "page_index": 12, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_013.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_013.png", "page_index": 12, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:08:49+07:00" }, "raw_text": "Application Computer-Aided Design - Mechanical Engineering Faculty of Computer Science and Engineering - HCMUT Slide 13" }, { "page_index": 13, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_014.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_014.png", "page_index": 13, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:09:07+07:00" }, "raw_text": "Application Computer-Aided Design - Digital Logic Design ResAtTriCnt CLK S NI EOOTT & && CLK ResE= xcceivct Serial 193 CLX2 13 CDN GOR Roset CIF QAR 88888888 D QI QC 5 QE A QA 15 15 AZ A3 85 3 11 a5 LCAD A2 A2 12 12 14 A1 AL CLR A>3 AC 10 1t AD A>B a=B A=B - ABin A>Bin A=Bin A=Bin c B AcEin A Lum: 78 Blue 122 OK Cancel Add to Custom Colors Faculty of Computer Science and Engineering - HCMUT Slide 39" }, { "page_index": 39, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_040.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_040.png", "page_index": 39, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:11:36+07:00" }, "raw_text": "Computer Graphics Systems Output devices Color CRT x scan controller y x red green pixel blue value electron- beam deflection frame buffer DACs guns coils (6 planes) Faculty of Computer Science and Engineering - HCMUT Slide 40" }, { "page_index": 40, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_041.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_041.png", "page_index": 40, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:11:41+07:00" }, "raw_text": "Computer Graphics Systems 00, 01,10, 11 00,01,10,11 00, 01,10,11 110110 Faculty of Computer Science and Engineering - HCMUT Slide 41" }, { "page_index": 41, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_042.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_042.png", "page_index": 41, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:11:47+07:00" }, "raw_text": "Computer Graphics Systems Output devices - Indexed Color & Look up table LUT 640*480*6/8 = 230 K 63 640*480*15/8 = 230K*2.5 frame buffer index 39 01010 11001 10010 6 bit planes to LUT 39 LUT : 64*15/8 = 120 2 bytes 1 0 5 52 5 Faculty of Computer r Science and Engineering - HCMUT Slide 42" }, { "page_index": 42, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_043.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_043.png", "page_index": 42, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:12:02+07:00" }, "raw_text": "Computer Graphics Systems Output devices 0 0 0 39 0 0 0 0 0 0 39 39 39 0 0 0 LUT 63 0 0 39 39 39 0 0 0 39 39 39 39 39 39 39 0 39 39 39 39 39 39 39 0 frame buffer 0 0 39 39 39 0 0 0 index 39 10010 11001 01010 6 bit planes to LUT 0 0 39 39 39 0 0 0 0 0 0 39 0 0 0 0 39 2 1 0 00000 00000 00000 5 S 10010 = 18 11001 = 25 01010 = 10 R = 18*8 = 64 G = 25*8 = 150 B = 10*8 = 80 Faculty of Computer Science and Engineering - HCMUT Slide 43" }, { "page_index": 43, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_044.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_044.png", "page_index": 43, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:12:16+07:00" }, "raw_text": "Computer Graphics Systems Output Devices 0 0 0 39 0 0 0 0 0 0 39 39 39 0 0 0 LUT 63 0 0 39 39 39 0 0 0 39 39 39 39 39 39 39 0 39 39 39 39 39 39 39 0 frame buffer 0 0 39 39 39 0 0 0 index 39 11111.00001.11111 6 bit planes to LUT 0 0 39 39 39 0 0 0 0 0 0 39 0 0 0 0 39 2 1 0 11111 11111 00000 5 5 5 R, G, B 11111, 00010, 11111 255 16, 255 Faculty of Computer Science and Engineering - HCMUT Slide 44" }, { "page_index": 44, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_045.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_045.png", "page_index": 44, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:12:22+07:00" }, "raw_text": "Computer Graphics Systems Output devices expensive (frame buffer needs 4Mbyte) 24 bits/pixel RGB=45,73,208 8 8 RGB=45,74,208 6 1.3 million pixels RGB=45,74,215 inexpensive (frame buffer needs 1Mbyte 8 bits/pixel 24 8 1.3 million pixels 8 8 Faculty of Computer Science and Engineering - HCMUT Slide 45" }, { "page_index": 45, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_046.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_046.png", "page_index": 45, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:12:29+07:00" }, "raw_text": "Computer Graphics Systems Output Devices x scan controller y x red green pixel blue value electron- beam deflection frame buffer DACs guns coils (6 planes) Faculty of Computer Science and Engineering - HCMUT Slide 46" }, { "page_index": 46, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_047.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_047.png", "page_index": 46, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:12:35+07:00" }, "raw_text": "Computer Graphics Systems Output Devices Human color receptor relative sensitivity 'Green\"receptors Blue'receptors Red'receptors 400 460490500530 600 650 700 Wavelength(nm Faculty of Computer r Science and Engineering - HCMUT Slide 47" }, { "page_index": 47, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_048.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_048.png", "page_index": 47, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:12:44+07:00" }, "raw_text": "Computer Graphics Systems Output devices plate with display\" material TIME CASIO ALMSIGMUTE LIGHT 2047 12:25 SALAT 10:5850 1OSA 0 50N306 observer 100M SEARCH 2 vertical 3 grid 2 4 wires 6 5 6 6 7 4 8 horizontal grid wires Faculty of Computer Science and Engineering - HCMUT Slide 48" }, { "page_index": 48, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_049.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_049.png", "page_index": 48, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:12:50+07:00" }, "raw_text": "Image Formation Elements of Image Formation - Objects - Viewers - Lights (Materials) Advantages - Separation of objects, viewer, light sources - Two-dimensional graphics is a special case of three- dimensional graphics - Leads to simple software API - Leads to fast hardware implementation Faculty of Computer Science and Engineering - HCMUT Slide 49" }, { "page_index": 49, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_050.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_050.png", "page_index": 49, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:12:55+07:00" }, "raw_text": "Image & Image Formation Elements of Image Formation - Objects & viewers C B (a) (b) (c) Faculty of Computer Science and Engineering - HCMUT Slide 50" }, { "page_index": 50, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_051.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_051.png", "page_index": 50, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:12:59+07:00" }, "raw_text": "Image & Image Formation Elements of Image Formation - Objects & viewers Faculty of Computer Science and Engineering - HCMUT Slide 51" }, { "page_index": 51, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_052.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_052.png", "page_index": 51, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:03+07:00" }, "raw_text": "Image & Image Formation Elements of Image Formation - Lights Faculty of Computer Science and Engineering - HCMUT Slide 52" }, { "page_index": 52, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_053.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_053.png", "page_index": 52, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:09+07:00" }, "raw_text": "Models and Architectures Practical Approach : Pipeline - Fast, simple - All steps can be implemented in hardware on the graphics card a + X C Vertex Clipper and Fragment Vertices Rasterizer Pixels processor primitive assembler processor Faculty of Computer Science and Engineering - HCMUT Slide 53" }, { "page_index": 53, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_054.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_054.png", "page_index": 53, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:14+07:00" }, "raw_text": "APl Contents Functions that specify what we need to form an image - Objects - Viewer - Light Source(s) - Materials Other information - Input from devices such as mouse and keyboard - Capabilities of system Faculty of Computer Science and Engineering - HCMUT Slide 54" }, { "page_index": 54, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_055.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_055.png", "page_index": 54, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:19+07:00" }, "raw_text": "APl Contents Object Specification - Most APIs support a limited set of primitives including Points (0D object) Line segments s (1D objects) Polygons (2D objects Some curves and surfaces - All are defined through locations in space or vertices Faculty of Computer Science and Engineering - HCMUT Slide 55" }, { "page_index": 55, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_056.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_056.png", "page_index": 55, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:24+07:00" }, "raw_text": "APl Contents Object Specification type of object location of vertex glBegin(GL POLYGON) glVertex3f(0.0, 0.0, 0.0); glVertex3f(0.0, 1.0, 0 0.0)i glVertex3f(0.0, 0.0, 1.0); glEnd( ); end of object definition Faculty of Computer Science and Engineering - HCMUT Slide 56" }, { "page_index": 56, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_057.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_057.png", "page_index": 56, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:30+07:00" }, "raw_text": "API Contents Object Specification v6 v6 v5 15 v0 v0 v1 v1 v7 v7 v4 v4 v2 v2 v3 v3 Faculty of Computer Science and Engineering - HCMUT Slide 57" }, { "page_index": 57, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_058.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_058.png", "page_index": 57, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:35+07:00" }, "raw_text": "API Contents Object Specification Faculty of Computer r Science and Engineering - HCMUT Slide 58" }, { "page_index": 58, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_059.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_059.png", "page_index": 58, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:40+07:00" }, "raw_text": "APl Contents Camera Specification - Six degrees of freedom Position of center of lens Orientation w COP Lens h Film size Orientation of film plane Faculty of Computer Science and Engineering - HCMUT Slide 59" }, { "page_index": 59, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_060.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_060.png", "page_index": 59, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:44+07:00" }, "raw_text": "APl Contents - Types of lights . Point sources vs distributed sources Spot lights Near and far sources Color properties - Material properties Absorption: color properties Scattering - Diffuse > Specular Faculty of Computer Science and Engineering - HCMUT Slide 60" }, { "page_index": 60, "chapter_num": 1, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_061.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_1/slide_061.png", "page_index": 60, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:51+07:00" }, "raw_text": "Further Reading \"Interactive Computer Graphics: A Topdown Approach Using OpenGL\", Edward Ange/ - Chapter 1: Graphics Systems And Models \"D hoa máy tinh trong khng gian hai chiéu\", Trán Giang Son - Chu'ong 1: Gi6i thieu d hoa máy tinh Faculty of Computer Science and Engineering - HCMUT Slide 61" }, { "page_index": 61, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_001.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_001.png", "page_index": 61, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:13:58+07:00" }, "raw_text": "Hochiminh city University of Technology Faculty of Computer Science and Engineering COMPUTER GRAPHICS CHAPTER 02: Graphics Programming tgson@hcmut.edu.vn" }, { "page_index": 62, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_002.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_002.png", "page_index": 62, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:14:03+07:00" }, "raw_text": "OUTLINE Introduction 1 OpenGL Libraries Windows-based programming A simple program Viewing Viewport Primitives Draw Object The gasket Faculty of Computer Science and Engineering - HCMUT Slide 2" }, { "page_index": 63, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_003.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_003.png", "page_index": 63, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:14:08+07:00" }, "raw_text": "Introduction Programming Environment - Hardware: display, graphics card - Software: Os (Windows), programming language (MS VC++), graphics library (OpenGL, DirectX) OpenGL - Platform-independent API - Easy to use - Close enough to the hardware to get excellent performance - Treat 2D and 3D in the same way Faculty of Computer Science and Engineering - HCMUT Slide 3" }, { "page_index": 64, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_004.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_004.png", "page_index": 64, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:14:13+07:00" }, "raw_text": "OpenGL Libraries OpenGL core library - OpenGL32 on Windows - GL on most unix/linux systems (libGL.a) OpenGL Utility Library (GLU) - Provides functionality in OpenGL core but avoids having to rewrite code Links with window system - GLX for X window systems - WGL for Windows - AGL for Macintosh Faculty of Computer Science and Engineering - HCMUT Slide 4" }, { "page_index": 65, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_005.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_005.png", "page_index": 65, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:14:26+07:00" }, "raw_text": "OpenGL Libraries OpenGL File Home Share View 1 ThisPC > NewVolumeD: Software OpenGL > OpenGL V Name Date modified Type Size Quick access glut-3.spec 2/26/201012:11PM WPSPDFDocume... 404 KB Desktop X OPENGL32 5/13/19983:00PM Object File Library 76 KB Downloads 808 gut32 11/8/20015:27PM Object File Library 29 KB Documents 808 GLU32 5/13/19983:00PM Object File Library 13 KB Pictures glut 12/13/20003:22PM C/C++ Header 28 KB Chuong 1 GLU 4/24/19983:00PM C/C++ Header 18 KB GLAUX 4/24/19983:00PM C/C++ Header 12 KB Chuong 1 GL 4/24/19983:00PM C/C++ Header 68 KB Chuong 2 opengl32.dll 8/4/20049:07AM Application exten... 697 KB Work gut32.dll 11/8/20015:27PM Application exten... 232 KB OneDrive glu32.dll 8/4/20049:07AM Application exten... 120 KB This PC 3D Objects Desktop Documents Faculty of Computer Science and Engineering - HCMUT Slide 5" }, { "page_index": 66, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_006.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_006.png", "page_index": 66, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:14:33+07:00" }, "raw_text": "OpenGL Libraries OpenGL Utility Toolkit (GLUT) - Provides functionality common to all window systems Open a window Get input from mouse and keyboard Menus Event-driven - Code is portable but GLUT lacks the functionality of a good toolkit for a specific platform No slide bars Faculty of Computer Science and Engineering - HCMUT Slide 6" }, { "page_index": 67, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_007.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_007.png", "page_index": 67, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:14:41+07:00" }, "raw_text": "OpenGL Libraries ?x New Files Projects Workspaces Other Documents ATL COM AppWizard Project name: wClusterResource Type Wizard Test CustomAppWizard Database Project Logation: aDevStudioAdd-in Wizard E:LecturesDohoamaytinhCG usi lSAPl Extension Wizard Makefile acMFCActiveXControlWizard MFC AppWizard(dll) C \"E:LecturesDohoamaytinhCG using OpenGLExamplesChapter 2Te. MFCAppWizard(exe) Tf Utility Project Hello aWin32Applicatior Press any key to continue Win32 Console Application &Win32Dynamic-LinkLibrary Win32StaticLibrary Faculty of Computer Science and Engineering - HCMUT Slide 7" }, { "page_index": 68, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_008.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_008.png", "page_index": 68, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:14:44+07:00" }, "raw_text": "OpenGL Libraries \"E:LecturesDohoamaytinhCG using OpenGLExamplesChapter 2E Dot plot of a function X Faculty of Computer Science and Engineering - HCMUT Slide 8" }, { "page_index": 69, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_009.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_009.png", "page_index": 69, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:14:49+07:00" }, "raw_text": "OpenGL Libraries application program OpenGL Motif GLUT widget or similar GLX,AGL GLU or WGL GL X, Win32,Mac O/S software and/or hardware Faculty of Computer r Science and Engineering - HCMUT Slide 9" }, { "page_index": 70, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_010.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_010.png", "page_index": 70, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:14:55+07:00" }, "raw_text": "OpenGL Libraries Visual Studio Edit program.h Notepad program.c (cpp) C:Program FilesMicrosoft SDKs gl/gl.h Compile Windowsv7.0AIncludegl gl/glu.h program.ob C:Program FilesMicrosoft SDKs Link opengl32.lib Windowsv7.0ALib program.exe Faculty of Computer r Science and Engineering - HCMUT Slide 10" }, { "page_index": 71, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_011.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_011.png", "page_index": 71, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:15:03+07:00" }, "raw_text": "OpenGL Libraries Use registry to lookup driver name: HKEY LOCAL MACHINE/ System/CurrentControlSet/ Control/Class/ program.exe {Adapter GUID}/0000/ OpenglDriverName If graphics card installed nvoglv32.dll opengl32.dll (Opengl: hardware acceleration) (Opengl: software implementation) : Graphics Card from NVIDIA C:WindowsSystem32 C:WindowsSystem32 Operating System: Windows Faculty of Computer Science and Engineering - HCMUT Slide 11" }, { "page_index": 72, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_012.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_012.png", "page_index": 72, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:15:08+07:00" }, "raw_text": "OpenGL Libraries - Primitives Points Line Segments Polygons - Attributes - Transformations Modeling Viewing - Control (GLUT) - Input (GLUT) - Query Faculty of Computer Science and Engineering - HCMUT Slide 12" }, { "page_index": 73, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_013.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_013.png", "page_index": 73, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:15:13+07:00" }, "raw_text": "Windows-based programming Event-driven programming Event queue Callback function F Register callback function glutDisplayFunc(myDisplay) glutReshapeFunc(myReshape) glutMouseFunc(myMouse) glutKeyboardFunc(myKeyboard Faculty of Computer Science and Engineering - HCMUT Slide 13" }, { "page_index": 74, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_014.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_014.png", "page_index": 74, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:15:32+07:00" }, "raw_text": "Windows-based programming Event Queue e t This PC Microsoft Firefox Edge Calculator X I Programmer Recycle Bin Viber MonkeySt. 0 HEX 0 Control WPSPDF Adobe DEC 0 Panel Creati... OCT 0 BIN 0 W QWORD MS ?C Foxit Reader WPS Home DBitwise Bit Shift CREDIBLE Presentation File View 0 E... >> c & S Clipboard Image Tools Brushes Shapes Size Colors Edit with Paint 3D ) % : Google WPS Chrome Spreadsheets 7 8 9 X W 4 5 6 TeamViewer WPSWriter 1 2 3 + 14 +/ 0 Zalo n t UniKey Zalo + 100% 1 e a P3 ENG 3:05PM 3/7/2020 Faculty of Computer r Science and Engineering - HCMUT Slide 14" }, { "page_index": 75, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_015.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_015.png", "page_index": 75, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:15:49+07:00" }, "raw_text": "Windows-based programming Event Queue ID.... . Event. . . e Aicrosoft Firefox Edge X: .. Calculator X Programmer Viber MonkeySt. Y. . 0 HEX 0 VPSPDF Adobe DEC 0 Creati... OCT 0 BIN 0 W QWORD MS 1?C WPS Home DBitwise Bit Shift CREDIBLE resentation File View 0 E... >> c & S Clipboard Image Tools Brushes Shapes Size Colors Edit with Paint 3D ) % : Google WPS Chrome Spreadsheets 7 8 9 X W 4 5 6 TeamViewer WPSWriter 1 2 3 + +/ 0 Zalo n t UniKey Zalo + 100% 1 e a P3 ENG 3:05PM 3/7/2020 Faculty of Computer r Science and Engineering - HCMUT Slide 15" }, { "page_index": 76, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_016.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_016.png", "page_index": 76, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:16:05+07:00" }, "raw_text": "Windows-based programming Event Queue e t This PC Microsoft Firefox Edge Calculator X Programmer Recycle Bin Viber MonkeySt. 0 HEX 0 Control WPSPDF Adobe DEC 0 Panel Creati... OCT 0 BIN 0 W QWORD MS ?C Foxit Reader WPS Home :D Bitwise Bit Shift CREDIBLE Presentation File View 0 E... >> c & Clipboard Image Tools Brushes Shapes Size Colors Edit with Paint 3D ) % : Google WPS Chrome Spreadsheets 7 8 9 X W 4 5 6 TeamViewer WPSWriter 1 2 3 + 14 +/ 0 Zalo n t UniKey Zalo + 100% 1 e a P3 ENG 3:05PM 3/7/2020 Faculty of Computer r Science and Engineering - HCMUT Slide 16" }, { "page_index": 77, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_017.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_017.png", "page_index": 77, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:16:25+07:00" }, "raw_text": "Windows-based programming Event Queue void drawPoint(int x,int y{ DrawPoint(x,y) Calculator X I Programmer 0 C HEX 0 Control WPS PDF Adobe DEC 0 Panel Creati... OCT 0 BIN 0 W QWORD MS Foxit Reader WPS Home DBitwise Bit Shift CREDIBLE Presentation File View 0 E... >> c & S Clipboard Image Tools Brushes Shapes Size Colors Edit with Paint 3D % : Google WPS Chrome Spreadsheets 7 8 9 X W 4 5 6 TeamViewer WPSWriter 1 2 3 + 14 +/ 0 Zalo n t UniKey Zalo + 100% 1 e a P3 ENG 3:05PM 3/7/2020 Faculty of Computer Science and Engineering - HCMUT Slide 17" }, { "page_index": 78, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_018.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_018.png", "page_index": 78, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:16:31+07:00" }, "raw_text": "A simple program simple X Faculty of Computer Science and Engineering - HCMUT Slide 18" }, { "page_index": 79, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_019.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_019.png", "page_index": 79, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:16:40+07:00" }, "raw_text": "A simple program #include void mydisplayO{ glClear(GL_COLOR_BUFFER_BlT); glBegin(GL_POLYGON) glVertex2f(-0.5, -0.5): glVertex2f(-0.5, 0.5); glVertex2f(0.5, 0.5); glVertex2f(0.5, -0.5) glEndO; gFlushO; int main(int argc, char** argv){ glutCreateWindow(\"simple\"); glutDisplayFunc(mydisplay): glutMainLoopO Faculty of Computer Science and Engineering - HCMUT Slide 19" }, { "page_index": 80, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_020.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_020.png", "page_index": 80, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:16:46+07:00" }, "raw_text": "Structure of the program includes gl.h #include int main(int argc, char** argv) glutInit(&argc,argv); glutInitDisplayMode(GLUT SINGLEGLUT RGB) i glutInitwindowSize(500,500) ; define window properties glutInitwindowPosition(0,0) ; glutCreatewindow(\"simple\"); glutDisplayFunc(mydisplay) ; display callback initOj set OpenGL state glutMainLoop(); enter event loop } Faculty of Computer Science and Engineering - HCMUT Slide 20" }, { "page_index": 81, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_021.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_021.png", "page_index": 81, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:16:51+07:00" }, "raw_text": "Structure of the program black clear color opaque window void initO glclearColor (0.0, 0.0, 0.0, 1.0); glColor3f(1.0, 1.0, 1.0); fill/draw with white glMatrixMode (GL PROJECTION) ; glLoadIdentity () i gl0rtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0); 2 viewing volume Faculty of Computer Science and Engineering - HCMUT Slide 21" }, { "page_index": 82, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_022.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_022.png", "page_index": 82, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:16:55+07:00" }, "raw_text": "Viewing A=(1,1); B=(3,1); C=(1,3) y y x x Faculty of Computer Science and Engineering - HCMUT Slide 22" }, { "page_index": 83, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_023.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_023.png", "page_index": 83, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:16:59+07:00" }, "raw_text": "Viewing Default Coordinate System - X axis: -1, 1; Y axis: -1, 1 - Objects (parts of Object) outside will be clipped Faculty of Computer Science and Engineering - HCMUT Slide 23" }, { "page_index": 84, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_024.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_024.png", "page_index": 84, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:05+07:00" }, "raw_text": "Viewing glBegin(GL_POLYGON) simple glVertex2f(-0.5, -0.5): glVertex2f(-0.5, 0.5) glVertex2f(0.5, 0.5); glVertex2f(0.5, -0.5): gEndO 1 1 -1 Faculty of Computer r Science and Engineering - HCMUT Slide 24" }, { "page_index": 85, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_025.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_025.png", "page_index": 85, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:12+07:00" }, "raw_text": "Viewing glBegin(GL_POLYGON)) H start glVertex2f(1.0, 1.0); glVertex2f(1.0, 2.0); glVertex2f(2.0, 2.0); glVertex2f(2.0, 1.0): gEndO 1 1 -1 Faculty of Computer r Science and Engineering - HCMUT Slide 25" }, { "page_index": 86, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_026.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_026.png", "page_index": 86, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:18+07:00" }, "raw_text": "Viewing glBegin(GL_POLYGON) start glVertex2f(0.5, 0.5); glVertex2f(0.5, 1.5) glVertex2f(1.5, 1.5); glVertex2f(1.5, 0.5): gEndO 1 -1 1 -1 Faculty of Computer r Science and Engineering - HCMUT Slide 26" }, { "page_index": 87, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_027.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_027.png", "page_index": 87, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:23+07:00" }, "raw_text": "Viewing glMatrixMode (GL_PROJECTION); glLoadldentity0; gl0rtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0): gIMatrixMode (GL_PROJECTION); glLoadldentity0; gl0rtho(-1.0, 1.0, -1.0, 1.0) glOrtho(left, right, bottom, top, near, far) gluOrtho2D(left, right,bottom,top) Faculty of Computer Science and Engineering - HCMUT Slide 27" }, { "page_index": 88, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_028.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_028.png", "page_index": 88, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:26+07:00" }, "raw_text": "Viewing 2 - 1 -2 4 -4 Faculty of Computer s Science and Engineering - HCMUT Slide 28" }, { "page_index": 89, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_029.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_029.png", "page_index": 89, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:31+07:00" }, "raw_text": "Viewing glBegin(GL_POLYGON)) glVertex2f(-2.0, 0.0); glVertex2f(-2.0, 2.0): glVertex2f(0.0, 2.0); glVertex2f(0.0, 0.0) glEndO: glBegin(GL_POLYGON) glVertex2f( 0.0, -4.0); glVertex2f( 2.0, 0.0); glVertex2f( 4.0, -4.0); gEndO Faculty of Computer Science and Engineering - HCMUT Slide 29" }, { "page_index": 90, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_030.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_030.png", "page_index": 90, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:35+07:00" }, "raw_text": "Viewing How to get the picture of triangle and square? start [N.. An 2 -2 4 .4 Faculty of Computer r Science and Engineering - HCMUT Slide 30" }, { "page_index": 91, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_031.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_031.png", "page_index": 91, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:40+07:00" }, "raw_text": "Viewing How to get the picture of triangle and square? glMatrixMode (GL_PROJECTION); glLoadldentityO; gluOrtho2D(-2.0, 4.0, -4.0, 2.0 How to get the picture of the square? How to get the picture of the triangle? Faculty of Computer Science and Engineering - HCMUT Slide 31" }, { "page_index": 92, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_032.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_032.png", "page_index": 92, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:45+07:00" }, "raw_text": "Viewport Do not have use the entire window for the image: glViewport(x,y,w,h Viewport h x w Graphics window y Clipping window Faculty of Computer r Science and Engineering - HCMUT Slide 32" }, { "page_index": 93, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_033.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_033.png", "page_index": 93, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:50+07:00" }, "raw_text": "Viewport Size of the graphics window - glutlnitWindowSize(cx, cy); H start start IN. An. glutlnitWindowSize(640, 480): Faculty of Computer Science and Engineering - HCMUT Slide 33" }, { "page_index": 94, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_034.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_034.png", "page_index": 94, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:17:55+07:00" }, "raw_text": "Viewport glViewport(320, 240, 320, 240) start N. An Faculty of Computer Science and Engineering - HCMUT Slide 34" }, { "page_index": 95, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_035.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_035.png", "page_index": 95, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:01+07:00" }, "raw_text": "Viewport glViewport(320, 240, 240, 240) start An. Faculty of Computer Science and Engineering - HCMUT Slide 35" }, { "page_index": 96, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_036.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_036.png", "page_index": 96, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:05+07:00" }, "raw_text": "Viewport How to draw picture in the second quadrant? start Viet. An. 3M Faculty of Computer r Science and Engineering - HCMUT Slide 36" }, { "page_index": 97, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_037.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_037.png", "page_index": 97, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:10+07:00" }, "raw_text": "Viewport How to draw picture in the second quadrant? - glViewport(0,240, 320, 240) How to draw picture in the third quadrant? How to draw picture in the fourth quadrant? How to draw picture in all quadrant? Faculty of Computer Science and Engineering - HCMUT Slide 37" }, { "page_index": 98, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_038.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_038.png", "page_index": 98, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:16+07:00" }, "raw_text": "Viewport How to draw picture in all quadrant? start Viet.. An. 3M an. Faculty of Computer Science and Engineering - HCMUT Slide 38" }, { "page_index": 99, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_039.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_039.png", "page_index": 99, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:22+07:00" }, "raw_text": "Viewport glViewport(320, 240, 320, 240) glBegin( //draw square gEnd0 glBegin0 //draw triangle gEndO glViewport(0, 240, 320, 240 glViewport(0, 0, 320, 240): glViewport(320, 0, 320, 240 Faculty of Computer Science and Engineering - HCMUT Slide 39" }, { "page_index": 100, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_040.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_040.png", "page_index": 100, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:28+07:00" }, "raw_text": "Primitives - Objects - Viewer Light Source(s) - Materials Polyline Filled region Text Raster image Faculty of Computer Science and Engineering - HCMUT Slide 40" }, { "page_index": 101, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_041.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_041.png", "page_index": 101, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:34+07:00" }, "raw_text": "Primitives D Polyline - A polyline is a connected sequence of straight lines - A polyline can be used to approximated a smooth curve Faculty of Computer Science and Engineering - HCMUT Slide 41" }, { "page_index": 102, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_042.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_042.png", "page_index": 102, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:39+07:00" }, "raw_text": "Primitives Polyline - Polygon: polyline if the first and the last points are connected by an edge - Polygon type: simple, convex Faculty of Computer r Science and Engineering - HCMUT Slide 42" }, { "page_index": 103, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_043.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_043.png", "page_index": 103, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:44+07:00" }, "raw_text": "Primitives Polyline - Attributes: Color, thickness, type (solid, dash), join points Faculty of Computer Science and Engineering - HCMUT Slide 43" }, { "page_index": 104, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_044.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_044.png", "page_index": 104, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:51+07:00" }, "raw_text": "Primitives Filled region - Filled region is a shape filled with some color or pattern. The boundary is often a polygon A B D C Faculty of Computer Science and Engineering - HCMUT Slide 44" }, { "page_index": 105, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_045.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_045.png", "page_index": 105, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:18:56+07:00" }, "raw_text": "Primitives dimensional object Faculty of Computer r Science and Engineering - HCMUT Slide 45" }, { "page_index": 106, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_046.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_046.png", "page_index": 106, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:01+07:00" }, "raw_text": "Primitives Text Vy=Vxsin-gt Vx=Vxcos V·sin-t-/gt R41.59 Faculty of Computer Science and Engineering - HCMUT Slide 46" }, { "page_index": 107, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_047.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_047.png", "page_index": 107, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:09+07:00" }, "raw_text": "Primitives Text: - Attributes: Font, color, size, orientation, space Arial Arial bold Afiaf itaffc Times Times Bold Tmes italic Courier Courier Courie Faculty of Computer Science and Engineering - HCMUT Slide 47" }, { "page_index": 108, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_048.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_048.png", "page_index": 108, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:14+07:00" }, "raw_text": "Primitives Texture Faculty of Computer Science and Engineering - HCMUT Slide 48" }, { "page_index": 109, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_049.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_049.png", "page_index": 109, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:19+07:00" }, "raw_text": "Draw Object glBegin(parameter) glVertex2f(...) //or glVertex3f(...) glVertex2f(...) gEndO Parameter - GL POINTS, GL LINES,GL TRIANGLES, V.V Faculty of Computer Science and Engineering - HCMUT Slide 49" }, { "page_index": 110, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_050.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_050.png", "page_index": 110, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:26+07:00" }, "raw_text": "Draw Object gIBegin(GL_POINTS); start glVertex2f(-0.5, 1.0) glVertex2f( 0.5, 1.0) glVertex2f(-0.5, 0.0): glVertex2f( 0.5, 0.0) glVertex2f(-0.5, -1.0): glVertex2f( 0.5, -1.0); gEndO Faculty of Computer r Science and Engineering - HCMUT Slide 50" }, { "page_index": 111, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_051.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_051.png", "page_index": 111, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:34+07:00" }, "raw_text": "Draw Object H start gIBegin(GL_LINES); glVertex2f(-0.5, 1.0) glVertex2f( 0.5, 1.0) glVertex2f(-0.5, 0.0): glVertex2f( 0.5, 0.0) glVertex2f(-0.5, -1.0) glVertex2f( 0.5, -1.0); gEndO Faculty of Computer r Science and Engineering - HCMUT Slide 51" }, { "page_index": 112, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_052.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_052.png", "page_index": 112, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:39+07:00" }, "raw_text": "Draw Object gIBegin(GL_LINE_STRIP); H start glVertex2f(-0.5, 1.0) glVertex2f( 0.5, 1.0) glVertex2f(-0.5, 0.0): glVertex2f( 0.5, 0.0) glVertex2f(-0.5, -1.0): glVertex2f( 0.5, -1.0) gEndO Faculty of Computer r Science and Engineering - HCMUT Slide 52" }, { "page_index": 113, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_053.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_053.png", "page_index": 113, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:44+07:00" }, "raw_text": "Draw Object gIBegin(GL_LINE_LOOP); H start glVertex2f(-0.5, 1.0); glVertex2f( 0.5, 1.0) glVertex2f(-0.5, 0.0): glVertex2f( 0.5, 0.0) glVertex2f(-0.5, -1.0): glVertex2f( 0.5, -1.0) gEndO Faculty of Computer r Science and Engineering - HCMUT Slide 53" }, { "page_index": 114, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_054.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_054.png", "page_index": 114, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:49+07:00" }, "raw_text": "Draw Object glBegin(GL_TRIANGLES) H start glVertex2f(-0.5, 1.0); glVertex2f( 0.5, 1.0) glVertex2f(-0.5, 0.0): glVertex2f( 0.5, 0.0) glVertex2f(-0.5, -1.0): glVertex2f( 0.5, -1.0) gEndO Faculty of Computer r Science and Engineering - HCMUT Slide 54" }, { "page_index": 115, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_055.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_055.png", "page_index": 115, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:53+07:00" }, "raw_text": "Draw Object gIPolygonMode(GL_FRONT_AND_BACK,GL_LINE); glColor3f(1.0, 0.0, 0.0) glLineWidth(3.0 start H start Faculty of Computer Science and Engineering - HCMUT Slide 55" }, { "page_index": 116, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_056.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_056.png", "page_index": 116, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:19:57+07:00" }, "raw_text": "Draw Object gIPolygonMode(GL_FRONT_AND_BACK,GL_POINT); glColor3f(1.0, 1.0, 0.0) glPointSize(5); start Faculty of Computer r Science and Engineering - HCMUT Slide 56" }, { "page_index": 117, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_057.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_057.png", "page_index": 117, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:01+07:00" }, "raw_text": "Draw Object gIPolygonMode(GL_FRONT_AND_BACK,GL_FILL) glColor3f(0.0, 1.0, 0.0) glClearColor(1.0, 1.0, 1.0, 1.0); start Faculty of Computer r Science and Engineering - HCMUT Slide 57" }, { "page_index": 118, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_058.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_058.png", "page_index": 118, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:05+07:00" }, "raw_text": "Draw Object H start Faculty of Computer Science and Engineering - HCMUT Slide 58" }, { "page_index": 119, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_059.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_059.png", "page_index": 119, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:10+07:00" }, "raw_text": "Draw Object gIPolygonMode(GL_FRONT_AND_BACK,GL_FILL) glColor3f(0.0,1.0,0.0): glClearColor(1.0, 1.0, 1.0, 1.0); glBegin(GL_TRIANGLES): glEndO; gIPolygonMode(GL_FRONT_AND_BACK,GL_LINE); glColor3f(1.0, 0.0, 0.0) glLineWidth(3); glBegin(GL_TRlANGLES) glEndO Faculty of Computer Science and Engineering - HCMUT Slide 59" }, { "page_index": 120, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_060.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_060.png", "page_index": 120, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:16+07:00" }, "raw_text": "Draw Object glBegin(GL_TRIANGLES) H start glVertex2f(-0.5, 1.0); glVertex2f( 0.5, 1.0); glVertex2f(-0.5, 0.0) glVertex2f(-0.5, 0.0) glVertex2f( 0.5, 1.0); glVertex2f( 0.5, 0.0); glVertex2f(-0.5, -1.0)) glVertex2f(-0.5, 0.0): glVertex2f( 0.5, 0.0); glVertex2f( 0.5, 0.0); glVertex2f(-0.5, -1.0) glVertex2f( 0.5, -1.0) glEndO; Faculty of Computer r Science and Engineering - HCMUT Slide 60" }, { "page_index": 121, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_061.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_061.png", "page_index": 121, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:21+07:00" }, "raw_text": "Draw Object clip eye normalized window coordinates coordinates device coordinates coordinates VM P clip V(V2...- modelview projection perspective viewport matrix matrix division matrix Faculty of Computer Science and Engineering - HCMUT Slide 61" }, { "page_index": 122, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_062.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_062.png", "page_index": 122, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:25+07:00" }, "raw_text": "Draw Object glBegin(GL_TRIANGLE_STRIP): H start glVertex2f(-0.5, 1.0);//v1 glVertex2f( 0.5, 1.0);//v2 glVertex2f(-0.5, 0.0);//v3 glVertex2f( 0.5, 0.0);//v4 glVertex2f(-0.5, -1.0);//v5 glVertex2f( 0.5, -1.0);//v6 gEndO Faculty of Computer Science and Engineering - HCMUT Slide 62" }, { "page_index": 123, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_063.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_063.png", "page_index": 123, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:30+07:00" }, "raw_text": "Object Draw v1 v1 v2 v2 v3 v4 v3 v4 v5 v6 v5 v6 v2,v1,v4,v3,v6, v5 v1,v2,v3,v4,v5,v6 Faculty of Computer r Science and Engineering - HCMUT Slide 63" }, { "page_index": 124, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_064.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_064.png", "page_index": 124, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:35+07:00" }, "raw_text": "Draw Object GL QUADS, GL QUAD STRIP, GL TRIANGLE FAN GL POLYGON GL TRIANGLES GL TRIANGLE STRIP GL TRIANGLE FAN GL QUADS GL QUAD STRIP 6 Faculty of Computer Science and Engineering - HCMUT Slide 64" }, { "page_index": 125, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_065.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_065.png", "page_index": 125, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:40+07:00" }, "raw_text": "Draw Object void drawPoint(GLint x,GLint y) { glBegin(GL_POINTS); glVertex2i(x, y): glEndO void drawLine(GLint x1, GLint y1,GLint x2,GLint y2){ gIBegin(GL_LINES); glVertex2i(x1,y1) glVertex2i(x2,y2) glEndO Faculty of Computer Science and Engineering - HCMUT Slide 65" }, { "page_index": 126, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_066.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_066.png", "page_index": 126, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:44+07:00" }, "raw_text": "The Sierpinski Gasket Sierpinski gasket Po p Faculty of Computer Science and Engineering - HCMUT Slide 66" }, { "page_index": 127, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_067.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_067.png", "page_index": 127, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:51+07:00" }, "raw_text": "The Sierpinski Gasket Pick an initial point (x, y, z) at random inside the triangle 1. 2. Select one of the three vertices at random 3. Find the location halfway between the initial point and the randomly selected vertex 4. Display this new point by putting some sort of marker, such as a small circle at the corresponding location on the display 5. Replace the point at (x, y, z) with this new point 6. Return to step 2 Faculty of Computer Science and Engineering - HCMUT Slide 67" }, { "page_index": 128, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_068.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_068.png", "page_index": 128, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:20:56+07:00" }, "raw_text": "The Sierpinski Gasket maino Initialize the_systemO for(some_number_of_points) pt = generate_a_pointO Display_the_point(pt): Faculty of Computer Science and Engineering - HCMUT Slide 68" }, { "page_index": 129, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_069.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_069.png", "page_index": 129, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:01+07:00" }, "raw_text": "The Sierpinski Gasket void myinit( glClearColor(1.0, 1.0, 1.0, 1.0); /* white background */ glColor3f(1.0, 0.0, 0.0); /* draw in red */ glMatrixMode(GL_PROJECTlON): glLoadldentityO; gluOrtho2D(0.0, 50.0, 0.0, 50.0); glMatrixMode(GL_MODELVlEW); Faculty of Computer Science and Engineering - HCMUT Slide 69" }, { "page_index": 130, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_070.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_070.png", "page_index": 130, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:07+07:00" }, "raw_text": "The Sierpinski Gasket void display( void ){ GLfloat vertices[3][2]={{0.0,0.0},{25.0,50.0},{50.0,0.0}}; /* A triangle */ int j, k; srand(time(NULL)); /* standard random number generator */ GLfloat p[2] ={7.5,5.0}; /* An arbitrary initial point inside traingle */ glClear(GL_COLOR_BUFFER BlT); /*clear the window */ glBegin(GL_POINTS); for(k=0;k<5000;k++){ j = randO%3; /* pick a vertex at random */ p[0] = (p[0]+vertices[j][0]/2.0 p[1] = (p[1]+vertices[j][1]/2.0 glVertex2fv(p); glEndO; glFlushO; /* clear buffers */ Faculty of Computer Science and Engineering - HCMUT Slide 70" }, { "page_index": 131, "chapter_num": 2, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_071.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_2/slide_071.png", "page_index": 131, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:13+07:00" }, "raw_text": "Further Reading \"Interactive Computer Graphics: A Topdown Approach Using OpenGL\", Edward Ange/ - Chapter 2: Graphics Programming \"D hoa máy tinh trong khng gian hai chiéu\", Trán Giang Son - Chuong 2: Bu6c däu tao hinh änh \" hoa máy tinh trong khng gian ba chiéu\", Trán Giang Son - Chuong 1: M hinh hóa döi tu'ong ba chiéu bäng lu6i da giäc Faculty of Computer Science and Engineering - HCMUT Slide 71" }, { "page_index": 132, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_001.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_001.png", "page_index": 132, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:16+07:00" }, "raw_text": "Hochiminh city University of Technology Faculty of Computer Science and Engineering COMPUTER GRAPHICS CHAPTER 03: 3D Object & Mesh Trän Giang Son tgson@hcmut.edu.vn" }, { "page_index": 133, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_002.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_002.png", "page_index": 133, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:19+07:00" }, "raw_text": "OUTLINE Draw Sierpinski gasket by recursion Draw 3D Sierpinski gasket Hidden Surface Modeling Sphere Data Structure Faculty of Computer Science and Engineering - HCMUT Slide 2" }, { "page_index": 134, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_003.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_003.png", "page_index": 134, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:24+07:00" }, "raw_text": "The Sierpinski Gasket Start with a triangle Repeat Faculty of Computer Science and Engineering - HCMUT Slide 3" }, { "page_index": 135, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_004.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_004.png", "page_index": 135, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:28+07:00" }, "raw_text": "The Sierpinski Gasket Five subdivisions Faculty of Computer Science and Engineering - HCMUT Slide 4" }, { "page_index": 136, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_005.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_005.png", "page_index": 136, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:35+07:00" }, "raw_text": "The Sierpinski Gasket Glfloat v[3][2]={{-1.0, -0.58}, {1.0, -0.58}, {0.0, 1.15}}; int n; triangle( void Glfloat ai Glfloat *b, 1 Glfloat *c) /* display triangle one g1Vertex2fv(a); g1Vertex2fv(b); g1vertex2fv(c) ; 25 Faculty of Computer Science and Engineering - HCMUT Slide 5" }, { "page_index": 137, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_006.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_006.png", "page_index": 137, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:44+07:00" }, "raw_text": "The Sierpinski Gasket *b i void divide_triangle(GLfloat a Glfloat Glfloat *C, : int m) point2 v0, v1, v2; int j; if(m>0){ for(j=0; j<2; j++) v0[j]=(a[j]+b[j]/2; for(j=0; j<2; j++ v1[j]=(a[j]+c[j]/2; for(j=0; j<2; j++ v2[j]=(b[j]+c[j]/2; divide_triangle(a, , vo, v1, m-1); divide_triangle(c, v1, v2, n m-1); divide_triangle(b, v2, v0, m-1); 2 else(triangle(a,b,c)): 2 Faculty of Computer Science and Engineering - HCMUT Slide 6" }, { "page_index": 138, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_007.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_007.png", "page_index": 138, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:50+07:00" }, "raw_text": "The Sierpinski Gasket void displayQ glClear(GL_COLOR_BUFFER_BIT) ; g1Begin(GL_TRIANGLES) ; divide_triangle(v[o], v[1], v[2], n); glEndQ ; g1F1ushO 25 void myinitQ glMatrixMode(GL_PROJECTION); glloadIdentityQ; glu0rtho2D(-2.0, 2.0, -2.0, 2.0); g1MatrixMode(GL_MODELVIEW); glclearColor (1.0, 1.0, 1.0,1.0 glColor3f(0.0,0.0,0.0) ; } Faculty of Computer Science and Engineering - HCMUT Slide 7" }, { "page_index": 139, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_008.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_008.png", "page_index": 139, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:21:57+07:00" }, "raw_text": "The Sierpinski Gasket int **argv) main(int argc, char n=4 : glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLEGLUT_RGB) ; glutInitWindowSize(500, 500); glutCreateWindow(\"2D Gasket\") ; glutDisplayFunc(display); myinitQ; glutMainLoopO ; r Faculty of Computer Science and Engineering - HCMUT Slide 8" }, { "page_index": 140, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_009.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_009.png", "page_index": 140, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:01+07:00" }, "raw_text": "The Sierpinski Gasket We can subdivide each of the four faces Appears as if we remove a solid tetrahedron from the center leaving four smaller tetrahedra Faculty of Computer Science and Engineering - HCMUT Slide 9" }, { "page_index": 141, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_010.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_010.png", "page_index": 141, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:07+07:00" }, "raw_text": "The Sierpinski Gasket *a1 GLfloat *c){ void triangle( GLfloat Glfloat *b, glVertex3fv(a) ; glVertex3fv(b) ; glVertex3fv(c) ; void tetra(GLfloat *a, GLfloat *b, GLfloat *c, GLfloat *d} glColor3fv(colors[0]) triangle(b, d, c); glColor3fv(colors[1]) triangle(a, b, c); glColor3fv(colors[2]) triangle(a, c, d); glColor3fv(colors[3]) triangle(a, d, b): Faculty of Computer Science and Engineering - HCMUT Slide 10" }, { "page_index": 142, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_011.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_011.png", "page_index": 142, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:11+07:00" }, "raw_text": "The Sierpinski Gasket void divide tetra(GLfloat *a, GLfloat *b, GLfloat *c, GLfloat *d, int m) GLfloat mid[6][3] int j; if(m>0) for(j=0;j<3;j++) mid[01j1=(a[j1+b[jD/2 divide tetra(a, mid[0], mid[1], mid[2], m-1 else(tetra(a,b,c,d)); /* draw tetrahedron at end of recursion */ Faculty of Computer Science and Engineering - HCMUT Slide 11" }, { "page_index": 143, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_012.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_012.png", "page_index": 143, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:15+07:00" }, "raw_text": "The Sierpinski Gasket Because the triangles are drawn in the order they are defined in the program, the front triangles are not always rendered in front of triangles behind them 1 start start Faculty of Computer Science and Engineering - HCMUT Slide 12" }, { "page_index": 144, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_013.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_013.png", "page_index": 144, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:19+07:00" }, "raw_text": "Hidden-Surface Removal start start Faculty of Computer Science and Engineering - HCMUT Slide 13" }, { "page_index": 145, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_014.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_014.png", "page_index": 145, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:24+07:00" }, "raw_text": "Hidden-Surface Removal Camera : (0, 0, 20) Teapot : (0, 0, -1) Sphere: (0, 0, 1) Cube: (0, 0, -3) Correct Order: CameraSphereTeapotCube Draw Order : TeapotSphere Cube Faculty of Computer Science and Engineering - HCMUT Slide 14" }, { "page_index": 146, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_015.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_015.png", "page_index": 146, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:28+07:00" }, "raw_text": "Hidden-Surface Removal Use Depth Buffer Hidden Surface Remova Faculty of Computer Science and Engineering - HCMUT Slide 15" }, { "page_index": 147, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_016.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_016.png", "page_index": 147, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:33+07:00" }, "raw_text": "Hidden-Surface Removal Don't use depth buffer Hidden Surface Removal Faculty of Computer r Science and Engineering - HCMUT Slide 16" }, { "page_index": 148, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_017.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_017.png", "page_index": 148, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:38+07:00" }, "raw_text": "Hidden-Surface e Removal We want to see only those surfaces in front of other surfaces buffer algorithm that saves depth information as objects are rendered so that only the front objects appear in the image A B Faculty of Computer Science and Engineering - HCMUT Slide 17" }, { "page_index": 149, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_018.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_018.png", "page_index": 149, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:47+07:00" }, "raw_text": "Hidden-Surface e Removal store depth information as geometry travels down the pipeline It must be - Requested in main() glutInitDisplayMode(GLUT_SINGLE GLUT RGB GLUT I DEPTH) - Enabled glEnable(GL_DEPTH I_TEST) - Cleared in the display callback glClear(GL_COLOR BUFFER BIT GL DEPTH BUFFER BIT) Faculty of Computer Science and Engineering - HCMUT Slide 18" }, { "page_index": 150, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_019.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_019.png", "page_index": 150, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:52+07:00" }, "raw_text": "Modeling Sphere Faculty of Computer Science and Engineering - HCMUT Slide 19" }, { "page_index": 151, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_020.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_020.png", "page_index": 151, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:22:57+07:00" }, "raw_text": "Modeling Sphere time frequency time frequency Faculty of Computer Science and Engineering - HCMUT Slide 20" }, { "page_index": 152, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_021.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_021.png", "page_index": 152, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:23:04+07:00" }, "raw_text": "Modeling Sphere Spherical coordinate system - x = r*sin(theta)*cos(phi): y - z = r*cos(theta)*cos(phi - y = r*sin(phi) M phi O x theta M' Z Faculty of Computer Science and Engineering - HCMUT Slide 21" }, { "page_index": 153, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_022.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_022.png", "page_index": 153, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:23:10+07:00" }, "raw_text": "Modeling Sphere 1 start 2 F 3 y phi O x theta M' Z Phi : -90 90 Theta: 0 360 Theta: -180 180 Faculty of Computer r Science and Engineering - HCMUT Slide 22" }, { "page_index": 154, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_023.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_023.png", "page_index": 154, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:23:15+07:00" }, "raw_text": "Modeling Sphere l start start 3 2F 3v GL QUAD STRIP V4 V2 V6 Faculty of Computer Science and Engineering - HCMUT Slide 23" }, { "page_index": 155, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_024.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_024.png", "page_index": 155, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:23:21+07:00" }, "raw_text": "Modeling Sphere for(float phi = -80; phi<=80; phi+=20){ phir = c*phi; phir20 = c*(phi+20 glBegin(GL_QUAD_STRlP); for(float theta = -180; theta<=180; theta+=20) thetar = c*theta; x = sin(thetar)*cos(phir); z = cos(thetar)*cos(phir) y = sin(phir); glVertex3d(x, y, z); x = sin(thetar)*cos(phir20);z = cos(thetar)*cos(phir20); y = sin(phir20): gIVertex3d(x, y, z); gEndO Faculty of Computer Science and Engineering - HCMUT Slide 24" }, { "page_index": 156, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_025.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_025.png", "page_index": 156, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:23:26+07:00" }, "raw_text": "Modeling Sphere glBegin(GL_TRIANGLE_FAN); glVertex3d(0,1, 0) c80 = c*80; y = sin(c80) for(float theta = 180; theta>=-180; theta-=20) thetar = c*theta: x = sin(thetar)*cos(c80); z = cos(thetar)*cos(c80) glVertex3d(x,y, z); gEndO Faculty of Computer Science and Engineering - HCMUT Slide 25" }, { "page_index": 157, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_026.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_026.png", "page_index": 157, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:23:31+07:00" }, "raw_text": "Modeling Sphere H start 3F. Micr... Sphe. Tut Faculty of Computer Science and Engineering - HCMUT Slide 26" }, { "page_index": 158, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_027.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_027.png", "page_index": 158, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:23:35+07:00" }, "raw_text": "Modeling Sphere H start Micr. Sphe. Tuts Faculty of Computer s Science and Engineering - HCMUT Slide 27" }, { "page_index": 159, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_028.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_028.png", "page_index": 159, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:23:38+07:00" }, "raw_text": "Modeling Sphere H start 3F. Micr... Sphe. Tut Faculty of Computer Science and Engineering - HCMUT Slide 28" }, { "page_index": 160, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_029.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_029.png", "page_index": 160, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:23:44+07:00" }, "raw_text": "Modeling Sphere H start 3F. Micr... Sphe. Tut Faculty of Computer Science and Engineering - HCMUT Slide 29" }, { "page_index": 161, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_030.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_030.png", "page_index": 161, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:23:53+07:00" }, "raw_text": "Modeling Sphere start Micr. Sphe.. Tuts Faculty of Computer Science and Engineering - HCMUT Slide 30" }, { "page_index": 162, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_031.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_031.png", "page_index": 162, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:24:01+07:00" }, "raw_text": "Data Structure GLfIoat a[3]={ 0,0,0},b[3]={ 1,0,0} GLfloat c[3]={ 0,1,0},d[3]={ 0,0,1}; glPoygonMode(GL_FRONT_AND_BACK,GL_LINE): glBegin(GL_TRIANGLES); Y glVertex3fv(a);glVertex3fv(b);glVertex3fv(c); glVertex3fv(a); glVertex3fv(b); glVertex3fv(d C glVertex3fv(a); glVertex3fv(c); glVertex3fv(d) glVertex3fv(b); glVertex3fv(c); glVertex3fv(d gEndO a d b Z X Faculty of Computer Science and Engineering - HCMUT Slide 31" }, { "page_index": 163, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_032.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_032.png", "page_index": 163, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:24:07+07:00" }, "raw_text": "Data Structure struct Face int numVerts, Point3D *pointArr; }; class Mesh f int numFaces Face *faceArr; DrawWireframe0 : void void DrawColorO; }; Faculty of Computer r Science and Engineering - HCMUT Slide 32" }, { "page_index": 164, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_033.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_033.png", "page_index": 164, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:24:14+07:00" }, "raw_text": "Modeling Shapes with Polygonal Meshes Defining a Polygonal Mesh vertex list, a normal list, and a face list - The three lists work together : The vertex list contains locational or geometric information, the normal list contains orientation information, and the face list contains connectivity or topological information. Faculty of Computer Science and Engineering - HCMUT Slide 33" }, { "page_index": 165, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_034.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_034.png", "page_index": 165, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:24:35+07:00" }, "raw_text": "Modeling Shapes with Polygonal Meshes vertex x y y normal Ix 1y 12 I1 3 0 0 0 0 0 -1 4 1 1 0 0 8 0.707 0 2 I6 2 1 1 0 1 0.707 9 no 0.707 0.707 0 3 0.5 1.5 0 7 2 113 4 0 1 0 1 0 0 15 5 1 3 x 5 0 0 1 0 -1 0 6 6 1 0 1 4 4 0 0 14 1 7 1 1 1 5 8 0.5 1.5 1 0 0 -1 face vertices associated normal 6 9 0 1 0 (left) 0.5.9.4 0.0.0.0 1 (roof left) 3.4.9.8 1.1.1.1 2 (roof right) 2.3.8.7 2.2.2.2 3 (right) 1.2.7.6 3.3.3.3 4 (bottom) 0.1.6.5 4,4.4.4 5 (front) 5.6.7.8.9 5.5.5.5.5 6 (back) 0.4.3.2.1 6.6.6.6.6 Faculty of Computer Science and Engineering - HCMUT Slide 34" }, { "page_index": 166, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_035.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_035.png", "page_index": 166, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:24:41+07:00" }, "raw_text": "Modeling Shapes with Polygonal Meshes class VertexID{ public: int vertIndex; //index of this vertex in the vertex list int normlndex: // index of this vertex's normal }; class Face{ public: int nVerts; // number of vertice in this face VertexlD* vert: // the list of vertex and normal index FaceO{ nVerts = 0;vert = NULL;} FaceO { delete[] vert; nVerts = 0; } }; Faculty of Computer Science and Engineering - HCMUT Slide 35" }, { "page_index": 167, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_036.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_036.png", "page_index": 167, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:24:47+07:00" }, "raw_text": "Modeling Shapes with Polygonal Meshes class Mesh { private: int numVerts: / number of vertices in the mesh Point3* pt; // array of 3D vertices int numNormals; // number of normal vectors for the mesh Vector3* norm; // array of normals int numFaces; // number of faces in the mesh Face* face; // array of face data // ... others to be added later public: MeshO MeshO; //... others }; Faculty of Computer Science and Engineering - HCMUT Slide 36" }, { "page_index": 168, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_037.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_037.png", "page_index": 168, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:24:53+07:00" }, "raw_text": "Modeling Shapes with Polygonal Meshes void Mesh::DrawWireframeOt gIPolygonMode(GL_FRONT_AND_BACK,GL_LINE); for (int f = 0; f < numFaces; f++) { glBegin(GL_POLYGON); int iv = face[f].vert[v].vertlndex; glVertex3f(pt[iv].x, pt[iv].y, pt[iv].z); glEndO Faculty of Computer Science and Engineering - HCMUT Slide 37" }, { "page_index": 169, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_038.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_038.png", "page_index": 169, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:25:05+07:00" }, "raw_text": "Modeling Shapes with Polygonal Meshes a) b) 1 2 numVerts 4 1 pt 1 numNorms 4 .577 -1 .577 -1 norm 0 .577 -1 4 3 3 3 3 3 1 Z x 1 0 0 2 1 3 2 2 1 3 2 3 3 3 0 1 1 2 2 0 3 Faculty of Computer r Science and Engineering - HCMUT Slide 38" }, { "page_index": 170, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_039.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_039.png", "page_index": 170, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:25:11+07:00" }, "raw_text": "Modeling Shapes with Polygonal Meshes void Mesh::CreateTetrahedronO numVerts=4: pt = new Point3[numVerts]; pt[0].set(0, 0, 0); pt[1].set(1, 0, 0) pt[2].set(0, 1, 0) pt[3].set(0, 0, 1), Faculty of Computer Science and Engineering - HCMUT Slide 39" }, { "page_index": 171, "chapter_num": 3, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_040.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_3_a/slide_040.png", "page_index": 171, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:25:16+07:00" }, "raw_text": "Modeling Shapes with Polygonal Meshes numFaces= 4; face = new Face[numFaces1; face[0].nVerts = 3; face[0].vert = new VertexlD[face[0].nVerts]; face[0].vert[0].vertlndex = 1; face[0].vert[1].vertlndex = 2; face[0].vert[2].vertlndex = 3; face[0].vert[0].normIndex = 0; face[0].vert[1].normlndex = 0; face[0].vert[2].normlndex = 0; Faculty of Computer Science and Engineering - HCMUT Slide 40" }, { "page_index": 172, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_001.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_001.png", "page_index": 172, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:25:21+07:00" }, "raw_text": "Hochiminh city University of Technology Faculty of Computer Science and Engineering COMPUTER GRAPHICS CHAPTER 04: Input & Interaction" }, { "page_index": 173, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_002.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_002.png", "page_index": 173, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:25:25+07:00" }, "raw_text": "OUTLINE Basic Input Devices Window-based Programming Keyboard Event Mouse Event Reshape Event Idle Event Faculty of Computer Science and Engineering - HCMUT Slide 2" }, { "page_index": 174, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_003.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_003.png", "page_index": 174, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:25:29+07:00" }, "raw_text": "Basic input devices Photodetector Threshold detector Computer trackball mouse light pen data tablet joy stick space ball Faculty of Computer Science and Engineering - HCMUT Slide 3" }, { "page_index": 175, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_004.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_004.png", "page_index": 175, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:25:35+07:00" }, "raw_text": "Windows-based programming Event Mode - Most systems have more than one input device, each of which can be triggered at an arbitrary time by a user put in an event queue which can be examined by the user program Await Trigger Measure Event Program process process queue Trigger Measure Event Faculty of Computer Science and Engineering - HCMUT Slide 4" }, { "page_index": 176, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_005.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_005.png", "page_index": 176, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:25:41+07:00" }, "raw_text": "Windows-based programming Event-driven programming Event queue Callback function F Register callback function glutDisplayFunc(myDisplay) glutReshapeFunc(myReshape) glutMouseFunc(myMouse) glutKeyboardFunc(myKeyboard Faculty of Computer Science and Engineering - HCMUT Slide 5" }, { "page_index": 177, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_006.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_006.png", "page_index": 177, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:26:03+07:00" }, "raw_text": "Windows-based programming t This PC Microsoft Firefox Edge Calculator X I Programmer Recycle Bin Viber MonkeySt. 0 HEX 0 Control WPSPDF Adobe DEC 0 Panel Creati... OCT 0 BIN 0 W QWORD MS ?C Pain Foxit Reader WPS Home DBitwise Bit Shift CREDIBLE Presentation File View 0 E... >> c & S Clipboard Image Tools Brushes Shapes Size Colors Edit with Paint 3D ) % : Google WPS Chrome Spreadsheets 7 8 9 X W 4 5 6 TeamViewer WPSWriter 1 2 3 + 14 +/ 0 LI Zalo t UniKey Zalo + 100% 1 e P3 ENG 3:05PM 3/7/2020 Faculty of Computer r Science and Engineering - HCMUT Slide 6" }, { "page_index": 178, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_007.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_007.png", "page_index": 178, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:26:20+07:00" }, "raw_text": "Windows-based programming ID.... . Event. . . e Aicrosoft Firefox Edge X: .. Calculator X Programmer Viber MonkeySt. Y. . 0 HEX 0 VPSPDF Adobe DEC 0 Creati... OCT 0 BIN 0 W QWORD MS H?C= WPS Home DBitwise Bit Shift CREDIBLE resentation File View 0 E... >> c & S Clipboard Image Tools Brushes Shapes Size Colors Edit with Paint 3D ) % : Google WPS Chrome Spreadsheets 7 8 9 X W 4 5 6 TeamViewer WPSWriter 1 2 3 + 14 +/ 0 Zalo n UniKey Zalo + 100% 1 e a P3 ENG 3:05PM 3/7/2020 Faculty of Computer r Science and Engineering - HCMUT Slide 7" }, { "page_index": 179, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_008.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_008.png", "page_index": 179, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:26:37+07:00" }, "raw_text": "Windows-based programming t This PC Microsoft Firefox Edge Calculator X Programmer Recycle Bin Viber MonkeySt. 0 HEX 0 Control WPSPDF Adobe DEC 0 Panel Creati... OCT 0 BIN 0 W QWORD MS ?C Foxit Reader Pain WPS Home :D Bitwise Bit Shift CREDIBLE Presentation File View 0 E... >> c & S Clipboard Image Tools Brushes Shapes Size Colors Edit with Paint 3D ) % : Google WPS Chrome Spreadsheets 7 8 9 X W 4 5 6 TeamViewer WPSWriter 1 2 3 + 14 +/ 0 LI Zalo t UniKey Zalo + 100% 1 e P3 ENG 3:05PM 3/7/2020 Faculty of Computer r Science and Engineering - HCMUT Slide 8" }, { "page_index": 180, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_009.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_009.png", "page_index": 180, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:26:56+07:00" }, "raw_text": "Windows-based programming Event Queue void drawPoint(int x,int y{ DrawPoint(x,y) Calculator X I Programmer 0 C HEX 0 Control WPS PDF Adobe DEC 0 Panel Creati... OCT 0 BIN 0 W QWORD MS Foxit Reader WPS Home DBitwise Bit Shift CREDIBLE Presentation File View 0 E... >> c & S Clipboard Image Tools Brushes Shapes Size Colors Edit with Paint 3D % : Google WPS Chrome Spreadsheets 7 8 9 X W 4 5 6 TeamViewer WPSWriter 1 2 3 + 14 +/ 0 Zalo n t UniKey Zalo + 100% 1 e a P3 ENG 3:05PM 3/7/2020 Faculty of Computer Science and Engineering - HCMUT Slide 9" }, { "page_index": 181, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_010.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_010.png", "page_index": 181, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:27:15+07:00" }, "raw_text": "Windows-based programming =OpenGL F Home Share View H s X a New item - Open - select all Easy access - Edit Copy path 8 select none W... Pin to Quick Copy Paste Move Copy Delete Rename New Properties Paste shortcut @History Invert selection access to- to- folder Clipboard Organize New Open Select ThisPC>NewVolumeD:)> Software>OpenGL OpenGL Desktop A Name Date modified Type Size + Downloads glut-3.spec 2/26/201012:11PM WPSPDFDocume... 404KB Documents X OPENGL32 5/13/19983:00PM Object File Library 76 KB Pictures gut32 11/8/20015:27PM Object File Library 29KB 800 GLU32 5/13/19983:00PM Object File Library Chuong 3+16) 13KB h glut 12/13/20003:22PM Header file 28KB Chuong 4(+26 h GLU 4/24/19983:00PM Header file 18 KB Dich sach h GLAUX 4/24/19983:00PM Header file 12 KB Noi dung h GL 4/24/19983:00PM Header file 68KB OneDrive opengl32.dll 8/4/20049:07AM Application exten... 697 KB Q glut32.dll 11/8/20015:27PM Application exten.. 232KB This PC glu32.dll 8/4/20049:07AM Application exten.... 120 KB 3D Objects Desktop Documents Faculty of Computer Science and Engineering - HCMUT Slide 10" }, { "page_index": 182, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_011.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_011.png", "page_index": 182, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:27:39+07:00" }, "raw_text": "Windows-based programming WPS PDF glut-3.spec.pdf X + 1 Sign in Menu B S 4 Home Insert Comment Edit Page Protect Tools Q Click to search : sW Hand Tool D 100% Fit Width Q 28 /68P Select Tool PDF to Word PDF to Picture Play Slide Zoom Out Zoom In Actual Size ] Fit Size Clockwise Anticlockwise Rotate Previous Bookmark x 7.4 glutKeyboardFunc glutKeyboardFunc scts the kcyboard callback for thc current window. 4 7Callback Registration Usage 7.1 glutDisplayFunc void glutKeyboardFunc(void (*func)(unsigned char key, 7.2 glutOverlayDisplayFunc int x, int y; 7.3 glutReshapeFunc 7.4 glutKeyboardFunc 7.5 glutMouseFunc 7.6 glutMotionFunc, glutPas... 7.7 glutVisibilityFunc 7.8 glutEntryFunc 22 7. CALLBACK REGISTRATION 7.9 glutSpecialFunc func The ncw keyboard callback function. 7.10 glutSpaceballMotionFunc Description 7.11 glutSpaceballRotateFunc glutKeyboardFunc sets the kcyboard callback for the current window. When a uscr types into the window 7.12 glutSpaceballButtonFunc cach key press generating an ASCIl character will gencrate a keyboard callback. The key callback parameter is the generated ASCIl character. The state of modificr keys such as Shift cannot be determined directly, thcir 7.13 glutButtonBoxFunc only cffect will be on the returmcd ASCll data.The x and y callback paramcters indicate the mouse location in window relative coordinates when the key was pressed.When a new window is created, no keyboard callback is 7.14 gutDiasFunc initiallyregistered,and ASCIl key strokes in the window are ignored. Passing NULL to glutKeyboardFunc disables the gencration of keyboard callbacks. 7.15 glutTabletMotionFunc During a kcyboard callback,glutGetModi f ier s may be called to determine the state of modificr kcys when the keystroke generating the callback occurred. 7.16 glutTabletButtonFunc Also,sce glutSpecialFunc for a mcans to detect non-ASCll kcy strokes 28 /68Page 80 0 1-1 100% Faculty of Computer Science and Engineering - HCMUT Slide 11" }, { "page_index": 183, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_012.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_012.png", "page_index": 183, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:27:45+07:00" }, "raw_text": "Keyboard Event Normal Key - Callback function Prototype: void myKeyboard(unsigned char key, int x, int y) - Register callback function glutKeyboardFunc(myKeyboard) - Example void myKeyboard(unsigned char key, int x, int y){ if(key =='Q'l key =='q' exit(0) Faculty of Computer Science and Engineering - HCMUT Slide 12" }, { "page_index": 184, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_013.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_013.png", "page_index": 184, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:27:51+07:00" }, "raw_text": "Keyboard Event Function Key - Callback function Prototype void myKeyboard(unsigned char key, int x, int y) - Register callback function glutSpecialFunc(myKeyboard - Example void myKeyboard(unsigned char key, int x, int y){ if (key == GLUT_KEY_LEFT) angle = angle + 5; else if(key == GLUT_KEY_RlGHT) angle = angle - 5; glutPostRedisplayO Faculty of Computer Science and Engineering - HCMUT Slide 13" }, { "page_index": 185, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_014.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_014.png", "page_index": 185, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:27:59+07:00" }, "raw_text": "Mouse Event Mouse Click - Callback function Prototype: void myMouse(int button, int state, int x, int y) which button (GLUT_LEFT_BUTTON, GLUT MIDDLE BUTTON, GLUT RIGHT BUTTON) caused event state of that button (GLUT UP, GLUT DOWN) Mouse Position in window - Register callback function glutMouseFunc(myMouse): Faculty of Computer Science and Engineering - HCMUT Slide 14" }, { "page_index": 186, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_015.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_015.png", "page_index": 186, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:28:06+07:00" }, "raw_text": "Mouse Event Mouse Click glutlnitWindowSize(W, H) Y' X I t x', y W X x,y Ib - H glOrtho(l, r, b, t, -1, 1); Y x'=A.X + B r =AW + B x' = ((r-I)/W).x + 1 y'= ((b-t)/H).y + t l=A.0 + B Faculty of Computer r Science and Engineering - HCMUT Slide 15" }, { "page_index": 187, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_016.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_016.png", "page_index": 187, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:28:11+07:00" }, "raw_text": "Mouse Event Mouse Move - glutPassiveMotionFunc: no mouse buttons are pressed - Callback Function Prototype void myMoveMouse(int x, int y) Faculty of Computer Science and Engineering - HCMUT Slide 16" }, { "page_index": 188, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_017.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_017.png", "page_index": 188, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:28:15+07:00" }, "raw_text": "Reshape Event C original reshaped Faculty of Computer Science and Engineering - HCMUT Slide 17" }, { "page_index": 189, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_018.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_018.png", "page_index": 189, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:28:20+07:00" }, "raw_text": "Reshape Event The reshape callback - glutReshapeFunc(myreshape); - void myReshape( int w, int h) Returns width and height of new window (in pixels) - A redisplay is posted automatically at end of execution of the callback - GLUT has a default reshape callback but you probably want to define your own - The reshape callback is good place to put viewing functions because it is invoked when the window is first opened Faculty of Computer Science and Engineering - HCMUT Slide 18" }, { "page_index": 190, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_019.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_019.png", "page_index": 190, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:28:25+07:00" }, "raw_text": "Reshape Event void myReshape(int w, int h){ glViewport(0, 0, w, h); Reshape-Version 2 X Reshape-Version2 X Faculty of Computer Science and Engineering - HCMUT Slide 19" }, { "page_index": 191, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_020.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_020.png", "page_index": 191, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:28:30+07:00" }, "raw_text": "Reshape Event 2*(h/w) Reshape-Version3 X Reshape-Version3 x -2 2 h W -2*(h/w) Faculty of Computer Science and Engineering - HCMUT Slide 20" }, { "page_index": 192, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_021.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_021.png", "page_index": 192, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:28:36+07:00" }, "raw_text": "Reshape Event void myReshape(int w, int h){ float factor = 2; glViewport(0, 0, w, h) glMatrixMode(GL_PROJECTION) glLoadldentityO if (w <= h) glOrtho(-factor, factor, -factor * h / w, factor * h / w, -10.0, 10.0) else glOrtho(-factor * w / h, factor * w / h -factor, factor, -10.0, 10.0) Faculty of Computer Science and Engineering - HCMUT Slide 21" }, { "page_index": 193, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_022.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_022.png", "page_index": 193, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:28:42+07:00" }, "raw_text": "Reshape Event Reshape-Version3 X Reshape-Version3 x 2 0 0 -2*(w/h) 2*(w/h) -2 Faculty of Computer Science and Engineering - HCMUT Slide 22" }, { "page_index": 194, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_023.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_023.png", "page_index": 194, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:28:47+07:00" }, "raw_text": "Reshape Event void myReshape(int w, int h){ float factor = 2; glViewport(0, 0, w, h): glMatrixMode(GL_PROJECTlON) glLoadldentityO if (w <= h) glOrtho(-factor, factor, -factor * h / w, factor * h / w, -10.0, 10.0): else glOrtho(-factor * w / h,factor * w / h -factor, factor, -10.0, 10.0): Faculty of Computer Science and Engineering - HCMUT Slide 23" }, { "page_index": 195, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_024.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_024.png", "page_index": 195, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:28:54+07:00" }, "raw_text": "Idle Event The idle callback is executed whenever there are no events in the event queue glutldleFunc(myidle) Useful for animations void myidle0 { /* change something */ t += dt glutPostRedisplayO void mydisplay0 t glClearO; /* draw something that depends on t */ glutSwapBuffersO: Faculty of Computer Science and Engineering - HCMUT Slide 24" }, { "page_index": 196, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_025.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_025.png", "page_index": 196, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:00+07:00" }, "raw_text": "Double Buffer Double Buffering - Instead of one color buffer, we use two Front Buffer: one that is displayed but not written to Back Buffer: one that is written to but not displayed - Program then requests a double buffer in main.c glutInitDisplayMode(GL_RGB GL DOUBLE) At the end of the display callback buffers are swapped void mydisplayO { glClear(GL COLOR BUFFER ? BIT[.... /* draw graphics here */ glutSwapBuffersO Faculty of Computer Science and Engineering - HCMUT Slide 25" }, { "page_index": 197, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_026.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_026.png", "page_index": 197, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:04+07:00" }, "raw_text": "Toolkits and Widgets Most window systems provide a toolkit or library of functions for building user interfaces that use special types of windows called widgets - Menus - Slidebars - Dials - Input boxes But toolkits tend to be platform dependent GLUT provides a few widgets including menus Faculty of Computer Science and Engineering - HCMUT Slide 26" }, { "page_index": 198, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_027.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_027.png", "page_index": 198, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:11+07:00" }, "raw_text": "Toolkits and Widgets Menus - GLUT supports pop-up menus A menu can have submenus - Three steps Define entries for the menu Define action for each menu item - Action carried out if entry selected Attach menu to a mouse button Faculty of Computer Science and Engineering - HCMUT Slide 27" }, { "page_index": 199, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_028.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_028.png", "page_index": 199, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:16+07:00" }, "raw_text": "Toolkits and Widgets Menus menu id = glutCreateMenu(mymenu) ; glutAddmenuEntry(\"clear gluAddMenuEntry(Jexit\", 2) ; exit glutAttachMenu(GLUT RIGHT BUTTON) entries that appear when identifiers right button depressed Faculty of Computer Science and Engineering - HCMUT Slide 28" }, { "page_index": 200, "chapter_num": 4, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_029.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_4/slide_029.png", "page_index": 200, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:21+07:00" }, "raw_text": "Toolkits and Widgets Menu - Menu callback void mymenu(int id) { if(id == 1) glClear0; if(id == 2) exit(0); - Note each menu has an id that is returned when it is created by - Add submenus glutAddSubMenu(char *submenu_name, submenu id) Faculty of Computer Science and Engineering - HCMUT Slide 29" }, { "page_index": 201, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_001.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_001.png", "page_index": 201, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:25+07:00" }, "raw_text": "Hochiminh city University of Technology Faculty of Computer Science and Engineering COMPUTER GRAPHICS CHAPTER 05: Vector in Computer Graphics" }, { "page_index": 202, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_002.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_002.png", "page_index": 202, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:31+07:00" }, "raw_text": "OUTLINE Vector Dot product Cross Product Scalars Points Affine Sums Parametric Form D Line Plane Some Example F Representation Faculty of Computer r Science and Engineering - HCMUT Slide 2" }, { "page_index": 203, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_003.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_003.png", "page_index": 203, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:36+07:00" }, "raw_text": "Vector Why vector important? - Remove Hidden-face - Normal vector - Three basic elements in geometry: scalar, point. vector (4,6 tam ? (5.3) (2,2) mat phang nhin Faculty of Computer Science and Engineering - HCMUT Slide 3" }, { "page_index": 204, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_004.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_004.png", "page_index": 204, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:44+07:00" }, "raw_text": "Vector 1 I Physical definition: a vector is a quantity with two attributes: 1)Direction; 2)Magnitude Examples include: 1)Force; 2)Velocity - Same length and magnitude b) 4 P 3 Y P 2 1 2 3 4 x 1 x Z Faculty of Computer Science and Engineering - HCMUT Slide 4" }, { "page_index": 205, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_005.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_005.png", "page_index": 205, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:46+07:00" }, "raw_text": "Vector A=(1,2,9),B =(4,6,3 AB = (4 - 1, 6 - 2, 3 - 9) = (3, 4, -6) BA =(1- 4, 2 - 6, 9 - 3) = (-3, -4, 6) Faculty of Computer Science and Engineering - HCMUT Slide 5" }, { "page_index": 206, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_006.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_006.png", "page_index": 206, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:53+07:00" }, "raw_text": "Vector a =(2,5, 6),b =(-2,7,1) Addition: a + b = (0, 12, 7) Scalar-vector multiplication: 6a = (12, 30, 39) Subtraction: a - b = a + (-b) =(4, -2, 5) b a +b a +b a a Faculty of Computer Science and Engineering - HCMUT Slide 6" }, { "page_index": 207, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_007.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_007.png", "page_index": 207, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:29:58+07:00" }, "raw_text": "Vector a 2.5a -a a- c a- c a :1 c c c Faculty of Computer Science and Engineering - HCMUT Slide 7" }, { "page_index": 208, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_008.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_008.png", "page_index": 208, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:30:03+07:00" }, "raw_text": "Vector Magnitude: 2 2 w=Vw1 W +. .+ W n a Unit vector: u a a Faculty of Computer Science and Engineering - HCMUT Slide 8" }, { "page_index": 209, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_009.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_009.png", "page_index": 209, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:30:10+07:00" }, "raw_text": "Dot product and has the value: n V;W i=1 Properties - Symmetry: a-b = b-a - Linearity: (a + c)-b = a-b + c-b - Homogeneity: (sa)-b = s(a-b) -b2= b-b Faculty of Computer Science and Engineering - HCMUT Slide 9" }, { "page_index": 210, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_010.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_010.png", "page_index": 210, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:30:14+07:00" }, "raw_text": "Dot product The angle between two vectors b*c =bc cos(0 cos(0) uc b b 6 c ho cI bo c= 0 boc=I Faculty of Computer r Science and Engineering - HCMUT Slide 10" }, { "page_index": 211, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_011.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_011.png", "page_index": 211, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:30:17+07:00" }, "raw_text": "Dot product N=(A,B,C Vview Faculty of Computer Science and Engineering - HCMUT Slide 11" }, { "page_index": 212, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_012.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_012.png", "page_index": 212, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:30:21+07:00" }, "raw_text": "Dot product The 2D \"perp\"vector - Suppose a = (ax, ay), then a I = (-ay, ax) is the counterclockwise perpendicular to a. : a a :21 Faculty of Computer Science and Engineering - HCMUT Slide 12" }, { "page_index": 213, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_013.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_013.png", "page_index": 213, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:30:26+07:00" }, "raw_text": "Dot product a line 1 FfT C F E + + c = Kv + Mvl (K,M=?) Faculty of Computer Science and Engineering - HCMUT Slide 13" }, { "page_index": 214, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_014.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_014.png", "page_index": 214, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:30:32+07:00" }, "raw_text": "Dot product c = Kv + Mv (K,M =?) (cx,cy) = K(vx,vy) + M(vx\",vy) cX = K*vx + M*vx\" cy = K*vy + M*vy Faculty of Computer Science and Engineering - HCMUT Slide 14" }, { "page_index": 215, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_015.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_015.png", "page_index": 215, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:30:38+07:00" }, "raw_text": "Dot Product c = Kv + Mv (K,M =?) V c*v = Kvv + Mv1ov K = c*v1 = Kvov + Mv1ov1 M 0 v + distance = c = sl2 v Faculty of Computer Science and Engineering - HCMUT Slide 15" }, { "page_index": 216, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_016.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_016.png", "page_index": 216, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:30:46+07:00" }, "raw_text": "Dot product Reflection r = e-m, e = a- m lr = a - 2m a o n =(a* u.)u m 2 n r = a - 2(a. un)u b) a) n n a a I m -m e1 62 1 e e Faculty of Computer r Science and Engineering - HCMUT Slide 16" }, { "page_index": 217, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_017.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_017.png", "page_index": 217, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:30:54+07:00" }, "raw_text": "Cross Product cross product of a and b is a x b = (aybz-a,by)i + (a,bx- axbz)j + (axby - aybx)k 4 a x b 1 k 1 dien tich=a x b a Xb =a a a a x b b b x N b a X b =absin(0 Faculty of Computer Science and Engineering - HCMUT Slide 17" }, { "page_index": 218, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_018.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_018.png", "page_index": 218, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:31:00+07:00" }, "raw_text": "Parametric Form Explicit y = -x2 + 4x - 4 A3 0 1 2 3 A4 -3 A1 How to draw x2 + y2 = 1 Faculty of Computer Science and Engineering - HCMUT Slide 18" }, { "page_index": 219, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_019.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_019.png", "page_index": 219, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:31:06+07:00" }, "raw_text": "Parametric Form Parametric form - Ex 1: a straight line passes through A and B. Choose a parametric form that visit A at t = 0, visit B at t = 1. x(t) = Ax + (Bx - Ax)t y(t) = Ay + (By -Ay)t a t= 1 B (Bx, By) a t = 0 A (Ax, Ay) Faculty of Computer Science and Engineering - HCMUT Slide 19" }, { "page_index": 220, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_020.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_020.png", "page_index": 220, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:31:12+07:00" }, "raw_text": "Parametric Form Parametric form (x/W)2 + (y/H)2 = 1 Ellipse JDx y(t) EX 2: Ellipse with radius W and H t=/2 (x(t), H H x(t) = Wcos(t) y(t)) 2 t W y(t) = Hsin(t) -C c x t t=t H v6i ( 0 1 outward n = 1 sguare Faculty of Computer Science and Engineering - HCMUT Slide 22" }, { "page_index": 223, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_023.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_023.png", "page_index": 223, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:31:34+07:00" }, "raw_text": "Parametric Form Superhyperbola - Parametric form The Superhyperbola x(t) =W sec(t)sec2 2/n- 2/n- y(t) =H tan(t)/tan (t) n = 2m/(2n+1) n < 1 inward n > 1 outward n = 1 line Faculty of Computer r Science and Engineering - HCMUT Slide 23" }, { "page_index": 224, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_024.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_024.png", "page_index": 224, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:31:40+07:00" }, "raw_text": "Parametric Form 3D curves The helix P(t) = (x(t), y(t), z(t)) Helix x(t) = cos(t) y(t) = sin(t) z(t) = bt The toroidal spiral Toroidal spiral x(t) = (asin(ct) + b)cos(t) y(t) = (asin(ct) + b)sin(t) z(t) = acos(ct) Faculty of Computer Science and Engineering - HCMUT Slide 24" }, { "page_index": 225, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_025.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_025.png", "page_index": 225, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:31:44+07:00" }, "raw_text": "Parametric Form x = cos(t) - cos(80*t)*sin(t): y = 2.0*sin(t) - sin(80*t); Plot parametric curves Faculty of Computer Science and Engineering - HCMUT Slide 25" }, { "page_index": 226, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_026.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_026.png", "page_index": 226, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:31:47+07:00" }, "raw_text": "Parametric Form x = cos(t); y = sin(t + sin(5.0*t)); Plot parametric curves Faculty of Computer Science and Engineering - HCMUT Slide 26" }, { "page_index": 227, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_027.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_027.png", "page_index": 227, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:31:50+07:00" }, "raw_text": "Parametric Form x = sin(t+sin(t)) y = cos(t + cos(t)); Plot parametric curves -0x Faculty of Computer Science and Engineering - HCMUT Slide 27" }, { "page_index": 228, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_028.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_028.png", "page_index": 228, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:31:55+07:00" }, "raw_text": "Parametric Form 2.0*sin(2.0*t); X = t + 2.0*c0s(5.0*t y = t + Plot parametric curves ox Faculty of Computer Science and Engineering - HCMUT Slide 28" }, { "page_index": 229, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_029.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_029.png", "page_index": 229, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:31:59+07:00" }, "raw_text": "Parametric Form x = t + sin(2.0*t): y = t + sin(3.0*t); Plot parametric curves Faculty of Computer Science and Engineering - HCMUT Slide 29" }, { "page_index": 230, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_030.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_030.png", "page_index": 230, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:32:04+07:00" }, "raw_text": "Parametric Form x = sin(3.0*t); y = sin(4.0*t) Plot parametric curves Faculty of Computer Science and Engineering - HCMUT Slide 30" }, { "page_index": 231, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_031.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_031.png", "page_index": 231, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:32:12+07:00" }, "raw_text": "Line (1) y = 5x + 3 (2) x = 1 x - 3 y + 2 2 - 3 (3) 1 6 -2 a) line b) line segment c) ray B B B C C C starting point Faculty of Computer Science and Engineering - HCMUT Slide 31" }, { "page_index": 232, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_032.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_032.png", "page_index": 232, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:32:20+07:00" }, "raw_text": "Line Line, line segment, ray a) line b) line segment c) ray B B B C C C starting point Parametric form y at L(t) = C + bt B Line segment, 0 t 1 1 b C Ray,0 t o @t = 1 @t = 0 Line, -o < t < o @t 0 x Faculty of Computer r Science and Engineering - HCMUT Slide 32" }, { "page_index": 233, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_033.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_033.png", "page_index": 233, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:32:27+07:00" }, "raw_text": "Line Point-normal form: n-(R - C) = 0 n B R Conversion B=C-n two- point {C,B point normal C,n} form form (2D only) n=(B-C) 11 + b b=B parametric form {C,b} Faculty of Computer Science and Engineering - HCMUT Slide 33" }, { "page_index": 234, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_034.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_034.png", "page_index": 234, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:32:31+07:00" }, "raw_text": "Plane Parametric form: P(s,t) = C + sa + tb C Point-normal form: n-(R - C) = 0 n= axb Faculty of Computer r Science and Engineering - HCMUT Slide 34" }, { "page_index": 235, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_035.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_035.png", "page_index": 235, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:32:39+07:00" }, "raw_text": "Plane Conversion A = (0,0,n· c/nz) B = (0, n· c/ny,0) three- point {C,B,A point normal C,n} form form n =(B-C) X(A- C) A =C + a B =C +b a=A-C b=B -C parametric form {C,a,b} Faculty of Computer Science and Engineering - HCMUT Slide 35" }, { "page_index": 236, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_036.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_036.png", "page_index": 236, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:32:51+07:00" }, "raw_text": "Some Examples Intersection of two line segment AB(t) =A + bt ; CD(u) = C + du Eind t and u such as A + bt = C + du bt= c+ du v6i c = C-A d-. bt= d-. c B B B a) b) c) D dob 7 O D D d-.c A t = A A C d-.b C D b-.c d) e D u = B B d-.b A C C A dob=0 Faculty of Computer Science and Engineering - HCMUT Slide 36" }, { "page_index": 237, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_037.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_037.png", "page_index": 237, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:00+07:00" }, "raw_text": "Some Examples The Circle throuah 3 points a) Which circle? b) What it looks like c) How to find its center A A A perpendicular ? ? bisector #2 S C C perpendicular c bisector #1 B B B 7 Perpendicular bisector L(t) =- (A+B)+(B- A)-t a=B -A; b=C -B;c=A - C; Perp. bisector AB: A + a/2 + a-t ; AC: A - c/2 + c-u a+t = b/2 + c-u 1 b.c 1 b. c S =A+- t = a + a 2a-.c 2 a C Faculty of Computer Science and Engineering - HCMUT Slide 37" }, { "page_index": 238, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_038.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_038.png", "page_index": 238, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:06+07:00" }, "raw_text": "Representation y t P b / V b a - - 0 1 X 0 X -- a v = a + b = 2.1i + 1.2j v = (2.1,1.2 P = O + OP = O + a + b = O + 3.9i + 3.7i P = (3.9,3.7) Faculty of Computer Science and Engineering - HCMUT Slide 38" }, { "page_index": 239, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_039.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_039.png", "page_index": 239, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:11+07:00" }, "raw_text": "Representation X x V P y y v = 1.6i + 2.7j v = (1.6, 2.7) P = (1.9,3.6) Faculty of Computer Science and Engineering - HCMUT Slide 39" }, { "page_index": 240, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_040.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_040.png", "page_index": 240, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:16+07:00" }, "raw_text": "Representation Frames - Frame determined by (P., v1, v,, v.) v=av+1,vzt - Every point can be written as P = P,+ bv+,v,+....+I.v. Faculty of Computer Science and Engineering - HCMUT Slide 40" }, { "page_index": 241, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_041.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_041.png", "page_index": 241, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:20+07:00" }, "raw_text": "Representation y 4 V P 0 X v = (2,1); P = (2, 1) Faculty of Computer Science and Engineering - HCMUT Slide 41" }, { "page_index": 242, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_042.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_042.png", "page_index": 242, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:26+07:00" }, "raw_text": "Representation v = 2*i + 1*j = = 2*i + 1*j + 0*O V (2,1,0) P = 2*i+ 1*j + O P = 2*i+ 1*j+ 1*O (2,1,1) 0 X Faculty of Computer Science and Engineering - HCMUT Slide 42" }, { "page_index": 243, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_043.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_043.png", "page_index": 243, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:32+07:00" }, "raw_text": "Representation A Single Representation If we define 0-P = 0 and 1:P =P then we can write 1 V=OV1+ 0,V2 +azVz=[aAz Ag 0][v vz Vz P,] P=Po+ Bvs+ Bzvz+Bzvs=[B Bz Bz1][v Vzvz P] Thus we obtain the four-dimensional homogeneous coordinate representation v=[a&&0] p=[BBzBz1] 7 Faculty of Computer Science and Engineering - HCMUT Slide 43" }, { "page_index": 244, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_044.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_044.png", "page_index": 244, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:36+07:00" }, "raw_text": "Representation Homogeneous Coordinates The homogeneous coordinates form for a three dimensional point [x y z] is given as T p=[x'y'z'w]T=[wx wy wz w] We return to a three dimensional point (for w0) by xX'/w yy'/w z< z'/w If w=0, the representation is that of a vector Note that homogeneous coordinates replaces points in three dimensions by lines through the origin in four dimensions For w=1, the representation of a point is [x y z 1] Faculty of Computer Science and Engineering - HCMUT Slide 44" }, { "page_index": 245, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_045.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_045.png", "page_index": 245, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:41+07:00" }, "raw_text": "Representation with respect to two different bases. The representations are a=[a1 a2 2 Q3] b=[B1 Bz Bs] where Faculty of Computer Science and Engineering - HCMUT Slide 45" }, { "page_index": 246, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_046.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_046.png", "page_index": 246, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:47+07:00" }, "raw_text": "Representation - Each of the basis vectors, u1,u2, u3, are vectors that can be represented in terms of the first basis V U1= 91V1+I1zVz+1 V. 23 U3= I31V1+l3a 32V,+ V 32 33 3 Faculty of Computer Science and Engineering - HCMUT Slide 46" }, { "page_index": 247, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_047.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_047.png", "page_index": 247, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:33:51+07:00" }, "raw_text": "Representation The coefficients define a 3 x 3 matrix X11 X12 X13 X21 X22 X23 M = X31 X32 X33 and the bases can be related by a=Mtb Faculty of Computer Science and Engineering - HCMUT Slide 47" }, { "page_index": 248, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_048.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_048.png", "page_index": 248, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:00+07:00" }, "raw_text": "Representation Change of Coordinate Systems 1 0 u2 V1 = ;V2 = 0 1 W v2 u1 =3v1 =2v2 u2 1 v1 u1 3 0 3 ;(m T 3 M = ;M 1 0 2 0 2 0 2] 1 1 0 1 3 3 :b =Ta = a = 1 1 1 1 2 2 Faculty of Computer r Science and Engineering - HCMUT Slide 48" }, { "page_index": 249, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_049.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_049.png", "page_index": 249, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:09+07:00" }, "raw_text": "Representation N W U1=V1+ V2 u2 =- V1+ V2 1 1 1 -1 T v2 M = ;M u2 u1 1 1 1 - 1 1 1 v1 (m1)1 2 2 1 1 - 1 1 1 1 2 2 a = - 2 2. 1 1 1 0 2 2. Faculty of Computer r Science and Engineering - HCMUT Slide 49" }, { "page_index": 250, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_050.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_050.png", "page_index": 250, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:15+07:00" }, "raw_text": "Representation Change of Frames - We can apply a similar process in homogeneous coordinates to the representations of both points and vectors u2 u1 Consider two frames: Qo (Po,V1,V2,V3) (Qo,u1,U2, uz) P 0 V U3 V 3 - Any point or vector can be represented in either frame Faculty of Computer Science and Engineering - HCMUT Slide 50" }, { "page_index": 251, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_051.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_051.png", "page_index": 251, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:21+07:00" }, "raw_text": "Representation Change of Frames Extending what we did with change of bases uq= X1V+X12Vz+X13V3 Uz= Y21V1+X22Vz+X23V3 U3= X31V+X32Vz+Y33V3 Qo= X4iV+Y4Vz+Y 43V3+X44Po defining a 4 x 4 matrix 0 X11 X12 X13 X21 X22 X23 0 M = X31 X33 0 X32 X41 X42 X43 1 Faculty of Computer Science and Engineering - HCMUT Slide 51" }, { "page_index": 252, "chapter_num": 5, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_052.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_5/slide_052.png", "page_index": 252, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:26+07:00" }, "raw_text": "Representation Change of Frames Within the two frames any point or vector has a representation of the same form a=[a g] in the first frame b=[B B BB]in the second frame where a=B= 1 for points and &=B= 0 for vectors and a=MTb The matrix M is 4 x 4 and specifies an affine transformation in homogeneous coordinates Faculty of Computer Science and Engineering - HCMUT Slide 52" }, { "page_index": 253, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_001.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_001.png", "page_index": 253, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:30+07:00" }, "raw_text": "Hochiminh city University of Technology Faculty of Computer Science and Engineering COMPUTER GRAPHICS CHAPTER 06: Transformations" }, { "page_index": 254, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_002.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_002.png", "page_index": 254, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:34+07:00" }, "raw_text": "OUTLINE Introduction Transformation in 2D Transformation in 3D Transformation in OpenGL Faculty of Computer Science and Engineering - HCMUT Slide 2" }, { "page_index": 255, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_003.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_003.png", "page_index": 255, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:39+07:00" }, "raw_text": "Introduction Introduction X @Introduction D X Introduction X @Introduction X Introduction D X glscalef(1.5, 0.5, 1); glTranslatef(1.5, 2.5, 0); glRotatef(30, 0, 0, 1; Faculty of Computer Science and Engineering - HCMUT Slide 3" }, { "page_index": 256, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_004.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_004.png", "page_index": 256, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:45+07:00" }, "raw_text": "Introduction General Transformations A transformation maps points to other points and/or vectors to other vectors v=T(u) P T Q=T(P) Faculty of Computer Science and Engineering - HCMUT Slide 4" }, { "page_index": 257, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_005.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_005.png", "page_index": 257, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:51+07:00" }, "raw_text": "Introduction General Transformations P = (Px,Py,1); Q =(Qx,Qy,1) (Q - image) (Qx,Qy,1) = T (Px,Py,1) (T - transformation) Q = T(P) a) b) V y T 0 P 0 P x x z Faculty of Computer Science and Engineering - HCMUT Slide 5" }, { "page_index": 258, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_006.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_006.png", "page_index": 258, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:34:56+07:00" }, "raw_text": "Introduction General Transformations a) b) y after after before before x x Faculty of Computer r Science and Engineering - HCMUT Slide 6" }, { "page_index": 259, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_007.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_007.png", "page_index": 259, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:35:03+07:00" }, "raw_text": "Introduction Affine Transformations +m +m m X 11 X 121 y 13 Qy P +m P +m 21 22 23 X y m13 P x x m22 P m 23 y 1 0 0 1 1 always (0, 0,1) T Faculty of Computer r Science and Engineering - HCMUT Slide 7" }, { "page_index": 260, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_008.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_008.png", "page_index": 260, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:35:07+07:00" }, "raw_text": "Introduction Affine Transformations - Line preserving - Characteristic of many physically important transformations Rigid body transformations: rotation translation Scaling, shear - Importance in graphics is that we need only transform endpoints of line segments and let implementation draw line segment between the transformed endpoints Faculty of Computer Science and Engineering - HCMUT Slide 8" }, { "page_index": 261, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_009.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_009.png", "page_index": 261, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:35:12+07:00" }, "raw_text": "Introduction Pipeline Implementation glBegin(GL_LINES); glVertex3f(. : .); glVertex3f(. : .); glVertex3f(. : .); glEndO PyP Q1 Q CT y P 2 Z x x Z Faculty of Computer Science and Engineering - HCMUT Slide 9" }, { "page_index": 262, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_010.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_010.png", "page_index": 262, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:35:20+07:00" }, "raw_text": "Transformations in 2D Translation 0 m13 P Q 1 Qx = Px + m13 x x 0 1 m, P Qy = Py + m23 23 y 1 0 0 1 1 y 1 0 2 y 0 1 1 0 0 1 1 x x 2 Faculty of Computer r Science and Engineering - HCMUT Slide 10" }, { "page_index": 263, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_011.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_011.png", "page_index": 263, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:35:30+07:00" }, "raw_text": "Transformations in 2D Scaling S 0 0 P Q x x x Qx = Sx Px Q 0 S 0 P Qy = Sy Py y y y 1 0 0 1 1 1.3 0 0 uniform y 0 1.3 0 0 0 x 2 1.5 0 0 Non- x uniform 0 0.5 0 0 0 x Faculty of Computer r Science and Engineering - HCMUT Slide 11" }, { "page_index": 264, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_012.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_012.png", "page_index": 264, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:35:37+07:00" }, "raw_text": "Transformations in 2D Scaling (Reflection) 0 0 0 1 0 0 0 1 x y 1 0 0 x x 0 0 0 0 Faculty of Computer r Science and Engineering - HCMUT Slide 12" }, { "page_index": 265, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_013.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_013.png", "page_index": 265, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:35:41+07:00" }, "raw_text": "Transformations in 2D Scaling (Reflection) x 1 0 0 0 2 0 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 13" }, { "page_index": 266, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_014.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_014.png", "page_index": 266, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:35:48+07:00" }, "raw_text": "Transformations in 2D Rotation cos(0) - sin(0) 0 Qx = Px cos(0) - Pv sin(0) sin(0) cos(0) X 0 sin(0) + P, cos(0) X 0 0 1 0.5 - V3/2 0 V3/2 0.5 0 t y 0 1 60o x x Faculty of Computer Science and Engineering - HCMUT Slide 14" }, { "page_index": 267, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_015.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_015.png", "page_index": 267, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:35:57+07:00" }, "raw_text": "Transformations in 2D Rotation .P R x Q =R cos(0 + q) x =Rsin(0+ q Q Q =Rcos cos - Rsin 0sin =P. cos - P, sin 6 x 0 =Rsin cos + R cos 6 sin =P. sin 6 + P, cos 6 Faculty of Computer Science and Engineering - HCMUT Slide 15" }, { "page_index": 268, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_016.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_016.png", "page_index": 268, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:36:05+07:00" }, "raw_text": "Transformations in 2D Shear 1 h 0 0 1 0 0 0 1 x t y 1 0 0 y 1 0 g 0 0 1 x x y x Faculty of Computer r Science and Engineering - HCMUT Slide 16" }, { "page_index": 269, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_017.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_017.png", "page_index": 269, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:36:10+07:00" }, "raw_text": "Transformations in 2D Concatenation V T0 & T20 P: W TO x Faculty of Computer Science and Engineering - HCMUT Slide 17" }, { "page_index": 270, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_018.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_018.png", "page_index": 270, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:36:15+07:00" }, "raw_text": "Transformations in 2D Concatenation - We can form arbitrary affine transformation matrices by multiplying together rotation, translation, and scaling matrices - Because the same transformation is applied to many vertices, the cost of forming a matrix M=ABCD is not significant compared to the cost of computing Mp for many vertices p Faculty of Computer Science and Engineering - HCMUT Slide 18" }, { "page_index": 271, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_019.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_019.png", "page_index": 271, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:36:21+07:00" }, "raw_text": "Transformations in 2D Concatenation - Note that matrix on the right is the first applied - Mathematically, the following are equivalent W=TzQ= Tz(TP)=(TzT)P y T20 P W TO x Faculty of Computer Science and Engineering - HCMUT Slide 19" }, { "page_index": 272, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_020.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_020.png", "page_index": 272, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:36:30+07:00" }, "raw_text": "Transformations in 2D Concatenation - Move fixed point to origin - Rotate Q P V - Move fixed point back 0 P' - M = T(pi) R(0) T(-Pt) 1 0 V. cos(0) - sin(0) 0 1 0 -V x x 0 1 V sin(0) cos(0) 0 0 1 -V y y 0 0 1 0 0 1 0 0 1 cos(0) - sin(0) d x dx=-Vx cos(6)+V,sin(0)+V sin(0) cos(0) dy=-Vx sin(0)-Vy cos(0)+Vy d y 0 0 Faculty of Computer Science and Engineering - HCMUT Slide 20" }, { "page_index": 273, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_021.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_021.png", "page_index": 273, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:36:35+07:00" }, "raw_text": "Transformations in 2D X Rotate X - Rotate Faculty of Computer Science and Engineering - HCMUT Slide 21" }, { "page_index": 274, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_022.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_022.png", "page_index": 274, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:36:42+07:00" }, "raw_text": "Transformations in 3D General Formula m12 m13 m m21 m22 m24 M = m31 M32 M33 M34 0 0 0 1 Q P x x P =M y Q P. 1 1 Faculty of Computer Science and Engineering - HCMUT Slide 22" }, { "page_index": 275, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_023.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_023.png", "page_index": 275, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:36:50+07:00" }, "raw_text": "Transformations in 3D Translation 1 0 0 m. 0 1 0 0 0 1 0 0 1 Scaling V S 0 0 0 x 0 S y 0 0 S 0 Z x x 0 0 0 1 Faculty of Computer r Science and Engineering - HCMUT Slide 23" }, { "page_index": 276, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_024.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_024.png", "page_index": 276, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:36:59+07:00" }, "raw_text": "Transformations in 3D Shear 1 0 0 1 0 0 X V7 0 0 1 0 0 0 0 1 Rotation x-roll,y-roll, z-roll y when angle = 90°: P' Q' z-roll: xDy 0 x-roll: y0z P y-roll: z0x Z x Faculty of Computer Science and Engineering - HCMUT Slide 24" }, { "page_index": 277, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_025.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_025.png", "page_index": 277, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:37:12+07:00" }, "raw_text": "Transformations in 3D Rotation 1 0 0 0 0 0 s 0 0 c c - s 0 0 c - s 0 1 0 s 0 c R.(B) = R,(B)= R,(B) = 0 s 0 c 0 c 0 0 0 1 0 s 0 0 0 1 0 0 0 0 0 0 1 a) object b) Rotate about Ox c) Rotate about Oy d) Rotate aboute (- 70°) (30°) Oz (- 90°) y y y x Z x z x Z x z Faculty of Computer r Science and Engineering - HCMUT Slide 25" }, { "page_index": 278, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_026.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_026.png", "page_index": 278, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:37:16+07:00" }, "raw_text": "Transformations in 3D Rotation about an Arbitrary Axis u I x. Rotate about x axis with angle B Q B recover u. P 0 Z X Faculty of Computer Science and Engineering - HCMUT Slide 26" }, { "page_index": 279, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_027.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_027.png", "page_index": 279, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:37:23+07:00" }, "raw_text": "Transformations in 3D u X - Rotate u around y (+0) Q p - Then rotate around z (-) P Rotate around x (+B) Recover u 0 Z - Rotate around z (+o) x - Rotate around y (-0) Ru(B)=Ry(-0)Rz($)Rx(B)Rz(-$)Ry(0) Faculty of Computer r Science and Engineering - HCMUT Slide 27" }, { "page_index": 280, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_028.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_028.png", "page_index": 280, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:37:31+07:00" }, "raw_text": "Transformations in 3D y 1 Q B P Ru(B)=Rv(-0)Rz($)Rx(B)Rz(-$)Ry(0 0 x c+(1- c)ux (1- c)u,ux - su (1- c)u,u + su 0 (1- c)u.uy +su. c +(1- c)uy (1- c)u,uy - su 0 X (1- c)uzu, - su. (1- c)uyu, +su c+(1- c)u, 0 x 0 0 Faculty of Computer Science and Engineering - HCMUT Slide 28" }, { "page_index": 281, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_029.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_029.png", "page_index": 281, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:37:37+07:00" }, "raw_text": "Transformations in OpenGL How to draw this picture (the red letter H) float v0[12][2] = { {0, 0}, {0, 2}, {0.6, 2}, {0.6, 1.2}, {1.4, 1.2}, {1.4, 2}. {2, 2}, {2, 0}, {1.4, 0}, {1.4, 0.8}, {0.6, 0.8}, {0.6, 0} }; Transformation X void drawFigureoQ glColor3f(1, 0, 0); g1Begin(GL_LINE_LOOP); for (int i = 0; i < 12; i++) glVertex2fv(v0[i]); g1End); } Faculty of Computer Science and Engineering - HCMUT Slide 29" }, { "page_index": 282, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_030.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_030.png", "page_index": 282, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:37:45+07:00" }, "raw_text": "Transformations in OpenGL How to draw the blue H Transformation 0 4Y cos(60) sin(60) 0 cos(60) - sin(60) 4 0 1 5 sin(60) cos(60) 0 sin(60) cos(60) 5 0 0 0 0 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 30" }, { "page_index": 283, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_031.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_031.png", "page_index": 283, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:37:54+07:00" }, "raw_text": "Transformations in OpenGL How to draw the blue H 0 4Ycos(60) sin(60) 0 cos(60) - sin(60) 4 0 1 5 sin(60) cos(60) 0 = sin(60) cos(60) 5S 0 0 0 0 0 0 1 void drawFigure1Q float v1[12][2]; for (int i = 0; i < 12; i++) v1[i][0] = v0[i][0] * cos(PI / 3) - v0[i][1] * sin(PI / 3) + 4; v1[i][1] = v0[i][0] * sin(PI / 3) + v0[i][1] * cos(PI / 3) + 5; } glColor3f(0, 0, 1); g1Begin(GL_LINE_LOOP); for (int i = 0; i < 12; i++ glVertex2fv(v1[i]); g1End(); Faculty of Computer Science and Engineering - HCMUT Slide 31" }, { "page_index": 284, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_032.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_032.png", "page_index": 284, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:38:05+07:00" }, "raw_text": "Transformations in OpenGL How to draw the purple H Transformation X cos(60) sin(60) 0 3 0 0 2 cos(60) 1 - 2 sin(60) 3 c0s(60) - 4 sin(60) sin(60) cos(60) 0 0 1 4 0 2 0 = 2 sin(60) 2 cos(60) 3sin(60)+ 4cos(60 0 0 0 0 0 0 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 32" }, { "page_index": 285, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_033.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_033.png", "page_index": 285, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:38:16+07:00" }, "raw_text": "Transformations in OpenGL How to draw the purple H cos(60) - sin(60) 0 0 2 cos(60) - 2 sin(60) 3cos(60)- 4sin(60) sin(60) cos(60) 0 0 14 0 2 0 2 sin(60) 2 cos(60) 3sin(60)+ 4cos(60) 0 0 0 0 1 0 0 0 0 1 void drawFigure2Q{ float v2[12][2]; for (int i = 0; i < 12; i++){ v2[i][0] = v0[i][0] * 2*cos(PI / 3) - v0[i][1] * 2*sin(PI / 3) + 3*cos(PI/3)-4*sin(PI/3); v2[i][1] = v0[i][e] * 2*sin(PI / 3) + v0[i][1] * 2*cos(PI / 3) + 3*sin(PI/3)+4*cos(PI/3); } glColor3f(1, 0, 1); glBegin(GL_LINE_LOOP); for (int i = 0; i < 12; i++) glVertex2fv(v2[i]); g1End(); Faculty of Computer Science and Engineering - HCMUT Slide 33" }, { "page_index": 286, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_034.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_034.png", "page_index": 286, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:38:20+07:00" }, "raw_text": "Transformations in OpenGL How to draw the blue H Transformation X Faculty of Computer Science and Engineering - HCMUT Slide 34" }, { "page_index": 287, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_035.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_035.png", "page_index": 287, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:38:27+07:00" }, "raw_text": "Transformations in OpenGL void mydisplayQ f g1C1ear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_MODELVIEW)j glLoadIdentity(); drawGridQ; glColor3f(1, 0, 0);//The red H drawFigureeQ ; glColor3f(0, 0, 1); //The blue H glTranslatef(4, 5, 0); glRotatef(60, 0, 0, 1): drawFigure0(); glF1ushQ; } Faculty of Computer Science and Engineering - HCMUT Slide 35" }, { "page_index": 288, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_036.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_036.png", "page_index": 288, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:38:33+07:00" }, "raw_text": "Transformations in OpenGL glMatrixMode(GL_MODELVIEW) glLoadldentityO: CTM = I drawFigure0O CTM: Current Transf. Matrix S y Q S V S WV CTM V S Q Faculty of Computer r Science and Engineering - HCMUT Slide 36" }, { "page_index": 289, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_037.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_037.png", "page_index": 289, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:38:45+07:00" }, "raw_text": "Transformations in OpenGL glMatrixMode(GL_MODELVlEW); glLoadidentityO CTM = I 0 0 0 4 4 glColor3f(1,0, 0) 0 1 0 0 CTM = CTM* 1 0 0 1 0 0 0 1 0 drawFigure0O 0 0 0 1 0 0 0 1 glColor3f(0, 0, 1); cos(60) sin(60) 0 0 sin(60) cos(60) 0 0 glTranslatef(4, 5, 0); CTM = CTM* 0 0 1 0 glRotatef(60, 0, 0, 1); 0 0 0 1 drawFigure00; cos(60) sin(60) 0 4 sin(60) cos(60) 0 5 0 0 1 0 0 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 37" }, { "page_index": 290, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_038.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_038.png", "page_index": 290, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:38:52+07:00" }, "raw_text": "Transformations in OpenGL glMatrixMode(GL_MODELVIEW); glLoadidentityO; Transformation X drawGridO glColor3f(0, 0, 1); glTranslatef(4, 5, 0)) glRotatef(60, 0, 0, 1); drawFigure00: glColor3f(1, 0, 0) drawFigure0O Faculty of Computer Science and Engineering - HCMUT Slide 38" }, { "page_index": 291, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_039.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_039.png", "page_index": 291, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:39:00+07:00" }, "raw_text": "Transformations in OpenGL glMatrixMode(GL_MODELVlEW); glLoadldentityO; CTM = l cos(60) - sin(60) 0 4 glColor3f(0, 0, 1); sin(60) cos(60) 0 5 glTranslatef(4, 5,0) CTM = 0 0 1 0 glRotatef(60,0,0,1); 0 0 0 1 drawFigure0O; glColor3f(1, 0, 0)) drawFigure0O Faculty of Computer Science and Engineering - HCMUT Slide 39" }, { "page_index": 292, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_040.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_040.png", "page_index": 292, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:39:08+07:00" }, "raw_text": "Transformations in OpenGL glMatrixMode(GL_MODELVlEW); glLoadidentityO; CTM = I glPushMatrixO; - glColor3f(0, 0,1);//The blue H cos(60) sin(60) 0 4 glTranslatef(4, 5, 0) CTM = sin(60) cos(60) 0 0 0 0 glRotatef(60, 0, 0, 1); 0 0 0 drawFigure0O: glPopMatrixO glColor3f(1, 0,0);//The red H CTM = I drawFigure0O Faculty of Computer Science and Engineering - HCMUT Slide 40" }, { "page_index": 293, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_041.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_041.png", "page_index": 293, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:39:15+07:00" }, "raw_text": "Transformations in OpenGL glMatrixMode(GL_MODELVIEW); glLoadIdentity(); drawGridO; Transformation X g1PushMatrixO; glColor3f(0, 0, 1); //The blue H glTranslatef(4, 5, 0); glRotatef60, 0, 0,1; drawFigure0Q; g1PopMatrix; g1PushMatrixO; glColor3f(1, 0, 1);//The purple H glRotatef60, 0, 0, 1; glTranslatef(3, 4, 0); glScalef(2, 2, 1; drawFigure0Q; glPopMatrix; glColor3f1, 0, 0);//The red H drawFigure0(); Faculty of Computer Science and Engineering - HCMUT Slide 41" }, { "page_index": 294, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_042.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_042.png", "page_index": 294, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:39:26+07:00" }, "raw_text": "Transformations in OpenGL Draw the blue H cos(60) - sin(60) 1 0 4Y cos(60) sin(60) 0 cos(60) - sin(60) 4 sin(60) 5 cos(60) sin(60) cos(60) 0 sin(60) cos(60) = 5 0 0 0 0 0 - 0 0 1 O 0 1 0 0 0 float m[16] = { cos(PI / 3), sin(PI / 3), 0, 0, -sin(PI / 3), cos(PI / 3), 0, 0. 0, 0, 1, 0. 4, 5, 0, 1 }; glPushMatrix(); glPushMatrix(; glColor3f(0, 0, 1); glLoadMatrixf(m); glTranslatef(4, 5, 0); glColor3f(0, 0, 1); glRotatef(60, 0, 0, 1); drawFigure0(); drawFigureo(); glPopMatrix); glPopMatrix(); Faculty of Computer Science and Engineering - HCMUT Slide 42" }, { "page_index": 295, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_043.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_043.png", "page_index": 295, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:39:30+07:00" }, "raw_text": "Transformations in OpenGL Load Matrix X Faculty of Computer Science and Engineering - HCMUT Slide 43" }, { "page_index": 296, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_044.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_044.png", "page_index": 296, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:39:38+07:00" }, "raw_text": "Transformations in OpenGL 1 h 0 0 1 0 0 0 1 Qx = Px + hPy (Qx,Qy) = (0.6, 2.0); (Px, Py) = (0 2.0) 0.6 = 0 + 1 0 3 0.3 0 1 0.3 3 0 1 4 0 1 0 0 1 4 0 0 1 0 0 1 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 44" }, { "page_index": 297, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_045.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_045.png", "page_index": 297, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:39:46+07:00" }, "raw_text": "Transformations in OpenGL 1 0.3 3 float ShearNTranslate[16] = { 1, 0, 0, 0, 0.3, 1, 0, 0, 0 1 4 0, 0, 1, 0. 0 0 1 3, 4, 0, 1 }; g1PushMatrix(; glLoadMatrixf(ShearNTranslate); glColor3f(0, 1, 0); drawFigureo); g1PopMatrixQ; Faculty of Computer Science and Engineering - HCMUT Slide 45" }, { "page_index": 298, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_046.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_046.png", "page_index": 298, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:39:53+07:00" }, "raw_text": "Transformations in OpenGL glMultMatrixf g1PushMatrix(); glTranslatef(3, 4, 0); float Shear[16] = { 1, 0, 0, 0, 0.3, 1, 0, 0, glMultMatrixf(Shear); 0, 0, 1, 0, glColor3f(0, 1, 0); 0, 0, 0, 1 }; drawFigureo(); g1PopMatrixQ; Faculty of Computer Science and Engineering - HCMUT Slide 46" }, { "page_index": 299, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_047.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_047.png", "page_index": 299, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:39:58+07:00" }, "raw_text": "Transformations in OpenGL Load an identity matrix: - glLoadldentity0 Rotation, Translation, Scaling - glRotatef(theta, vx, vy, vz) theta in degrees, (vx, vy, vz) define axis of rotation - glTranslatef(dx, dy, dz) - glScalef( sx, sy, sz) Faculty of Computer Science and Engineering - HCMUT Slide 47" }, { "page_index": 300, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_048.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_048.png", "page_index": 300, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:40:03+07:00" }, "raw_text": "Transformations in OpenGL application program - glLoadMatrixf(m) - gIMultMatrixf(m) which are the components of the desired 4 x 4 matrix stored by columns the right Faculty of Computer Science and Engineering - HCMUT Slide 48" }, { "page_index": 301, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_049.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_049.png", "page_index": 301, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:40:08+07:00" }, "raw_text": "Transformations in OpenGL Reading Back Matrices - Can also access matrices (and other parts of the state) by query functions glGetlntegerv glGetFloatv glGetBooleanv glGetDoublev gllsEnabled - For matrices, we use as . float m[16] gIGetFloatv(GL_MODELVIEW_MATRIX,m); Faculty of Computer Science and Engineering - HCMUT Slide 49" }, { "page_index": 302, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_050.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_050.png", "page_index": 302, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:40:13+07:00" }, "raw_text": "Transformations in OpenGL 2D Transformation C B C A D' B D A Tim ma trän bién di hinh binh hanh thanh hinh chü nhät Faculty of Computer Science and Engineering - HCMUT Slide 50" }, { "page_index": 303, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_051.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_051.png", "page_index": 303, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:40:20+07:00" }, "raw_text": "Transformations in OpenGL Get Matrix X 1 0 0 - 1 0 1 0 -1 M1= 0 0 1 0 0 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 51" }, { "page_index": 304, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_052.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_052.png", "page_index": 304, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:40:27+07:00" }, "raw_text": "Transformations in OpenGL 1 0 0 Get Matrix 0 X 1 0 g 0 0 Qy = gPx + Py (2,1) (2,0 0 = 2g + 1 g = -0.5 1 0 0 0 - 0.5 1 0 0 M2 = 0 0 1 0 0 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 52" }, { "page_index": 305, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_053.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_053.png", "page_index": 305, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:40:32+07:00" }, "raw_text": "Transformations in OpenGL Get Matrix X 5/2 0 0 0 0 3/4 0 0 M 3 = 0 0 1 0 0 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 53" }, { "page_index": 306, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_054.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_054.png", "page_index": 306, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:40:39+07:00" }, "raw_text": "Transformations in OpenGL Get Matrix X 1 0 -5 0 0 1 0 6 M 4 = 0 0 1 0 0 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 54" }, { "page_index": 307, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_055.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_055.png", "page_index": 307, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:40:43+07:00" }, "raw_text": "Transformations in OpenGL Tinh tién (M1) Truot theo truc y (M2 Ty Ié (M3) Tinh tién (M4) Faculty of Computer Science and Engineering - HCMUT Slide 55" }, { "page_index": 308, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_056.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_056.png", "page_index": 308, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:40:53+07:00" }, "raw_text": "Transformations in OpenGL 1 0 0 - 1 1 0 0 0 0 1 0 -1 - 0.5 1 0 0 M1 = M 2 = 0 0 1 0 0 1 0 0 0 0 1 0 0 0 5/2 0 0 0 1 0 0 - 5] 0 3/4 0 0 0 1 0 6 M3 = M 4 = 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 1 M = M4*M3*M2*M1 Faculty of Computer r Science and Engineering - HCMUT Slide 56" }, { "page_index": 309, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_057.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_057.png", "page_index": 309, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:41:01+07:00" }, "raw_text": "Transformations in OpenGL M = M4*M3*M2*M1 2D Transformation 5/2 0 0 - 15/ 2 C B - 3/8 3/4 0 45/8 M = 0 0 1 0 C A D' 0 0 0 1 B D A Faculty of Computer Science and Engineering - HCMUT Slide 57" }, { "page_index": 310, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_058.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_058.png", "page_index": 310, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:41:10+07:00" }, "raw_text": "Transformations in OpenGL 2D Transformation Q = m P +m P +m C B 11 12 13 X X y P +m P +m 21 22 y 23 x C -5 = m11 + m12 + m13 A D' 6 = m21 + m22 + m23 B 0 = 3m11+ 6m12 + m13 D 9 = 3m21 + 6m22 + m23 A 0 = 3m11 + 2m12 + m13 6 = 3m21 + 2m22 + m23 m11 = 5/2.m12 = 0, m13 = -15/2 m21 = -3/8, m22= 3/4,m23 = 45/8 Faculty of Computer Science and Engineering - HCMUT Slide 58" }, { "page_index": 311, "chapter_num": 6, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_059.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_6/slide_059.png", "page_index": 311, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:41:19+07:00" }, "raw_text": "Transformations in OpenGL float Shear16l = f 1, -0.5, 0, 0, 0, 1, 0, 0. 0, 0, 1, 0. 0, 0, 0, 1}: float modelviewMatrix[16]; glColor3f(0, 0, 0; glPushMatrixO; glTranslatef(-5, 6, 0; glScalef(5 / 2.0, 3 / 4.0, 1); glMultMatrixf(Shear); glTranslatef(-1, -1, 0); glGetF1oatv(GL_MODELVIEW_MATRIX, modelviewMatrix)j printMatrix(modelviewMatrix); glPopMatrixQ; void printMatrix(float m[16]){ for (int i = 0; i < 4; i++){ printf(\"%8.4f %8.4f %8.4f %8.4f\", m[i], m[i + 4], m[i + 8], m[i + 12]; printf(\"n\"); Faculty of Computer Science and Engineering - HCMUT Slide 59" }, { "page_index": 312, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_001.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_001.png", "page_index": 312, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:41:22+07:00" }, "raw_text": "Hochiminh city University of Technology Faculty of Computer Science and Engineering COMPUTER GRAPHICS CHAPTER 7 : Viewing" }, { "page_index": 313, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_002.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_002.png", "page_index": 313, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:41:28+07:00" }, "raw_text": "OUTLINE Classical Viewing Orthographic Projection Axonometric Projections Oblique Projection Perspective Projection Computer Viewing View Volume Faculty of Computer Science and Engineering - HCMUT Slide 2" }, { "page_index": 314, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_003.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_003.png", "page_index": 314, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:41:35+07:00" }, "raw_text": "Classical Viewing MEND dreamstime.com ID127754469 LOCKA Download from ID 32507419 Dreamstime.com Richard ThomasDreamstime.com This watemmarked comp image is for previewine purpe sor Faculty of Computer Science and Engineering - HCMUT Slide 3" }, { "page_index": 315, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_004.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_004.png", "page_index": 315, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:41:40+07:00" }, "raw_text": "Classical Viewing Classical Projections Front eleyation Eleyation oblique Plan oblique Isometric One-point perspective Three-point perspective Faculty of Computer Science and Engineering - HCMUT Slide 4" }, { "page_index": 316, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_005.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_005.png", "page_index": 316, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:41:45+07:00" }, "raw_text": "Classical Viewing Taxonomy of Planar Geometric Projections planar geometric projections paralle perspective 1 point 2 point 3 point multiview axonometric oblique orthographic isometric dimetric trimetric Faculty of Computer Science and Engineering - HCMUT Slide 5" }, { "page_index": 317, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_006.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_006.png", "page_index": 317, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:41:49+07:00" }, "raw_text": "Classical Viewing Parallel Projection Object Projector DOP Projection plane Faculty of Computer r Science and Engineering - HCMUT Slide 6" }, { "page_index": 318, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_007.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_007.png", "page_index": 318, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:41:55+07:00" }, "raw_text": "Classical Viewing Perspective Projection Object Projector Projection plane COP Faculty of Computer Science and Engineering - HCMUT Slide 7" }, { "page_index": 319, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_008.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_008.png", "page_index": 319, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:02+07:00" }, "raw_text": "Classical Viewing Taxonomy of Planar Geometric Projections planar geometric projections paralle perspective 1 point 2 point 3 point multiview axonometric oblique orthographic isometric dimetric trimetric Faculty of Computer Science and Engineering - HCMUT Slide 8" }, { "page_index": 320, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_009.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_009.png", "page_index": 320, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:07+07:00" }, "raw_text": "Orthographic Projection Multiview Orthographic Projection - Projection plane parallel to principal face - Usually form front, top, side views isometric (not multiview orthographic view) front in CAD and architecture we often display three multiviews plus isometric side top Faculty of Computer Science and Engineering - HCMUT Slide 9" }, { "page_index": 321, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_010.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_010.png", "page_index": 321, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:11+07:00" }, "raw_text": "Orthographic Projection Advantages - Preserves both distances and angles Shapes preserved Can be used for measurements ->Building plans - Manuals Disadvantages - Cannot see what object really looks like because many surfaces hidden from view Often we add the isometric Faculty of Computer Science and Engineering - HCMUT Slide 10" }, { "page_index": 322, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_011.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_011.png", "page_index": 322, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:16+07:00" }, "raw_text": "Axonometric Projections Allow projection plane to move relative to object - Classify by how many angles of a corner of a projected cube are the same none: trimetric two: dimetric three: isometric(truc do - déu) Projection plane Faculty of Computer Science and Engineering - HCMUT Slide 11" }, { "page_index": 323, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_012.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_012.png", "page_index": 323, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:22+07:00" }, "raw_text": "Axonometric Projections t y Isometric H Dimetric X Trimetric Z Faculty of Computer Science and Engineering - HCMUT Slide 12" }, { "page_index": 324, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_013.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_013.png", "page_index": 324, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:28+07:00" }, "raw_text": "Axonometric Projections Dimetric Trimetric sometric Faculty of Computer Science and Engineering - HCMUT Slide 13" }, { "page_index": 325, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_014.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_014.png", "page_index": 325, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:33+07:00" }, "raw_text": "Axonometric Projections factors - Projection of a circle in a plane not parallel to the projection plane is an ellipse Can see three principal faces of a box-like object Some optical illusions possible - Parallel lines appear to diverge same as near objects Used in CAD applications Faculty of Computer Science and Engineering - HCMUT Slide 14" }, { "page_index": 326, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_015.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_015.png", "page_index": 326, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:37+07:00" }, "raw_text": "Classical Viewing Taxonomy of Planar Geometric Projections planar geometric projections paralle perspective 1 point 2 point 3 point multiview axonometric oblique orthographic isometric dimetric trimetric Faculty of Computer Science and Engineering - HCMUT Slide 15" }, { "page_index": 327, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_016.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_016.png", "page_index": 327, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:41+07:00" }, "raw_text": "Oblique Projection Arbitrary relationship between projectors and projection plane Projection plane Projection plane Projection plane Faculty of Computer Science and Engineering - HCMUT Slide 16" }, { "page_index": 328, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_017.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_017.png", "page_index": 328, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:45+07:00" }, "raw_text": "Oblique Projection - Architecture: plan oblique, elevation oblique Angles in faces parallel to projection plane are (architectural) Faculty of Computer Science and Engineering - HCMUT Slide 17" }, { "page_index": 329, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_018.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_018.png", "page_index": 329, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:49+07:00" }, "raw_text": "Perspective e Projection Faculty of Computer Science and Engineering - HCMUT Slide 18" }, { "page_index": 330, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_019.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_019.png", "page_index": 330, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:42:54+07:00" }, "raw_text": "Perspective Projection Vanishing Points - Parallel lines (not parallel to the projection plan) on the object converge at a single point in the projection (the vanishing point) - Drawing simple perspectives by hand uses these vanishing point(s) vanishing point Faculty of Computer Science and Engineering - HCMUT Slide 19" }, { "page_index": 331, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_020.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_020.png", "page_index": 331, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:00+07:00" }, "raw_text": "Perspective Projection One-Point Perspective - One principal face parallel to projection plane - One vanishing point for cube VP 03/26/2011 Faculty of Computer r Science and Engineering - HCMUT Slide 20" }, { "page_index": 332, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_021.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_021.png", "page_index": 332, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:05+07:00" }, "raw_text": "Perspective Projection gvip_art Faculty of Computer Science and Engineering - HCMUT Slide 21" }, { "page_index": 333, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_022.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_022.png", "page_index": 333, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:11+07:00" }, "raw_text": "Perspective Projection Two-Point Perspective - On principal direction parallel to projection plane - Two vanishing points for cube Two-point perspective VP VP Faculty of Computer r Science and Engineering - HCMUT Slide 22" }, { "page_index": 334, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_023.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_023.png", "page_index": 334, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:16+07:00" }, "raw_text": "Perspective Projection Three-Point Perspective - No principal face parallel to projection plane - Three vanishing points for cube Z Faculty of Computer Science and Engineering - HCMUT Slide 23" }, { "page_index": 335, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_024.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_024.png", "page_index": 335, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:21+07:00" }, "raw_text": "Perspective Projection the same sized objects closer to the viewer (diminution) Looks realistic equal distances (nonuniform foreshortening) projection plane More difficult to construct by hand than parallel projections (but not more difficult by computer) Faculty of Computer Science and Engineering - HCMUT Slide 24" }, { "page_index": 336, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_025.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_025.png", "page_index": 336, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:25+07:00" }, "raw_text": "Computer Viewing which are implemented in the pipeline, - Positioning the camera Setting the model-view matrix - Selecting the view volume Setting the projection matrix Faculty of Computer Science and Engineering - HCMUT Slide 25" }, { "page_index": 337, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_026.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_026.png", "page_index": 337, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:31+07:00" }, "raw_text": "Computer Viewing far clip plane viewing frustum near viewpoint clip plane Faculty of Computer Science and Engineering - HCMUT Slide 26" }, { "page_index": 338, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_027.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_027.png", "page_index": 338, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:38+07:00" }, "raw_text": "Computer Viewing clip normalized window eye coordinates coordinates device coordinates coordinates VM P clip VV2...- modelview projection viewport perspective matrix matrix division matrix Model View Faculty of Computer r Science and Engineering - HCMUT Slide 27" }, { "page_index": 339, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_028.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_028.png", "page_index": 339, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:42+07:00" }, "raw_text": "Computer Viewing same - Default model-view matrix is an identity negative z direction cube with sides of length 2 centered at the origin - Default projection matrix is an identity Faculty of Computer Science and Engineering - HCMUT Slide 28" }, { "page_index": 340, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_029.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_029.png", "page_index": 340, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:50+07:00" }, "raw_text": "Computer Viewing Default projection is orthogonal y clipped out 2 Projection plane z=0 Z Faculty of Computer Science and Engineering - HCMUT Slide 29" }, { "page_index": 341, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_030.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_030.png", "page_index": 341, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:43:59+07:00" }, "raw_text": "Computer Viewing Orthographic Oblique Perspective Position, direction (V) guLookAt View Volume (P) glOrtho glFrustum or gluPerspective clip normalized window eye coordinates coordinates device coordinates coordinates VM P clip V(V2...- modelview projection perspective viewport matrix matrix division matrix Model View Faculty of Computer r Science and Engineering - HCMUT Slide 30" }, { "page_index": 342, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_031.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_031.png", "page_index": 342, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:05+07:00" }, "raw_text": "Computer Viewing Set up position & direction of camera glMatrixMode(GL_MODELVIEW) ; glLoadIdentityQ ; gluLookAt(eye.x,eye.y,eye.z,look.X,look.y,look.z, up.x,u p.y,up.z). -r r 1 Faculty of Computer Science and Engineering - HCMUT Slide 31" }, { "page_index": 343, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_032.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_032.png", "page_index": 343, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:10+07:00" }, "raw_text": "Computer Viewing Set up position & direction of camera gluLookAt(0, 0, 10, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0)) t y gluLookAt Function X Look at eye X Z Faculty of Computer Science and Engineering - HCMUT Slide 32" }, { "page_index": 344, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_033.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_033.png", "page_index": 344, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:15+07:00" }, "raw_text": "Computer Viewing Set up position & direction of camera gluLookAt(0, 0, 10, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0) gluLookAt Function X Look at eye X Z Faculty of Computer Science and Engineering - HCMUT Slide 33" }, { "page_index": 345, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_034.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_034.png", "page_index": 345, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:20+07:00" }, "raw_text": "Computer Viewing Set up position & direction of camera gluLookAt(0, 0, 10, 0.0, 0.0, 0.0, 2.0, 1.0, 0.0) t y gluLookAtFunction X Look at eye X Z Faculty of Computer Science and Engineering - HCMUT Slide 34" }, { "page_index": 346, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_035.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_035.png", "page_index": 346, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:24+07:00" }, "raw_text": "Computer Viewing Set up position & direction of camera gluLookAt(0, 0, 10, 0.0, 0.0, 0.0, -2.0, 1.0, 0.0) t y gluLookAtFunction D X Look at eye X Z Faculty of Computer Science and Engineering - HCMUT Slide 35" }, { "page_index": 347, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_036.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_036.png", "page_index": 347, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:29+07:00" }, "raw_text": "Computer Viewing Set up position & direction of camera gluLookAt(0, 0, 10, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0) t y gluLookAtFunction X Look at eye X Z Faculty of Computer Science and Engineering - HCMUT Slide 36" }, { "page_index": 348, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_037.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_037.png", "page_index": 348, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:32+07:00" }, "raw_text": "Computer Viewing Set up position & direction of camera gluLookAt(0, 10, 0, 0.0, 0.0, 0.0, 0, 0, 1) gluLookAt Function X Faculty of Computer Science and Engineering - HCMUT Slide 37" }, { "page_index": 349, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_038.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_038.png", "page_index": 349, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:36+07:00" }, "raw_text": "Computer Viewing Set up position & direction of camera gluLookAt(0, 10, 0, 0.0, 0.0, 0.0, 1, 0, 0) gluLookAt Function D X Faculty of Computer Science and Engineering - HCMUT Slide 38" }, { "page_index": 350, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_039.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_039.png", "page_index": 350, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:40+07:00" }, "raw_text": "Computer Viewing Set up position & direction of camera gluLookAt(6, 7, 8, 0.0, 0.0, 0.0, 0, 1, 0) gluLookAt Function D X Faculty of Computer Science and Engineering - HCMUT Slide 39" }, { "page_index": 351, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_040.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_040.png", "page_index": 351, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:45+07:00" }, "raw_text": "Computer Viewing X n V u z eye n z x Faculty of Computer Science and Engineering - HCMUT Slide 40" }, { "page_index": 352, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_041.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_041.png", "page_index": 352, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:48+07:00" }, "raw_text": "Computer Viewing Orthogonal projection - The default projection in the eye (camera) frame is orthogonal - For points within the default view volume yp = y Zp=0 Faculty of Computer Science and Engineering - HCMUT Slide 41" }, { "page_index": 353, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_042.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_042.png", "page_index": 353, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:54+07:00" }, "raw_text": "Computer Viewing Orthogonal projection default orthographic projection x. = x Pp= Mp Yp=y z,= 0 0 0 0 P w.= 1 0 1 0 p 0 M = 0 0 0 0 0 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 42" }, { "page_index": 354, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_043.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_043.png", "page_index": 354, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:44:59+07:00" }, "raw_text": "Computer Viewing Perspective Projection - Center of projection at the origin - Projection plane n = d, d < 0 V (x, y, z) (xp'Yp`Zp) n Faculty of Computer Science and Engineering - HCMUT Slide 43" }, { "page_index": 355, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_044.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_044.png", "page_index": 355, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:45:05+07:00" }, "raw_text": "Computer Viewing Perspective Projection - Consider top and side views (x, z) V (y, z (yp,d) 1 n=d 1 n 1 1 u n=d 1 n x y Yp = Zp = d z/ d z/d Faculty of Computer Science and Engineering - HCMUT Slide 44" }, { "page_index": 356, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_045.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_045.png", "page_index": 356, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:45:12+07:00" }, "raw_text": "Computer Viewing Perspective Projection 1 0 0 0 0 1 0 0 consider q = Mp where M = 0 0 1 0 0 0 1/ d 0 x x y y q = p = Z Z z/d 1 Faculty of Computer Science and Engineering - HCMUT Slide 45" }, { "page_index": 357, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_046.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_046.png", "page_index": 357, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:45:18+07:00" }, "raw_text": "Computer Viewing Perspective Projection - However w 1, so we must divide by w to return from homogeneous coordinates - This perspective division yields x y Xn= Zp = d z/d z/d the desired perspective equations Faculty of Computer Science and Engineering - HCMUT Slide 46" }, { "page_index": 358, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_047.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_047.png", "page_index": 358, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:45:23+07:00" }, "raw_text": "Computer Viewing clip window eye normalized coordinates coordinates device coordinates coordinates VM P clip VV2... modelview projection viewport perspective matrix matrix division matrix Faculty of Computer r Science and Engineering - HCMUT Slide 47" }, { "page_index": 359, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_048.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_048.png", "page_index": 359, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:45:27+07:00" }, "raw_text": "Computer Viewing gluLookAt(eye.X,eye.y,eye.z,look.X,look.y,look.z, up.x,u p.y,up.z); y 1 n n n x Z Faculty of Computer Science and Engineering - HCMUT Slide 48" }, { "page_index": 360, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_049.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_049.png", "page_index": 360, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:45:32+07:00" }, "raw_text": "Computer Viewing Matrix transfrom from wordld frame to camera frame - eye, look at, up Iu, v, n - n = eye - look. u = up>n n v = n>xu - u, v, n : unit vector V up up n eye eye look look u Faculty of Computer Science and Engineering - HCMUT Slide 49" }, { "page_index": 361, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_050.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_050.png", "page_index": 361, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:45:42+07:00" }, "raw_text": "Computer Viewing Matrix transfrom from world frame to camera frame CTM 1 = V.M d u u u. x 2 x (d,, d,, dz) = (-eye - u, -eye - v, -eye - n) N y V z d V V = X d. n n n, x 7 0 0 0 1 n eye 0 u 1 x V ey 0 0 eye u V V y e 0 0 eye 1 1 0 0 x Faculty of Computer Science and Engineering - HCMUT Slide 50" }, { "page_index": 362, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_051.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_051.png", "page_index": 362, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:45:50+07:00" }, "raw_text": "View Volume Orthographic Oblique Perspective Position, direction (V) guLookAt View Volume (P) glOrtho glFrustum or gluPerspective clip normalized window eye coordinates coordinates device coordinates coordinates VM P clip VV2... - modelview projection viewport perspective matrix matrix division matrix Faculty of Computer Science and Engineering - HCMUT Slide 51" }, { "page_index": 363, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_052.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_052.png", "page_index": 363, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:45:55+07:00" }, "raw_text": "View Volume Projection Matrix P x P View Volume: CCV Ortho. Projection Faculty of Computer r Science and Engineering - HCMUT Slide 52" }, { "page_index": 364, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_053.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_053.png", "page_index": 364, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:46:04+07:00" }, "raw_text": "View Volume clip eye normalized window coordinates coordinates device coordinates coordinates clip VM P VqV2... - modelview projection perspective viewport matrix matrix division matrix A' A C x P B B - Faculty of Computer Science and Engineering - HCMUT Slide 53" }, { "page_index": 365, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_054.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_054.png", "page_index": 365, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:46:09+07:00" }, "raw_text": "View Volume clip eye normalized window coordinates coordinates device coordinates coordinates VM P clip VqV2... modelview projection perspective viewport matrix matrix division matrix Perspective division: divide by w component (x,y, z,w) (x/w,y/w, z/w,1) Faculty of Computer Science and Engineering - HCMUT Slide 54" }, { "page_index": 366, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_055.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_055.png", "page_index": 366, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:46:14+07:00" }, "raw_text": "View volume Orthogonal projection - glortho(left, right,bottom, top,near,far) - near and far measured from camera right,top,-far View volume z=neor V (leff,bottom,-near n Faculty of Computer Science and Engineering - HCMUT Slide 55" }, { "page_index": 367, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_056.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_056.png", "page_index": 367, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:46:18+07:00" }, "raw_text": "Orthogonal Projection glortho(left,right,bottom, top,near,far) normalization =find transformation to convert specified clipping volume to default (right,top,-far) (1,1,-1 (left, bottom,-near -1,-1,1 Flip: -far 1; -near 1 O < near < far Faculty of Computer Science and Engineering - HCMUT Slide 56" }, { "page_index": 368, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_057.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_057.png", "page_index": 368, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:46:26+07:00" }, "raw_text": "Orthogonal Projection Two steps - Move center to origin T(-(left+right)/2, -(bottom+top)/2,(near+far)/2)) - Scale to have sides of length 2 S(2/(right-left),2/(top-bottom),2/(near-far)) 2 right + left 0 0 right - left right - left 2 top + bottom 0 0 P = ST = top - bottom top - bottom 2 far + near 0 0 near - far far - near 0 0 0 1 Faculty of Computer Science and Engineering - HCMUT Slide 57" }, { "page_index": 369, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_058.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_058.png", "page_index": 369, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:46:30+07:00" }, "raw_text": "Orthogonal Projection Set up projection matrix in the pipeline - Method 1 glMatrixMode(GL_PROJECTlON)j glLoadidentityO; gl0rtho(-1.2, 1.2, -1.2, 1.2, 0.1, 100); Faculty of Computer Science and Engineering - HCMUT Slide 58" }, { "page_index": 370, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_059.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_059.png", "page_index": 370, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:46:38+07:00" }, "raw_text": "Orthogonal Projection Set up projection matrix in the pipeline - Method 2 2 right + left 0 0 right - left right - left 2 top + bottom 0 0 top - bottom top - bottom 2 far + near 0 0 near- far far - near 0 0 0 1 float m[16] ..//Calculate m glMatrixMode(GL_PROJECTION); glLoadMatrixf(m); Faculty of Computer Science and Engineering - HCMUT Slide 59" }, { "page_index": 371, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_060.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_060.png", "page_index": 371, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:46:44+07:00" }, "raw_text": "Orthogonal Projection - Method 3 glMatrixMode(GL_PROJECTlON); glLoadidentityO; /Calculate S matrix glMultMatrixf(s) ; /Calculate T matrix glMultMatrixf(t); Faculty of Computer Science and Engineering - HCMUT Slide 60" }, { "page_index": 372, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_061.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_061.png", "page_index": 372, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:46:48+07:00" }, "raw_text": "Perspective Projection Perspective Projection - glFrustum(left, right,bottom,top,near,far) zeneor (right,topnear left,bottomnear V n Faculty of Computer Science and Engineering - HCMUT Slide 61" }, { "page_index": 373, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_062.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_062.png", "page_index": 373, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:46:54+07:00" }, "raw_text": "Perspective Projection Perspective Projection - With gIFrustum it is often difficult to get the desired view - gluPerpective(fovy, aspect, near, far) often provides a better interface W front plane aspect = w/h fov V n Faculty of Computer Science and Engineering - HCMUT Slide 62" }, { "page_index": 374, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_063.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_063.png", "page_index": 374, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:00+07:00" }, "raw_text": "Perspective Projection 2 Xnear right + left 0 0 right - left right - left 2 Xnear top + bottom 0 0 P = top - bottom top - bottom far + near 2 X far Xnear 0 0 far - near far - near 0 0 - 1 0 0 < near < far Faculty of Computer r Science and Engineering - HCMUT Slide 63" }, { "page_index": 375, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_064.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_064.png", "page_index": 375, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:05+07:00" }, "raw_text": "Oblique Projections The OpenGL projection functions cannot produce general parallel projections such as appears that the cube has been sheared Faculty of Computer Science and Engineering - HCMUT Slide 64" }, { "page_index": 376, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_065.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_065.png", "page_index": 376, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:08+07:00" }, "raw_text": "Oblique Projections H P P orth n Faculty of Computer Science and Engineering - HCMUT Slide 65" }, { "page_index": 377, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_066.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_066.png", "page_index": 377, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:14+07:00" }, "raw_text": "Oblique Projections Back clipping plane Object Front clipping plane Projection plane DOP V n 69 (z, y) u 0) top view (O,Yp)) side view n n Faculty of Computer r Science and Engineering - HCMUT Slide 66" }, { "page_index": 378, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_067.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_067.png", "page_index": 378, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:19+07:00" }, "raw_text": "Oblique Projections Shear matrix xy shear (z values unchanged) 0 1 0 cot 0 0 1 cot 0 H(0,0) = 0 0 1 0 0 0 0 1 Projection matrix P = M H(0,) orth Faculty of Computer Science and Engineering - HCMUT Slide 67" }, { "page_index": 379, "chapter_num": 7, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_068.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_7/slide_068.png", "page_index": 379, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:23+07:00" }, "raw_text": "Further Reading \"Interactive Computer Graphics: A Topdown Approach Using OpenGL\", Edward Ange/ - Chapter 5: Viewing \"D hoa máy tinh trong khng gian ba chiéu\", Tran Giang Son - Phép nhin trong khng gian ba chiéu Faculty of Computer Science and Engineering - HCMUT Slide 68" }, { "page_index": 380, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_001.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_001.png", "page_index": 380, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:26+07:00" }, "raw_text": "Hochiminh city University of Technology Faculty of Computer Science and Engineering COMPUTER GRAPHICS CHAPTER 8: d Shading Lighting and" }, { "page_index": 381, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_002.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_002.png", "page_index": 381, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:30+07:00" }, "raw_text": "OUTLINE Introduction Shading model Flat shading & smooth shading Working with material in OpenGL Faculty of Computer Science and Engineering - HCMUT Slide 2" }, { "page_index": 382, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_003.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_003.png", "page_index": 382, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:36+07:00" }, "raw_text": "Introduction Wireframe - Simple, only edges of each object are drawn - Can see through object It can be difficult to see what's what Faculty of Computer Science and Engineering - HCMUT Slide 3" }, { "page_index": 383, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_004.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_004.png", "page_index": 383, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:41+07:00" }, "raw_text": "Introduction - Only edges are drawn - The objects now look solid, and it is easy to tell where one stops and the next begins Faculty of Computer Science and Engineering - HCMUT Slide 4" }, { "page_index": 384, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_005.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_005.png", "page_index": 384, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:46+07:00" }, "raw_text": "Introduction Flat shading - A calculation of how much light is scattered from each face is computed at a single point. - All points in a face are rendered with the same gray level - Can see the Boundary between polygons Faculty of Computer Science and Engineering - HCMUT Slide 5" }, { "page_index": 385, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_006.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_006.png", "page_index": 385, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:51+07:00" }, "raw_text": "Introduction Smooth shading (Gouraud shading) levels found through an interpolation scheme - The edges of polygons disappear specular Faculty of Computer Science and Engineering - HCMUT Slide 6" }, { "page_index": 386, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_007.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_007.png", "page_index": 386, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:47:55+07:00" }, "raw_text": "Introduction Adding texture, shadow Faculty of Computer Science and Engineering - HCMUT Slide 7" }, { "page_index": 387, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_008.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_008.png", "page_index": 387, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:00+07:00" }, "raw_text": "Introduction Before Projection After Projection Physical Model Mathematical Mode Faculty of Computer Science and Engineering - HCMUT Slide 8" }, { "page_index": 388, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_009.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_009.png", "page_index": 388, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:05+07:00" }, "raw_text": "Shading model objects, and the incident light interacts with the surface in three different ways: - Some is absorbed by the surface and is convert to heat - Some is reflected from the surface - Some is transmitted into the interior of the objects, as in the case of a piece of glass. Faculty of Computer Science and Engineering - HCMUT Slide 9" }, { "page_index": 389, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_010.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_010.png", "page_index": 389, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:09+07:00" }, "raw_text": "Shading model Two types of reflection of incident light: - Diffuse: re-radiated uniformly in all directions. Interacts strongly with the surface, so it color is usually affected by the nature of material. - Specular: highly directional, incident light doesnot penetrate the object, but instead is reflected directly from its outer surface. The reflected light has the same color as incident light. Faculty of Computer Science and Engineering - HCMUT Slide 10" }, { "page_index": 390, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_011.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_011.png", "page_index": 390, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:14+07:00" }, "raw_text": "Shading model Why does the imaae of a real teapot look like different color or shade To calculate color of the object, need to consider: - Light sources - Material properties - Location of viewer - Surface orientation Faculty of Computer Science and Engineering - HCMUT Slide 11" }, { "page_index": 391, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_012.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_012.png", "page_index": 391, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:18+07:00" }, "raw_text": "Shading model Geometric ingredients for finding reflected light - The normal vector m to the surface at P - The vector v from P to the viewer's eye - The vector s from P to the light source F Faculty of Computer Science and Engineering - HCMUT Slide 12" }, { "page_index": 392, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_013.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_013.png", "page_index": 392, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:25+07:00" }, "raw_text": "Shading model - Diffuse component with an intensity denoted by I. - Scattering uniform in all directions depend only on m,s S m Ia=IsPa m - Lambert's law: Iq =IsPa max 0 sm sm - I,: intensity of light source, P : diffuse reflection coefficient a) b) S m m e S S Faculty of Computer Science and Engineering - HCMUT Slide 13" }, { "page_index": 393, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_014.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_014.png", "page_index": 393, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:28+07:00" }, "raw_text": "Shading model - diffuse reflection coefficient : 0, 0.2, 0.4, 0.6, 0.8, 1.0 Faculty of Computer r Science and Engineering - HCMUT Slide 14" }, { "page_index": 394, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_015.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_015.png", "page_index": 394, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:35+07:00" }, "raw_text": "Shading model Specular Reflection - Specular reflection causes highlights, which can add significantly to the realism of a picture when objects are shiny - The amount of light reflected is greated in the direction r. f m V r =- s + 2 =IsPs m 1 f : [1, 200] 2 sp m r v b) - m P Faculty of Computer Science and Engineering - HCMUT Slide 15" }, { "page_index": 395, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_016.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_016.png", "page_index": 395, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:41+07:00" }, "raw_text": "Shading model Specular Reflection - As f increase, the reflection becomes more mirror like and is more highly concentrated along the direction r. cos() 2 5 10 50 CL /2 Faculty of Computer Science and Engineering - HCMUT Slide 16" }, { "page_index": 396, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_017.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_017.png", "page_index": 396, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:46+07:00" }, "raw_text": "Shading model Specular Reflection - Ps from top to bottom: 0.25, 0.5, 0.75. f from left to right: 3, 6, 9,25, 200 Faculty of Computer Science and Engineering - HCMUT Slide 17" }, { "page_index": 397, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_018.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_018.png", "page_index": 397, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:51+07:00" }, "raw_text": "Shading model Specular Reflection - Reduce computation time, use halfway vector h = s + V. - Use B as the approximation of angle between r and v m P Faculty of Computer Science and Engineering - HCMUT Slide 18" }, { "page_index": 398, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_019.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_019.png", "page_index": 398, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:54+07:00" }, "raw_text": "Shading model Ambient Light Faculty of Computer Science and Engineering - HCMUT Slide 19" }, { "page_index": 399, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_020.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_020.png", "page_index": 399, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:48:59+07:00" }, "raw_text": "Shading model Ambient Light - To overcome the problem of totally dark shadows, we imagine that a uniform \"background glow\" called ambient light exist in the environment - Not situated at any particular place, and spreads in all direction uniformly coefficient. Faculty of Computer Science and Engineering - HCMUT Slide 20" }, { "page_index": 400, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_021.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_021.png", "page_index": 400, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:49:03+07:00" }, "raw_text": "Shading Model 0.9, 0.1, 0.4 0.3, 0.2, 0.5 1.0,0.3, 0.9 Faculty of Computer Science and Engineering - HCMUT Slide 21" }, { "page_index": 401, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_022.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_022.png", "page_index": 401, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:49:11+07:00" }, "raw_text": "Shading model Combining Light Contribution h .m S .m lambert =max(0, and phong =max(0. hm sm Adding color + I Xlambert+ I Xphong 0 p dr dr ar ar spr sr 1 9 Xlambert + 1 Xphong * spg sg 1 Xlambert+ I ab P + p spb Psb Xphong ab db db Faculty of Computer Science and Engineering - HCMUT Slide 22" }, { "page_index": 402, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_023.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_023.png", "page_index": 402, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:49:17+07:00" }, "raw_text": "Introduction color1 x1,y1 X1.Y1.Z1 color1 X2,Y2,Z2 x2,y2 x3,y3 X3,Y3,Z3 color2 color2 color3 color3 Before Projection After Projection Physical Model Mathematical Model Faculty of Computer r Science and Engineering - HCMUT Slide 23" }, { "page_index": 403, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_024.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_024.png", "page_index": 403, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:49:26+07:00" }, "raw_text": "Flat shading & smooth shading Painting a face - The pixels in a polygon are visited in a regular order, usually scan line by scan line from bottom to top, and across each scan line from left to right - Convex polygons can be made highly efficient, since, at each scan line, there is a single unbroken 'run\" of pixels co1or3 for (int y = ybott ; y <= ytop ; y++) { Ytop find xleft and xright; color4 y4 for (int x = xleft; x <= xright; x++) { color2 ys find the color c for this pixel; y'bott color1 put c into the pixel at (x, y); } } Xleit Xriglt Faculty of Computer Science and Engineering - HCMUT Slide 24" }, { "page_index": 404, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_025.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_025.png", "page_index": 404, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:49:34+07:00" }, "raw_text": "Flat shading & smooth shading Flat shading - Face is flat, light source are quite distant diffuse light component varies little over different points - glShadeModel(GL_FLAT)) color3 Ytop for (int y = ybott ; y <= ytop ; y++) { color4 y4 find xleft and xright; color2 ys find the color c for this scan line; Ybott color1 for (int x = xleft; x <= xright; x++){ put c into the pixel at (x, y);}} Xleft Xrigkt Faculty of Computer Science and Engineering - HCMUT Slide 25" }, { "page_index": 405, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_026.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_026.png", "page_index": 405, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:49:39+07:00" }, "raw_text": "Flat shading & smooth shading Flat Shading x3,y3 (xleft - x4)/(xleft - x1) = co1or3 (cl - color4)/(cl-color1) Jtop x4, y4 co1or4 TT4 (xright - x2)/(xright - x1) x2,y2 color2 = (cr - color2)/(cr-color1) IE T bott. x1,y1 color1 Hleft Yrigt Faculty of Computer Science and Engineering - HCMUT Slide 26" }, { "page_index": 406, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_027.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_027.png", "page_index": 406, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:49:46+07:00" }, "raw_text": "Flat shading & smooth shading Smooth shading - Gouraud shading colorleft = lerp(color,, color4, f). Y4- Ybott X- X1eft color3 Ytop color4 y4 c(x+1) =c(x) + Xright color2 X1eft ys ybott color1 for (int y = ybott ; y <= ytop ; y++){ find xleft and xright; Xleit Xriglt find colorleft and colorright, colorinc = (colorright - colorleft)/ (xright - xleft) for (int x = xleft, c = colorleft; x <= xright; x++, c += colorinc ) { put c into the pixel at (x, y);}} Faculty of Computer Science and Engineering - HCMUT Slide 27" }, { "page_index": 407, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_028.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_028.png", "page_index": 407, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:49:51+07:00" }, "raw_text": "Flat shading & smooth shading Smooth shading - Gouraud shading - glShadeModel(GL_SMOOTH) b) a m1 m2 vi CA CE c' V2 F Faculty of Computer Science and Engineering - HCMUT Slide 28" }, { "page_index": 408, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_029.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_029.png", "page_index": 408, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:49:56+07:00" }, "raw_text": "Flat shading & smooth shading Smooth shading - Gouraud shading - For polygonal models, Gouraud proposed we use the average of the normals around a mesh vertex n = (n+n,+n,+n)/n+n,+n3 n h Faculty of Computer Science and Engineering - HCMUT Slide 29" }, { "page_index": 409, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_030.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_030.png", "page_index": 409, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:02+07:00" }, "raw_text": "Flat shading & smooth shading Smooth shading - Phong shading - Slow calculation, better realism - OpenGL doesn't support Ys- y4 mieft =lerp m4,m3 y3 - Y4 m3 m2 Mlet m Mriaht y3 xm4 Ys mi y4 x x Faculty of Computer Science and Engineering - HCMUT Slide 30" }, { "page_index": 410, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_031.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_031.png", "page_index": 410, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:08+07:00" }, "raw_text": "Steps in OpenGL shading -Enable shading and select model m -Specify normal -Specify lights -Specify material properties P 1 xlambert+1 phong 0 0 g ag ag spg sg pb Psb X phong h.m s.m m lambert=max(0 and phong = max(0 sm hm 8 Faculty of Computer Science and Engineering - HCMUT Slide 31" }, { "page_index": 411, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_032.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_032.png", "page_index": 411, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:12+07:00" }, "raw_text": "Enabling Shading Shading calculations are enabled by - glEnable(GL_LIGHTING) - Once lighting is enabled, glColorO ignored Must enable each light source individually - glEnable(GL_LIGHTi) i=0,1..... Faculty of Computer Science and Engineering - HCMUT Slide 32" }, { "page_index": 412, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_033.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_033.png", "page_index": 412, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:16+07:00" }, "raw_text": "Specify normals Set by glNormal*( - gINormal3f(x, y, z); - glNormal3fv(p); cosine calculations are correct - gEnable(GL_NORMALlZE) allows for autonormalization at a performance penalty Faculty of Computer Science and Engineering - HCMUT Slide 33" }, { "page_index": 413, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_034.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_034.png", "page_index": 413, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:22+07:00" }, "raw_text": "Using Light Sources in OpenGL Creating a light Source - Position GLfloat myLightPosition ={3.0, 6.0, 5.0, 1.0}; glLightfv(GL_LIGHT0,GL_POSITION,myLightPosition); (x, y, z, 1) point light source, (x, y, z, 0)directional light source - Color GLfloatamb0[ ={0.2, 0.4, 0.6, 1.0} GLfloatdiff0[] = {0.8, 0.9, 0.5, 1.0}; GLfloatspec0 ={1.0, 0.8, 1.0, 1.0} glLightfv(GL_LIGHT0,GL_AMBlENT, amb0)) glLightfv(GL_LIGHT0,GL_DIFFUSE,diff0) glLightfv(GL_LIGHT0,GL_SPECULAR,spec0 Faculty of Computer Science and Engineering - HCMUT Slide 34" }, { "page_index": 414, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_035.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_035.png", "page_index": 414, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:30+07:00" }, "raw_text": "Using Light Sources in OpenGL Creating a light source - Color GLfloat amb0[l ={0.2, 0.4, 0.6, 1.0} GLfloat diff0[] ={0.8, 0.9, 0.5, 1.0}; GLfloat spec0[] ={1.0, 0.8, 1.0, 1.0} glLightfv(GL_LIGHT0,GL_AMBIENT, amb0); gILightfv(GL_LIGHT0,GL_DIFFUSE,diff0): gILightfv(GL_LIGHT0, GL_SPECULAR,spec0); 1 xlambert+1 phongf - 1 0 g ag ag spg sg Ig=IabPab xlambert+ - Faculty of Computer r Science and Engineering - HCMUT Slide 35" }, { "page_index": 415, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_036.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_036.png", "page_index": 415, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:35+07:00" }, "raw_text": "Using Light Sources in OpenGL Splotlights glLightf(GL_LIGHT0,GL_SPOT_CUTOFF,45.0);// angle glLightf(GL_LIGHT0,GL_SPOT_EXPONENT,4.0);// c = 4.0 GLfloat dir[] = {2.0, 1.0, -4.0}; // direction glLightfv(GL_LIGHT0,GL_SPOT_DIRECTION,dir) d Faculty of Computer Science and Engineering - HCMUT Slide 36" }, { "page_index": 416, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_037.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_037.png", "page_index": 416, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:42+07:00" }, "raw_text": "Working with material in OpenGL GLfloat myColor[] ={0.8, 0.2, 0.0, 1.0}; gIMaterialfv(GL_FRONT, GL_DIFFUSE, myColor); GL BACK GL AMBIENT GL FRONT AND BACK GL SPECULAR,GL EMISSION spr Psr phong 1. xlambert+1 phong 1 0 ag ag g spg sg spb Psb phongf Faculty of Computer Science and Engineering - HCMUT Slide 37" }, { "page_index": 417, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_038.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_038.png", "page_index": 417, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:48+07:00" }, "raw_text": "Working with material in OpenGL GLfloat ambient[] = {0.2, 0.2, 0.2, 1.0}: GLfloat diffuse[] = {1.0, 0.8, 0.0, 1.0}; GLfloat specular[] = {1.0, 1.0, 1.0, 1.0}; GLfloat shine = 100.0 gIMaterialfv(GL_FRONT, GL_AMBlENT, ambient); gIMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse), glMaterialfv(GL_FRONT, GL_SPECULAR, specular); gIMaterialf(GL_FRONT, GL_SHININESS, shine); .Ps. phong =1. phong' P 0 bo ag ag spg sg pbPsb phong Faculty of Computer Science and Engineering - HCMUT Slide 38" }, { "page_index": 418, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_039.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_039.png", "page_index": 418, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:52+07:00" }, "raw_text": "Front and Back Faces The default is shade only front faces which works correctly for convex objects sides of a surface Each side can have its own properties which are set by using GL_FRONT,GL_BACK,or GL FRONT AND BACK back faces not visible back faces visible Xem Video Clip: Chuo'ng 3 - Phän 7 Faculty of Computer Science and Engineering - HCMUT Slide 39" }, { "page_index": 419, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_040.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_040.png", "page_index": 419, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:50:57+07:00" }, "raw_text": "Front and Back Faces Specify Front Faces - glFrontFace(GL_CCW), gIFrontFace(GL_CW) Cull Face - glEnable(GL_CULL_FACE - glCullFace(GLenum mode) GL FRONT GL BACK GL ERONT AND BACK Xem Video Clip: Chu'o'ng 3 - Phan 7 Faculty of Computer Science and Engineering - HCMUT Slide 40" }, { "page_index": 420, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_041.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_041.png", "page_index": 420, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:51:03+07:00" }, "raw_text": "Computation of Vectors s and v are specified by the application Can compute r from s and m Problem is determining m determine m differs depending on underlying representation of surface OpenGL leaves determination of normal to application P Faculty of Computer Science and Engineering - HCMUT Slide 41" }, { "page_index": 421, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_042.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_042.png", "page_index": 421, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:51:10+07:00" }, "raw_text": "Computation of Vectors If the face is flat face's normal vector is vertices normal vector m = (V1 - V2) x (V3 - V4) Two problem: 1) two vector nearly parallel, 2) not all the vertices lie in the same plane N-1 m next( x i=0 - next() = (j + 1) mod N N-1 - Traversed in CCW m. i=0 - m outward N-1 i=0 Faculty of Computer Science and Engineering - HCMUT Slide 42" }, { "page_index": 422, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_043.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_043.png", "page_index": 422, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:51:17+07:00" }, "raw_text": "Computation of Vectors h A 112 n 3 4 8 2 06 no 9 7 0 15 1 x 6 V 1A 1 Faculty of Computer Science and Engineering - HCMUT Slide 43" }, { "page_index": 423, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_044.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_044.png", "page_index": 423, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:51:22+07:00" }, "raw_text": "Computation of Vectors Normal vector for a surface given parametrically 0p op n(uo,vo)= X Ou 0v u=Uo,V=Vc n(uo,vo) P(uo,vo) P(u,v) v-contoul u-contoul Faculty of Computer r Science and Engineering - HCMUT Slide 44" }, { "page_index": 424, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_045.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_045.png", "page_index": 424, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:51:27+07:00" }, "raw_text": "Computation of Vectors INormal vector for a surface given implicitly 0F OF OF n(xo,yo,z,)=VF x=Xo,y=Yo,z=Zo 0x 0z X=Xo,y=Yo,z=Zq EX: the implicit form of plane: F(x,y,z) = n. ((x,y,z) -A) = 0 or: nxx + ny+ nz -nA =0 normal is (nx, ny, n,) Faculty of Computer Science and Engineering - HCMUT Slide 45" }, { "page_index": 425, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_046.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_046.png", "page_index": 425, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:51:34+07:00" }, "raw_text": "Generic Shapes The sphere: normal (2x,2y,2z) al b) C) kinh tuyén x x x Z Z Z vi tuyén Faculty of Computer Science and Engineering - HCMUT Slide 46" }, { "page_index": 426, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_047.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_047.png", "page_index": 426, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:51:40+07:00" }, "raw_text": "Generic Shapes The sphere sin(v)) V dp/du = (-cos(v)sin(u),cos(v)cos(u), 0) V dp/dv = (-sin(v)cos(u),-sin(v)sin(u), cos(v)) V n(u,v) = (dp/du) x (dp/dv) = cos(v)p(u,v) 1 1 k a Xb =a a a X b b b x Z Faculty of Computer Science and Engineering - HCMUT Slide 47" }, { "page_index": 427, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_048.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_048.png", "page_index": 427, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:51:46+07:00" }, "raw_text": "Generic Shapes Cylinder: - Implicit form F(x,y, z) = x2 + y2 - (1 + (s - 1)z)2 0< z<1 n(x, y, z) = (x, y, -(s - 1)(1 + (s -1)z)) - Parametric form P(u, v) = ((1 + (s -1)v)cos(u), (1 + (s -1)v)sin(u), v) n(u, v) = (cos(u), sin(u), 1-s) a) b) y 1 1 (0,0,1) x x S Z Faculty of Computer Science and Engineering - HCMUT Slide 48" }, { "page_index": 428, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_049.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_049.png", "page_index": 428, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:51:50+07:00" }, "raw_text": "Generic Shape Cone Implicit: F(x,y,z) = x2 + y2 - (1 - z)2 = 0 0 < z < 1 n =(x,y,1 -z parametric P(u, v) = ((1 - v) cos(u), (1 - v)sin(u), v) n(u, v) = (cos(u), sin(u), 1) Faculty of Computer Science and Engineering - HCMUT Slide 49" }, { "page_index": 429, "chapter_num": 8, "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_050.png", "metadata": { "doc_type": "slide", "course_id": "CO3059", "source_file": "/workspace/data/converted/CO3059_Computer_Graphics/Chapter_8/slide_050.png", "page_index": 429, "language": "en", "ocr_engine": "PaddleOCR 3.2", "extractor_version": "1.0.0", "timestamp": "2025-10-31T22:51:54+07:00" }, "raw_text": "Further Reading \"Interactive Computer Graphics: A Topdown Approach Using OpenGL\", Edward Ange/ - Chapter 6: Lighting and Shading \"D hoa máy tinh trong khng gian ba chiéu\", Tran Giang Son - Chuong 3: T mau vat thé ba chiéu (3.1 3.4) Faculty of Computer Science and Engineering - HCMUT Slide 50" } ] }