简体   繁体   English

使用OpenGl进行3D动画

[英]3D animation with OpenGl

I have these two images this 我有这两个图像 在此处输入图片说明

and this 和这个 在此处输入图片说明

With OpenGl I want to be a result as following 使用OpenGl,我希望得到如下结果 在此处输入图片说明

How can I do that with Blackberry or Android Thanks a lot 如何使用Blackberry或Android做到这一点非常感谢

Reflections are typically done using a stencil buffer. 反射通常使用模板缓冲区来完成。 Here is a tutorial on how the technique works. 是有关该技术如何工作的教程。 You won't be able to use the code though, as it is written for a deprecated version of OpenGL which doesn't match OpenGLES, so you'll need to write your own rendering code. 但是,您将无法使用该代码,因为它是针对不兼容OpenGLES的不推荐使用的OpenGL版本编写的,因此您需要编写自己的渲染代码。 Google provides a basic tutorial on how to use OpenGL ES, here . Google在此处提供了有关如何使用OpenGL ES的基本教程。

If you like there is a library that might help you, its called min3d 如果您喜欢一个可以帮助您的库,它称为min3d

http://code.google.com/p/min3d/ http://code.google.com/p/min3d/

its very handy, has a lot of examples, and saves a lot of work 它非常方便,有很多示例,并且节省了大量工作

If you are actually looking for a 3D engine, jMonkeyEngine is a scene graph based OpenGL engine with powerful features and good community support. 如果您实际上正在寻找3D引擎,则jMonkeyEngine是基于场景图的OpenGL引擎,具有强大的功能和良好的社区支持。 It is platform independent and also supports Android >=2.2 它独立于平台,还支持Android> = 2.2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM