【精品】《计算机图形学》总复习(可编辑.ppt
《【精品】《计算机图形学》总复习(可编辑.ppt》由会员分享,可在线阅读,更多相关《【精品】《计算机图形学》总复习(可编辑.ppt(116页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、计算机图形学总复习Ch1.asurveyofCS2GraphicsConceptnIn narrow sensen位图(bitmap)-图像Image,n矢量图(vectorgraph)GraphicnIn general,graphics can be any object which is able to give vision impression in mans vision system.It include various geometry graphics,views,pictures,patterns,and images.3n凡是能够在人的视觉系统中形成视觉印象的客观对象都称
2、为图形图形。n(1)自然景物n(2)照片和图片n(3)工程图、设计图和方框图n(4)人工美术绘画、雕塑品n(5)用数学方法描述的图形(包括几何图形、代数方程、分析表达式或列表所确定的图形)什么是图形?4Vectorgraph and bitmap(1).vectorgraph(1).vectorgraphAny curves are approached with many short linesAny curves are approached with many short lines(2).bitmap(2).bitmapEvery curve must be consist of se
3、veral pixelsEvery curve must be consist of several pixels5Relationshipwithothersubjects数字图像数字图像Digital Images数据模型数据模型Data Models图像生成 Image Rendering(计算机图形学计算机图形学 Computer Graphics)模型/特征的提取 Model/Feature Extraction(计算机视觉计算机视觉 Computer Vision,模式识别模式识别 Pattern Recognition)模型变换 Model Transformation(计算几何
4、计算几何 Computer Geometry)图像变换 Image Transformation(图像处理图像处理 Image Processing)研究内容(学科学科)8Computer Graphics Applicationsn图形用户界面(GUI)n计算机辅助设计与制造(CAD/CAM)n娱乐游戏及计算机动画(entertainment/game/animation)n计算机艺术(computer art)n地理信息系统(GIS)n科学技术与信息可视化(Visualization)n虚拟现实(Virtual Reality)n图形用户界面(GUI)n9Research Hotspotn
5、真实感显示Realistic Displayn变形技术 Morphing Technologyn数字城市 Digital Cityn识别技术 Recognize Technologyn基于图像的建模 Image Based Modelingn自然对象的建模 Nature Objects Modelingn离散数据建模 Discrete Data Modelingn网络漫游 Web 3Dn 10CRT(CathodeRayTube)nThebeamemitselectrons(cathode).nRayintensityiscontrolledbythegrid.nThefocusforcest
6、heelectronstowardsaconvergencepath.nDeflectorsforcetheraytopointataspecificscreenpoint.nTheraystunsoverthephosphor.Phosphoremitslights.nPhosphoremissiondeclinesveryfast(refreshmentrequired)Figure2-4ElectrostaticdeflectionoftheelectronbeaminaCRT111213当前研究动态n(1)造型技术n规则形体:欧氏几何方法n不规则形体:n分形几何方法、粒子系统、纹理映射
7、n实体造型n基于物理的造型n基于图像的造型14当前研究动态n(2)真实感图形绘制技术n光照明模型n绘制算法n快速算法n基于图像的绘制n(非真实感图形绘制技术)15当前研究动态n(3)人机交互技术n(4)与计算机网络技术的紧密结合与计算机网络技术的紧密结合n远程医疗与诊断n远程导航与维修n远程教育16研究热点nModelingn ngettingmodelsfromtherealworldgettingmodelsfromtherealworldnAnimationn nphysicallybasedmodelingphysicallybasedmodelingn nmotioncapturem
8、otioncapturenRenderingn nmorerealistic:image-basedrenderingmorerealistic:image-basedrenderingn nlessrealistic:impressionist,pen&inklessrealistic:impressionist,pen&ink17Ch2.IntroductiontoOpenGL/GLUT18WhatisOpenGL?nAsoftwareinterfacetographicshardwarenGraphicsrenderingAPI(LowLevel)nHigh-qualitycolorim
9、agescomposedofgeometricandimageprimitivesnWindowsystemindependentnOperatingsystemindependent19OpenGLandGLUTnGLUT(OpenGLUtilityToolkit)nAnauxiliarylibrarynAportablewindowingAPInEasiertoshowtheoutputofyourOpenGLapplicationnNotofficiallypartofOpenGLnHandles:nWindowcreation,nOSsystemcallsnMousebuttons,m
10、ovement,keyboard,etcnCallbacks20HowtoinstallGLUT?nDownloadGLUTnhttp:/www.opengl.org/resources/libraries/glut.htmlnCopythefilestofollowingfolders:nglut.h VC/include/gl/nglut32.libVC/lib/nglut32.dllwindows/system32/nHeaderFiles:n#includen#includenIncludeglutautomaticallyincludesotherheaderfiles21Sampl
11、eProgram#include#includevoidmain(intargc,char*argv)int mode=GLUT_RGB|GLUT_DOUBLE;glutInitDisplayMode(mode);glutInitWindowSize(500,500);glutCreateWindow(“Simple”);init();glutDisplayFunc(display);glutKeyboardFunc(key);glutMainLoop();22OpenGLInitializationnSetupwhateverstateyouregoingtousenDontneedthis
12、muchdetailunlessworkingin3Dvoidinit(void)glClearColor(0.0,0.0,0.0,0.0);glViewport(0,0,width,height);glMatrixMode(GL_PROJECTION);glLoadIdentity();glOrtho(-10,10,-10,10,-10,20);glMatrixMode(GL_MODELVIEW);glLoadIdentity();glEnable(GL_LIGHT0);glEnable(GL_LIGHTING);glEnable(GL_DEPTH_TEST);23GLUTCallbackf
13、unctionsnEvent-driven:ProgramsthatusewindowsnInput/OutputnWaituntilaneventhappensandthenexecutesomepre-definedfunctionsaccordingtotheusersinputnEventskeypress,mousebuttonpressandrelease,windowresize,etc.n nYour OpenGL program will be in infinite loopYour OpenGL program will be in infinite loop24GLUT
14、CallbackFunctionsnCallbackfunction:RoutinetocallwhenaneventhappensnWindowresizeorredrawnUserinput(mouse,keyboard)nAnimation(rendermanyframes)n“Register”callbackswithGLUTnglutDisplayFunc(my_display_func);nglutIdleFunc(my_idle_func);nglutKeyboardFunc(my_key_events_func);nglutMouseFunc(my_mouse_events_
15、func);25EventQueueKeyboardMouseWindow.MainLoop()Eventqueuewindow_callback().Mouse_callback().Keypress_callback().26OpenGLGeometricPrimitivesnThegeometryisspecifiedbyvertices.nTherearetenprimitivetypes:31AnExamplevoid drawParallelogram(GLfloat color)glBegin(GL_QUADS);glColor3fv(color);glVertex2f(0.0,
16、0.0);glVertex2f(1.0,0.0);glVertex2f(1.5,1.118);glVertex2f(0.5,1.118);glEnd();32Ch3.GeometricPrimitives几何图元绘制33Whatisrastering?nTherasterdisplaytechnologyrequirestobrakedowngraphicprimitivesintopixelswithintheraster.nThisprocessiscalledrastering(栅格化栅格化).nscanconversion(扫描转换)This is usually done by th
17、e graphics hardware.However,it is useful to understand how this process works in order to be able to achieve good graphics performance.34扫描转换n将图形数字化为一组像素强度值,并存放在帧缓存中。这个数字化过程称为扫描转换(scan conversion)n n基本图元的扫描转换就是计算出落在基本图元上或充分靠近它的一串像素,并以此像素近似替代基本图元上对应位置在屏幕上显示的过程。35Line-DrawingAlgorithmsn1)DDAalgorithmn
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 精品 计算机图形学 计算机 图形学 复习 编辑
限制150内