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\$
\$\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\$– SidarCommented 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\$– Rohit MalishCommented May 10, 2013 at 20:55
Add a comment
|
1 Answer
\$\begingroup\$
\$\endgroup\$
2
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.
-
\$\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\$– HouseCommented May 10, 2013 at 21:47