Hello community, I am developing a game engine with processing, what a good idea! There is no complete one so far!
The problem starts when using a buffer with createGraphics () called “blitter”.
Transparencies are not displayed correctly.
I’m desperate because I do not know what to do to fix it …
The alpha_channel of the texture used in a cube adopts the color of the background and it is impossible to place translucent objects or simple 3d sprites
In the example I attached simply change the value of the variable “priority” to negative to paint the cube first with the key and then everything else.
I share the binary project to test directly and the project for processing.
Needs minimal and physical library;)
Thank you very much in advance for the help if someone can help me
Processing project: https://www.dropbox.com/s/xse6ll8w8lop7ta/test3D_project.zip?dl=0
VIDEO TO VIEW THE PROBLEM: https://www.dropbox.com/s/7u7lnaib2epv2lp/2019-06-03%2014-18-54.flv?dl=0
I have been testing thoroughly with a pgraphics object and without it and the result is the same, it seems there is a bug in the alpha_channel of the textures in P3D?
I have changed the value to negative but i don’t get that big alpha box behind the character, I cant replicate your problem.
I try to compile in another machine and i get the same efect.
Are you try to reproduce the bug on a tiny sketch? It’s easy way to isolate a bug and after know if it’s from Processing or from your code. Often it’s a long way, but it’s a better way. It’s to hard to find a bug on a big code.
For the helper it’s too hard to work on your code, too big, plus there is dependancy for example I don’t have the library Fisica.
Finally i work with models and without sprites… sprites are bugged in P3D.
But no problem for me. Simple models works fine with the same thing.
VIEW RESULT: https://www.dropbox.com/s/pyg2025ixhlgiif/2019-06-04%2019-25-17.flv?dl=0
Good afternoon! I leave you a video of how the gameLibZero looks for Processing 3.x after a lot of work and of not using textures for the aforementioned bug, which I have not been able to save, but really with 3d models without any need.