周一到周五,每天一篇,北京时间早上7点准时更新,中英文对照,一边学编程一边弹吉他,做一个奇葩码农! 请不要怀疑翻译是否有问题,我们的翻译工程师是蓝翔毕业的呢! WhatYou’llLearninThisChapter(你将会学到啥) WhatthegraphicspipelineisandhowOpenGLrelatestoit(什么是图形管线以及OpenGL与它之间的关系) TheoriginsofOpenGLandhowitcametobethewaythatitistoday(OpenGL的起源以及它是怎么发展到现在这个样子的) Someofthefundamentalconcepts...

  z95bMn05dkqj   2023年11月02日   83   0   0

周一到周五,每天一篇,北京时间早上7点准时更新,中英文对照,一边学编程一边弹吉他,做一个奇葩码农! 请不要怀疑翻译是否有问题,我们的翻译工程师是蓝翔毕业的呢! TheOriginsandEvolutionofOpenGL(OpenGL的起源与发展) OpenGLhasitsoriginsatSiliconGraphicsInc.(SGI)anditsIRISGL(OpenGL起源于硅谷图形信息有限公司和该公司的IRISGL).GLstoodfor(andstillstandsfor)“graphicslibrary,”(GL是图形库的英文缩写)andinmuchofthemodernOpenG...

  z95bMn05dkqj   2023年11月02日   50   0   0

