Python API of the Blender Game Engine
Details
Jul 11 2021
@Eric (emeforward) I am not sure, if this has to do with this commit here (I didn't have a look, whether it is still in the master branch or not), but the following example I just posted on stackexchange gives you a fast mechanism to copy pixel data from an image data block to a numpy array (~12 ms for a 4k image):
Apr 30 2021
Mar 19 2020
Jumping in on a very old report -- the latest comment was that this change has been added to master, but that does not appear to be the case (or perhaps it was removed later?). I am looking to allow this functionality, so wanted to check if there is some history that one of the maintainers remembers. The end goal is to retrieve rendered frames to send them via a socket.
Dec 29 2019
BGE was removed in Blender 2.80 this patch is being closed as a result.
Jun 29 2019
This task is being closed because the BGE has been removed in Blender 2.8.
This task is being closed because the BGE has been removed in Blender 2.8.
This task is being closed because the BGE has been removed in Blender 2.8.
This task is being closed because the BGE has been removed in Blender 2.8.
This task is being closed because the BGE has been removed in Blender 2.8.
This task is being closed because the BGE has been removed in Blender 2.8.
This task is being closed because the BGE has been removed in Blender 2.8.
Apr 13 2019
Nov 10 2018
Hello! Please help me to make 3d models in correct way with only one rendered detail and all other should not be rendered achiving millions of details!!! I will make 3d model of big school for example from only 15 simple details... I have to use Geometry shader for this... But I do not know from what to start please help me and explane in simple cube example. Thank You! (I work already 8 years in 3d only do 3d models... But need to redo them with Geometry Shader) Please help... I do not see answers in internet for this modelling my email 3dkoktebel@gmail.com Will wait from You help for future work! Thanks a lot!
Sep 30 2018
Sep 29 2018
Feb 27 2018
Feb 10 2018
Feb 9 2018
Dec 20 2017
Already in master
Dec 18 2017
Nov 3 2017
Nov 1 2017
Sep 22 2017
- flags are not really being used;
Sep 21 2017
- Missed MEM_freeN(strides) if there is an error in PyBuffer_FillInfo;
Strides are needed when working with multidimensional array.
Sep 20 2017
@Campbell Barton (campbellbarton), could you take a look, too? It seems like you know the subject well (T52827)
Hello, I tested with most of my files using bgl and it worked fine for me. I had only 1 file to test with bge.texture and bgl however. But this sounds ok to me.
I undo some of my changes. It may be best to leave the original Buffer structure untouched.
I added Tristan Porteries (panzergame), Ulysse Martin (youle) from the UPBGE team. I think the have more experience in this kind of things.
It really makes sense bgl.Buffer to have a Buffer Protocol.
I made some changes to the code.
Jul 26 2017
Jul 25 2017
Jul 5 2017
Actually I don't have tested it, I also don't have experience with the buffer protocol and if there are no other issues with it.
Did you have tested the buffer also with some of the other bgl function calls like glTexImage2D()?
Does slicing the buffer still work?
Jul 3 2017
Apr 7 2017
Resigning as reviewer, as I don't have time for BGE work any more.
Mar 7 2017
Thanks very much @Ray molenkamp (LazyDodo) :)