简体   繁体   English

如何旋转标签以及使用openGl和android创建的3d立方体。

[英]How to rotate labels along with 3d cube created using openGl and android.

How to rotate labels along with 3 dimension cube created using openGl and android. 如何旋转标签以及使用openGl和android创建的3维立方体。

I have created labels by hardcoding into the activity itself. 我通过对活动本身进行硬编码来创建标签。

One way would be to make images of the labels. 一种方法是制作标签的图像。 Then load those images as textures, applied to sign objects added to the model. 然后将这些图像作为纹理加载,应用于添加到模型的符号对象。 The sign objects could be simple rectangles made of two triangles from four points. 符号对象可以是由四个点组成的两个三角形组成的简单矩形。 If the same transformations applied to the cube are applied to the signs, the labels will move with the cube. 如果将应用于多维数据集的相同转换应用于符号,则标签将随多维数据集一起移动。 Alternatively you could use the billboarding technique to keep the labels facing the camera. 或者,您可以使用广告牌技术使标签保持朝向相机。

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

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