Asdiscussed,themodelfollowedbyOpenGListhatofaproductionline,orpipeline.Dataflowwithinthismodelisgenerallyoneway,withdataformedfromcommandscalledbyyourprogramsenteringthefrontofthepipelineandflowingfromstagetostageuntilitreachestheendofthepipeline(就想之前提到过得那些OpenGL的模型,它就像是流水线作业一样,数据在这个模型里从你的应用程序流进了流水线...

  z95bMn05dkqj   2023年11月02日   50   0   0

周一到周五,每天一篇,北京时间早上7点准时更新,中英文对照,一边学编程一边弹吉他,做一个奇葩码农! 请不要怀疑翻译是否有问题,我们的翻译工程师是蓝翔毕业的呢! 对于书本内容,我们不做任何优化,任何新手无法实现课程效果或者看起来有困难,请吐槽原书作者!WhatYou’llLearninThisChapter(你将会学到啥) Howtocreateandcompileshadercode(如何创建和编译shader代码)HowtodrawwithOpenGL(如何使用OpenGL画画)Howtousethebook’sapplicationframeworktoinitializeyourprog...

  z95bMn05dkqj   2023年11月02日   74   0   0

周一到周五,每天一篇,北京时间早上7点准时更新,中英文对照,一边学编程一边弹吉他,做一个奇葩码农! 请不要怀疑翻译是否有问题,我们的翻译工程师是蓝翔毕业的呢! Drawingasinglepointisnotreallythatimpressive(evenifitisreallybig!)(画个点还不是那么杀改(过瘾的意思,湘西土家族方言))—wealreadymentionedthatOpenGLsupportsmanydifferentprimitivetypes(俺们也说过了,OpenGL支持很多类型的图元),andthatthemostimportantarepoints,lines...

  z95bMn05dkqj   2023年11月02日   56   0   0

周一到周五,每天一篇,北京时间早上7点准时更新,中英文对照,一边学编程一边弹吉他,做一个奇葩码农! 请不要怀疑翻译是否有问题,我们的翻译工程师是蓝翔毕业的呢! WhatYou’llLearninThisChapter(你将会学到啥) WhateachofthestagesintheOpenGLpipelinedoes(渲染管线的每个阶段都干了什么)Howtoconnectyourshaderstothefixed-functionpipelinestages(如何把你的shader与硬件中那些固定的功能进行拼接,凑成完整的渲染管线)Howtocreateaprogramthatusesever...

  z95bMn05dkqj   2023年11月02日   64   0   0

Sofar,youhaveseenhowtopassdataintoavertexshaderbycreatingavertexattributeusingtheinkeyword(到现在为止,你已经看到了如何通过vertexattribute给vertexshader传递数据了),howtocommunicatewithfixed-functionblocksbyreadingandwritingbuilt-invariablessuchasgl_VertexIDandgl_Position,(如何利用固定功能通过读写内置的诸如gl_VertexID和gl_Position进行通信呢?)an...

  z95bMn05dkqj   2023年11月02日   104   0   0

Tessellationistheprocessofbreakingahigh-orderprimitive(whichisknownasapatchinOpenGL)intomanysmaller(Tessellation就是把很多高阶的图元变成很多小图元的过程),simplerprimitivessuchastrianglesforrendering(比如说三角形这种简单的图元).OpenGLincludesafixed-function,configurabletessellationenginethatisabletobreakupquadrilaterals,triangles,an...

  z95bMn05dkqj   2023年11月02日   93   0   0

周一到周五,每天一篇,北京时间早上7点准时更新,中英文对照,一边学编程一边弹吉他,做一个奇葩码农! 请不要怀疑翻译是否有问题,我们的翻译工程师是蓝翔毕业的呢! Thegeometryshaderislogicallythelastshaderstageinthefrontend(逻辑上来说,geometryshader是整个渲染管线的最后一个shader阶段),sittingafterthevertexandtessellationstagesandbeforetherasterizer(在vertex和tessellation之后,光栅化之前).Thegeometryshaderrunson...

  z95bMn05dkqj   2023年11月02日   85   0   0

周一到周五,每天一篇,北京时间早上7点准时更新,中英文对照,一边学编程一边弹吉他,做一个奇葩码农! Afterthefrontendofthepipelinehasrun(whichincludesvertexshading,tessellation,andgeometryshading)(当前面提到的那些渲染管线阶段执行完毕后),afixed-functionpartofthepipelineperformsaseriesoftasksthattakethevertexrepresentationofoursceneandconvertitintoaseriesofpixels(渲染管线固定...

  z95bMn05dkqj   2023年11月02日   86   0   0

周一到周五,每天一篇,北京时间早上7点准时更新,中英文对照,一边学编程一边弹吉他,做一个奇葩码农! ThefragmentshaderisthelastprogrammablestageinOpenGL’sgraphicspipeline(像素着色是可编程管线的最后一个阶段).Thisstageisresponsiblefordeterminingthecolorofeachfragmentbeforeitissenttotheframebufferforpossiblecompositionintothewindow(这个阶段将决定给像素涂上什么颜色).Aftertherasterizerp...

  z95bMn05dkqj   2023年11月02日   54   0   0

周一到周五,每天一篇,北京时间早上7点准时更新,中英文对照,一边学编程一边弹吉他,做一个奇葩码农! TheframebufferisthelaststageoftheOpenGLgraphicspipeline(帧缓冲区是OpenGL图形管线的最后一个阶段).Itcanrepresentthevisiblecontentofthescreenandanumberofadditionalregionsofmemorythatareusedtostoreper-pixelvaluesotherthancolor(它可以表示屏幕可见区域的部分自己一些存储里与这些像素有关的其他非颜色信息的内存块).O...

  z95bMn05dkqj   2023年11月02日   130   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 ThefirstsectionsofthischapterdescribethegraphicspipelineinOpenGL(本章的第一个部分描述了OpenGL的图形管线).However,OpenGLalsoincludesthecomputeshaderstage(OpenGL同样包含ComputeShader的阶段),whichcanalmostbethoughtofasaseparatepipelinethatrunsindepdendentlyoftheothergraphics-orientedstages(这个阶段独立的运行,不...

  z95bMn05dkqj   2023年11月02日   109   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 AlloftheexamplesshowninthisbooksofarhavereliedonthecorefunctionalityofOpenGL(到目前为止的案例都是基于OpenGL的核心标准的).However,oneofOpenGL’sgreateststrengthsisthatitcanbeextendedandenhancedbyhardwaremanufacturers,operatingsystemvendors,andevenpublishersoftoolsanddebuggers(然而还有一些扩展的API是某部分厂商的...

  z95bMn05dkqj   2023年11月02日   99   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 WhatYou’llLearninThisChapter(本章你将会学到啥) Whatavectoris,andwhyyoushouldcareaboutthem(什么是向量以及为什么你需要注意他们)Whatamatrixis,andwhyyoushouldcaremoreaboutthem(什么是矩阵以及为什么你需要更注意它们)Howweusematricesandvectorstomovegeometryaround(我们如何使用矩阵和向量来移动几何物体)WhattheOpenGLconventionsandcoordinatespacesa...

  z95bMn05dkqj   2023年11月02日   71   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 First,wedonotpretendherethatwewillcovereverythingthatisimportantforyoutoknow(首先,我们不会在这里去涵盖所有对你来说很重要的东西).Infact,wewillnoteventrytocovereverythingyoushouldknow(实际上,我们甚至都不会涵盖你应该知道的东西).Inthischapter,wearejustgoingtocoverwhatyoureallyneedtoknow(在本章节,我们只是介绍一下那些你必须知道的东西).Ifyou’realr...

  z95bMn05dkqj   2023年11月02日   92   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 Vectorsbehaveasyouwouldexpectforoperationssuchasaddition,subtraction,unarynegation,andsoon(向量们经常需要进行加减乘除这样的操作).Theseoperatorsperformaper-componentcalculationandresultinavectorofthesamesizeastheirinputs(这些操作得到的结果依然是一个同样维度的向量).Thevmathvectorclassesoverridetheaddition,subtractio...

  z95bMn05dkqj   2023年11月02日   117   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 ThematrixisnotjustaHollywoodmovietrilogy,butanexceptionallypowerfulmathematicaltoolthatgreatlysimplifiestheprocessofsolvingoneormoreequationswithvariablesthathavecomplexrelationshipswithoneanother(矩阵不像东汉书院那样,是个花花肠子,天天想着多圈点粉丝,完了还想兜售课程,还想推广他们自家的引擎,简直是不怀好意,矩阵它能够让空间位置关系方面的表达得到简化,...

  z95bMn05dkqj   2023年11月02日   97   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 OpenGLrepresentsa4×4matrixnotasatwo-dimensionalarrayoffloatingvalues,butratherasasinglearrayof16floating-pointvalues(OpenGL中用16个浮点数来表示矩阵,而不是用二维浮点数数组).Bydefault,OpenGLusesacolumnmajororcolumn-primarylayoutformatrices(默认情况下,OpenGL使用的是列序的矩阵).Thatis,fora4×4matrix,thefirstfourelem...

  z95bMn05dkqj   2023年11月02日   52   0   0

周一到周五,每天一篇,北京时间早上7点准时更新 Ifyouthinkaboutit,most3Dgraphicsaren’treally3D(用肾想象一下都知道,实际上3D图像并不是真3D).Weuse3Dconceptsandterminologytodescribewhatsomethinglookslike;thenthis3Ddatais“squished”ontoa2Dcomputerscreen(我们使用3D的概念和技术来描述事物看起来如何,然后俺们就把这样的3D数据给"干"到了2D显示器上).Wecalltheprocessofsquishing3Ddatadowninto2Dd...

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

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~