Skip to main content
Tweeted twitter.com/#!/StackGameDev/status/455166298738425856
Post Reopened by user1430
deleted 637 characters in body; edited title
Source Link
user1430
user1430

How much can I do with graphics using pyGame? Should I use something elseget hardware accelerated graphics and shaders in PyGame?

I'm a begginer in programming, pursing game development as a hobby. My main tools have been Python and pyGame. I have created several simple games with PyGame, but until now, I have focused on mechanics rather than graphics. The graphics in my games have been extremely rudimentary, consisting of basic shapes on black backgrounds.

I've recently decided to change that and create a 2D graphics engine supporting proper texturing, some animation, and most importantly,: lighting. While researching these, especially the last, I've started doubting whether pyGamePyGame is the right tool for this.

  Many tutorials concering implementation of lighting, shadows etc., et cetera recommend using techniques such as GPU shaders and various extensive pixel-level manipulation. 

Looking at the documentation of pyGamePyGame, I don't see anything that would let me implement such things with any degree of efficiency. I can access bitmaps directly with PixelArrayPixelArray, but doing any significant processing this way seems like it would be a performance nightmare, and something I'd rather want to be done in a native library, with GPU acceleration, not in my Python code.

So, my question is: what am I missing? Should I use some openGL binding? I know pyGame is a binding to the SDL library, does that library include some more advanced features that IHow can access "directly"? Am I completely misunderstanding how all of this works?

I'm sorry if I'm not completely clear on what I'm asking or being stupid in my explanationsget hardware accelerated graphics, but I'm operating on the edge of my understanding of what I'm doingvertex and just struggling to understand how all these things (pygame, SDL, openGL, etc.) come together.pixel shaders when making a game with PyGame?

How much can I do with graphics using pyGame? Should I use something else?

I'm a begginer in programming, pursing game development as a hobby. My main tools have been Python and pyGame. I have created several simple games, but until now, I have focused on mechanics rather than graphics. The graphics in my games have been extremely rudimentary, consisting of basic shapes on black backgrounds.

I've recently decided to change that and create a 2D graphics engine supporting proper texturing, some animation, and most importantly, lighting. While researching these, especially the last, I've started doubting whether pyGame is the right tool for this.

  Many tutorials concering implementation of lighting, shadows etc. recommend using techniques such as GPU shaders and various extensive pixel-level manipulation. Looking at the documentation of pyGame, I don't see anything that would let me implement such things with any degree of efficiency. I can access bitmaps directly with PixelArray, but doing any significant processing this way seems like it would be a performance nightmare, and something I'd rather want to be done in a native library, with GPU acceleration, not in my Python code.

So, my question is: what am I missing? Should I use some openGL binding? I know pyGame is a binding to the SDL library, does that library include some more advanced features that I can access "directly"? Am I completely misunderstanding how all of this works?

I'm sorry if I'm not completely clear on what I'm asking or being stupid in my explanations, but I'm operating on the edge of my understanding of what I'm doing and just struggling to understand how all these things (pygame, SDL, openGL, etc.) come together.

How do I get hardware accelerated graphics and shaders in PyGame?

I have created several simple games with PyGame, but until now, I have focused on mechanics rather than graphics. The graphics in my games have been extremely rudimentary, consisting of basic shapes on black backgrounds.

I've recently decided to change that and create a 2D graphics engine supporting proper texturing, some animation, and most importantly: lighting. While researching these, especially the last, I've started doubting whether PyGame is the right tool for this. Many tutorials concering implementation of lighting, shadows, et cetera recommend using techniques such as GPU shaders and pixel-level manipulation. 

Looking at the documentation of PyGame, I don't see anything that would let me implement such things with any degree of efficiency. I can access bitmaps directly with PixelArray, but doing any significant processing this way seems like it would be a performance nightmare.

How can I get hardware accelerated graphics, vertex and pixel shaders when making a game with PyGame?

Post Closed as "Not suitable for this site" by user1430
grammar
Source Link
user44535
user44535

I'm a begginer in programming, pursing game development as a hobby. My main tools have been Python and pyGame. I have created several simple games, but until now, I have focused on mechanics rather than graphics. The graphics in my games have been extremely rudimentary, consisting of basic shapes on black backgrounds.

I've recently decided to change that and create a 2D graphics engine supporting proper texturing, some animation, and most importantly, lighting. While researching these, especially the last, I've started doubting whether pyGame is the right tool for this.

