Is it possible to create 3d games with pygame?

2

Is it possible? And if it is possible do I need to know how to draw my own 3D images or is there a site that offers free 3D images?

    
asked by anonymous 25.10.2017 / 13:53

1 answer

3

The module pygame of Python is based on libsdl . Known as Simple DirectMedia Layer or SDL .

SDL is not a 3D graphics library. According to the information contained in the official page :

  

SDL is a cross-platform multimedia library designed to provide low-level access to audio, keyboard, mouse, joystick, and   to graphics hardware via OpenGL and Direct3D.

This " Accessing graphics hardware via OpenGL and Direct3D " means that SDL contains some auxiliary functions to facilitate cross-platform use of OpenGL, but you will still need to implement a engine ) for raw OpenGL, capable of converting 2D to 3D and vice versa .

If you want a more specific approach to 3D, maybe engines 3D, such as Ogre or Irrlicht , which use OpenGL (or Direct3D on Windows) and provide model-oriented APIs 3D graphics.

    
25.10.2017 / 18:17