周一到周五,每天一篇,北京时间早上7点准时更新 Asnoted,coordinatesmaybemovedfromspacetospacebymultiplyingtheirvectorrepresentationsbytransformationmatrices(如同提到过的那样,坐标可以通过乘以变换矩阵从一个空间转换到另一个空间).Transformationsareusedtomanipulateyourmodelandtheparticularobjectswithinit(变换主要是用来去计算特定空间中你的模型以及某些特定的物体).Thesetransformationsmoveob...

  z95bMn05dkqj   2023年11月02日   103   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 Asyouhavelearned,coordinatetransformscanberepresentedbymatrices,andtransformationofavectorfromonespacetoanotherinvolvesasimplematrix–vectormultiplicationoperation(坐标的转换可以用矩阵来表示,把一个向量从一个坐标系转换到另外一个坐标系涉及到一个矩阵乘以向量的操作).Multiplyingbyasequenceofmatricescanapplyasequenceoftransformat...

  z95bMn05dkqj   2023年11月02日   95   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 TheModel–ViewTransform(模型视口变换) InasimpleOpenGLapplication,oneofthemostcommontransformationsistotakeamodelfrommodelspacetoviewspacesoastorenderit(在OpenGL程序里,最常见的变换就是把一个模型转到视口坐标系下去,然后渲染它).Ineffect,wemovethemodelfirstintoworldspace(i.e.,placeitrelativetotheworld’sorigin)andthenf...

  z95bMn05dkqj   2023年11月02日   75   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 Theprojectiontransformationisappliedtoyourverticesafterthemodel–viewtransformation.Thisprojectionactuallydefinestheviewingvolumeandestablishesclippingplanes(投影变换发生在模型视口变换之后,这个矩阵定义了视锥体和剪裁平面们).Theclippingplanesareplaneequationsin3DspacethatOpenGLusestodeterminewhethergeometryca...

  z95bMn05dkqj   2023年11月02日   47   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 Interpolationisatermusedtodescribetheprocessoffindingvaluesthatliebetweenasetofknownpoints(插值的意思是从一群已知的点的集合中找出某一个值的过程).ConsidertheequationofthelinepassingthroughpointsAandB(想象一下一个连接A点到B点的直线):wherePisanypointonthelineandisthevectorfromAtoB(这里P表示的时候AB之间任意一点): Wecanthereforewrit...

  z95bMn05dkqj   2023年11月02日   76   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 Curves(曲线) Ifmovingeverythingalongastraightlinebetweentwopointsisallwewantedtodo,thenthiswouldbeenough.However,intherealworld,objectsmoveinsmoothcurvesandaccelerateanddeceleratesmoothly.Acurvecanberepresentedbythreeormorecontrolpoints.Formostcurves,therearemorethanthreecontro...

  z95bMn05dkqj   2023年11月02日   47   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 Asplineiseffectivelyalongcurvemadeupofseveralsmallercurves(suchasBéziers)thatlocallydefinetheirshape.Atleastthecontrolpointsrepresentingtheendsofthecurvesaresharedbetweensegments,andoftenoneormoreoftheinteriorcontrolpointsareeithersharedorlinkedinsomewaybetweenadjacentsegment...

  z95bMn05dkqj   2023年11月02日   88   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 WhatYou’llLearninThisChapter(你将会在本章学到啥) HowtocreatebuffersandtexturesthatyoucanusetostoredatathatyourprogramcanaccessHowtogetOpenGLtosupplythevaluesofyourvertexattributesautomaticallyHowtoaccesstexturesandbuffersfromyourshaders如何创建缓冲区和纹理贴图如何让OpenGL自动设置你的顶点的数据如何从shader中访问缓冲区和纹...

  z95bMn05dkqj   2023年11月02日   65   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 AfterallocatingstoragespaceforyourbufferobjectusingglBufferStorage(),onepossiblenextstepistofillthebufferwithknowndata.WhetheryouusetheinitialdataparameterofglBufferStorage(),useglBufferSubData()toputtheinitialdatainthebuffer,oruseglMapBufferRange()toobtainapointertothebuffer...

  z95bMn05dkqj   2023年11月02日   64   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 InChapter2,“OurFirstOpenGLProgram,”youwerebrieflyintroducedtothevertexarrayobject(VAO).Duringthatdiscussion,weexplainedhowtheVAOrepresentedtheinputstothevertexshader—thoughatthetime,wedidn’tuseanyrealinputstoourvertexshadersandoptedinsteadforhard-codedarraysofdata.Then,inChap...

  z95bMn05dkqj   2023年11月02日   76   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 Asyouhavelearned,youcangetOpenGLtofeeddataintoyourvertexshadersandusedatayou’veplacedinbufferobjects.Youcanalsodeclaremultipleinputstoyourvertexshaders,andassigneachoneauniquelocationthatcanbeusedtorefertoit.CombiningthesethingstogethermeansthatyoucangetOpenGLtoprovidedatatom...

  z95bMn05dkqj   2023年11月02日   45   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 从今天开始不再在这里更新,这里写文章限制真心太多了。 本日的翻译就到这里,明天见,拜拜 第一时间获取最新桥段,请关注东汉书院以及图形之心公众号 东汉书院,等你来玩哦

  z95bMn05dkqj   2023年11月02日   69   0   0
关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~