OpenGL或OpenGL ES [英] OpenGL or OpenGL ES

查看:139
本文介绍了OpenGL或OpenGL ES的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该学什么? OpenGL 4.1或OpenGL ES 2.0?

What should I learn? OpenGL 4.1 or OpenGL ES 2.0?

我将使用Qt开发桌面应用程序,但是我也可能在几个月后开始开发移动应用程序.我对3D,3D数学等一无所知,我宁愿花100美元买一本好书,也不愿花1周的时间挖掘网站并经历反复的试验.

I will be developing desktop applications using Qt but I may start developing mobile applications in a few months, too. I don't know anything about 3D, 3D math, etc and I'd rather spend 100 bucks in a good book than 1 week digging websites and going through trial and error.

据我所知,关于OpenGL 4.1的一个问题是,据我所知,目前还没有任何书籍(最新书籍是针对OpenGL 3.3或4.0的),而有关OpenGL ES 2.0的书籍却是这样.

One problem I see with OpenGL 4.1 is as far as I know there is no book yet (the most recent ones are for OpenGL 3.3 or 4.0), while there are books on OpenGL ES 2.0.

另一方面,从我幼稚的角度来看,OpenGL 4.1看起来像是OpenGL ES 2.0 +的附加功能,因此,首先学习OpenGL ES 2.0,然后选择着色器语言,似乎更容易/更好.

On the other hand, from my naive point of view, OpenGL 4.1 seems like OpenGL ES 2.0 + additions, so it looks like it would be easier/better to first learn OpenGL ES 2.0, then go for the shader language, etc

请不要告诉我使用NeHe(通常都同意,它充满了坏/老习惯),榴莲教程等.

Please, don't tell me to use NeHe (it's generally agreed it's full of bad/old practices), the Durian tutorial, etc.

谢谢

推荐答案

是的,肯定是从OpenGL ES 2.0开始的.实际上,我会说从WebGL开始(这几乎与OpenGL ES 2.0相似).在此处上的公共Wiki是一个不错的起点. WebGL的优点是您不必处理诸如编译/链接之类的事情,并且避免了很多样板代码来设置很多东西.因此,您需要专注于实际的绘图(这确实是有趣的一点:)).如果您有一本OpenGL ES 2.0书籍,那仍然可以很好地映射到WebGL.

Yes, definitely start with OpenGL ES 2.0. In fact, I would say start with WebGL (which is almost like OpenGL ES 2.0). The public wiki over here is a good place to start. The nice thing about WebGL is that you don't have to deal with things like compiling/linking and you avoid a lot of boilerplate code to setup a lot of stuff. So you get to focus on the actual drawing (which really is the fun bit :) ). If you have an OpenGL ES 2.0 book, that should still map over well to WebGL.

此外,存储库中有很多演示,您可以立即运行它们(然后单击您浏览器的查看源代码"以直接跳入代码).从简单的图片开始,例如:图像纹理测试,彩色框,纹理框

Plus there are a lot of demos in the repository which you can run immediately (and click your browser's 'View Source' to jump right into the code). Start with the simple ones like: image-texture-test, Colored Box, Textured Box

这些示例,以及OpenGL ES 2.0书籍,应立即使您入门.玩得开心!

Those examples, together with your OpenGL ES 2.0 book, should get you started right away. Have fun!

我可能还应该指出,如果您要做决定采用OpenGL 4.1路线,则可能无需等待OpenGL 4.1书籍. OpenGL 3.3或4.0的书就可以了.

I should probably also point out that if you do decide to go the OpenGL 4.1 route, you probably don't need to wait for an OpenGL 4.1 book. An OpenGL 3.3 or 4.0 book would do just fine.

这篇关于OpenGL或OpenGL ES的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