Is there any way to simply draw in 3D, just like you would draw with ShapeRenderer or SpriteBatch? All I want is to draw circles that are in x.y.z coordinates, so some circles are far away from view and some are closer. Also I would like to be able to rotate these circles.

  • \$\begingroup\$ Do you mean SPHERES or circles? They aren't the same thing. LibGDX team is working on a 3D api. Not sure how far they are with that. \$\endgroup\$ – Sidar May 10 '13 at 19:58
  • \$\begingroup\$ Well circles was just an example, any shape would do, as long as they have z coordinate depth. \$\endgroup\$ – Rohit Malish May 10 '13 at 20:55

The simple way to draw in 3D is to wait until LibGDX has implemented their 3D functionality.

Otherwise, you can simulate the effect in 2D. Basically, you change the scale of the object to represent its movement along the Z-axis. Rotating would only be with respect to the current 2D perspective.

| improve this answer | |
  • \$\begingroup\$ So they are working on 3D functionality that would work in same way as ShapeRenderer but also in 3D? \$\endgroup\$ – Rohit Malish May 10 '13 at 20:56
  • \$\begingroup\$ I don't know how they plan to make it work. You'd have to ask them. \$\endgroup\$ – MichaelHouse May 10 '13 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.