Many tutorials concering implementation of lighting, shadows etc. recommend using techniques such as GPU shaders and various extensive pixel-level manipulation. Looking at the documentation of pyGame, I don't see anything that would let me implement such things with any degree of efficiency. I can access bitmaps directly with PixelArray, but doing any significant processing this way seems like it would be a performance nightmare, and something I'd rather want to be done in a native library, with GPU acceleration, not in my Python code.

So, my question is: what am I missing? Should I use some openGL binding? I know pyGame is a binding to the SDL library, does that library include some more advanced features that I can access "directly"? Am I completely misunderstandmisunderstanding how all of this works?

I'm sorry if I'm not completely clear on what I'm asking or being stupid in my explanations, but I'm operating on the edge of my understanding of what I'm doing and just struggling to understand how all these things (pygame, SDL, openGL, etc.) come together.

I'm a begginer in programming, pursing game development as a hobby. My main tools have been Python and pyGame. I have created several simple games, but until now, I have focused on mechanics rather than graphics. The graphics in my games have been extremely rudimentary, consisting of basic shapes on black backgrounds.

I've recently decided to change that and create a 2D graphics engine supporting proper texturing, some animation, and most importantly, lighting. While researching these, especially the last, I've started doubting whether pyGame is the right tool for this.

Many tutorials concering implementation of lighting, shadows etc. recommend using techniques such as GPU shaders and various extensive pixel-level manipulation. Looking at the documentation of pyGame, I don't see anything that would let me implement such things with any degree of efficiency. I can access bitmaps directly with PixelArray, but doing any significant processing this way seems like it would be a performance nightmare, and something I'd rather want to be done in a native library, with GPU acceleration, not in my Python code.

So, my question is: what am I missing? Should I use some openGL binding? I know pyGame is a binding to the SDL library, does that library include some more advanced features that I can access "directly"? Am I completely misunderstand how all of this works?

I'm sorry if I'm not completely clear on what I'm asking or being stupid in my explanations, but I'm operating on the edge of my understanding of what I'm doing and just struggling to understand how all these things (pygame, SDL, openGL, etc.) come together.

I'm a begginer in programming, pursing game development as a hobby. My main tools have been Python and pyGame. I have created several simple games, but until now, I have focused on mechanics rather than graphics. The graphics in my games have been extremely rudimentary, consisting of basic shapes on black backgrounds.

I've recently decided to change that and create a 2D graphics engine supporting proper texturing, some animation, and most importantly, lighting. While researching these, especially the last, I've started doubting whether pyGame is the right tool for this.

Many tutorials concering implementation of lighting, shadows etc. recommend using techniques such as GPU shaders and various extensive pixel-level manipulation. Looking at the documentation of pyGame, I don't see anything that would let me implement such things with any degree of efficiency. I can access bitmaps directly with PixelArray, but doing any significant processing this way seems like it would be a performance nightmare, and something I'd rather want to be done in a native library, with GPU acceleration, not in my Python code.

So, my question is: what am I missing? Should I use some openGL binding? I know pyGame is a binding to the SDL library, does that library include some more advanced features that I can access "directly"? Am I completely misunderstanding how all of this works?

I'm sorry if I'm not completely clear on what I'm asking or being stupid in my explanations, but I'm operating on the edge of my understanding of what I'm doing and just struggling to understand how all these things (pygame, SDL, openGL, etc.) come together.

Source Link
user44535
user44535

How much can I do with graphics using pyGame? Should I use something else?

I'm a begginer in programming, pursing game development as a hobby. My main tools have been Python and pyGame. I have created several simple games, but until now, I have focused on mechanics rather than graphics. The graphics in my games have been extremely rudimentary, consisting of basic shapes on black backgrounds.

I've recently decided to change that and create a 2D graphics engine supporting proper texturing, some animation, and most importantly, lighting. While researching these, especially the last, I've started doubting whether pyGame is the right tool for this.

Many tutorials concering implementation of lighting, shadows etc. recommend using techniques such as GPU shaders and various extensive pixel-level manipulation. Looking at the documentation of pyGame, I don't see anything that would let me implement such things with any degree of efficiency. I can access bitmaps directly with PixelArray, but doing any significant processing this way seems like it would be a performance nightmare, and something I'd rather want to be done in a native library, with GPU acceleration, not in my Python code.

So, my question is: what am I missing? Should I use some openGL binding? I know pyGame is a binding to the SDL library, does that library include some more advanced features that I can access "directly"? Am I completely misunderstand how all of this works?

I'm sorry if I'm not completely clear on what I'm asking or being stupid in my explanations, but I'm operating on the edge of my understanding of what I'm doing and just struggling to understand how all these things (pygame, SDL, openGL, etc.) come together.