简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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