Is there a way to use polygons in a 2d game?

I use slick 2d game library most of the time. I know that 3d games use polygons. Is it possible to use polygons in 2d games also (to make the 2d game look 3d)? :clue: If yes then can i use slick to do that or do i have to use something else?

How is this post different than your other post?

What have you tried? What has your googling told you? What library are you using? Have you tried googling whether it’s possible to use 3D polygons in that library?

‘Polygons’ meaning varies per application. My geometry teacher used it to represent a shape that we don’t have a name for. Like triangle (3 vertices), quadrilateral (4 vertices), and line segments (2 vertices). Polygon just means “many (poly) vertices”. The main focus of any geometry is to define it somewhere as digital data (digital = numbers).

Rendering a ‘mesh’ or ‘model’ (just a collection of polygons) is as easy as reading it from a file, and drawing it using OpenGL/Java2D/DirectX, but making it so the model gets smaller the further the viewer is away from it is harder. They’re really two different concepts.

If you’re really interested in Graphics, check this book out: http://www.amazon.ca/OpenGL-SuperBible-Comprehensive-Tutorial-Reference/dp/0321902947
It is for OpenGL, but the theories and techniques apply to most graphics applications. And translating the C++ calls to Java should be fairly easy. Assuming you know the basics.