2
\$\begingroup\$

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.

\$\endgroup\$
2
  • \$\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
    Commented May 10, 2013 at 19:58
  • \$\begingroup\$ Well circles was just an example, any shape would do, as long as they have z coordinate depth. \$\endgroup\$ Commented May 10, 2013 at 20:55

1 Answer 1

0
\$\begingroup\$

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.

\$\endgroup\$
2
  • \$\begingroup\$ So they are working on 3D functionality that would work in same way as ShapeRenderer but also in 3D? \$\endgroup\$ Commented May 10, 2013 at 20:56
  • \$\begingroup\$ I don't know how they plan to make it work. You'd have to ask them. \$\endgroup\$
    – House
    Commented May 10, 2013 at 21:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .