简体   繁体   English

Android中使用OpenGL ES的3D点图

[英]3D point drawing in Android using OpenGL ES

I am new to Android and OpenGL both. 我是Android和OpenGL的新手。 I want to draw a series of 3D given points in android with open GL where last point should blink. 我想在Android中使用开放GL绘制一系列3D给定点,其中最后一点应该闪烁。 I have drawn square, pyramid and triangle but still not able to draw above-mentioned thing. 我已经绘制了正方形,金字塔和三角形,但仍然无法绘制上述内容。 Easy method will be appreciated. 简单的方法将不胜感激。

You can draw points by using GL_POINTS mode if you're running OpenGL ES 1.0 or 1.1 , with 2.0+ you need to perform some trickery in order to draw points 如果您运行的是OpenGL ES 1.01.1 ,则可以使用GL_POINTS模式绘制点, 对于2.0+ ,则需要执行一些技巧才能绘制点

Apparantly 2.0 supports point sprites too(see comments below), so the simplest answer is to use point sprites 大约2.0也支持点精灵(请参阅下面的注释),因此最简单的答案是使用点精灵

You can either draw circles formed from triangles or quads that are textured with circles 您可以绘制由三角形构成的圆带有圆形纹理的四边形

Drawing points doesn't differiate in any way from drawing any other shapes , you should just use different drawing mode assuming you're using fixed pipeline, or draw points by drawing cirlces or textured quads 绘制点与绘制任何其他形状没有任何区别,您应该使用不同的绘制模式, 前提是您使用的是固定管线,或者通过绘制圆弧或纹理四边形来绘制点

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

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