Python – Computer Graphics: Principles and Practice in C ( in Python? )

graphicspython

I am attending a Computer graphics course after the summer. I have read lots of good things about the book "Computer Graphics: Principles and Practice in C" for people who are willing to put in some work. My school does not focus on C/C++ until next year, so I have decided to learn Python this summer and get good at Python this following year.

How language dependent is this book? Can I work through it in Python?

Best Answer

Python is a great language, but Computer Graphics are heavy and need performance. Because of this, commonly people use C or C++ in games. At most, C# and Java. XNA, for example, is a framework for C# that allows the user to make 3D games, but internally it has a lot of code written in C++.

Python is reserved for scripts, but the core engines are commonly made in C or C++. Panda 3D, for example, allows you to make games in Python. But internally, it uses C++.

But you CAN make basic Computer Graphics with Python, if it's for learning purposes. There is a Python binding to OpenGL. If the book uses OpenGL for making the graphics, you can use Python without a lot of effort.

But I think it's worth to learn C or C++ and learn how computer graphics works, given everything I explained.