# Hi, this is a bug? 3D Game Engine

**URL:** <https://discourse.processing.org/t/hi-this-is-a-bug-3d-game-engine/11800>\
**Category:** Development\
**Created:** [June 3, 2019, 12:15pm UTC](https://discourse.processing.org/t/hi-this-is-a-bug-3d-game-engine/11800 "2019-06-03T12:15:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![erkosone](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@erkosone](https://discourse.processing.org/u/erkosone)\
**Post date:** [June 3, 2019, 12:15pm UTC](https://discourse.processing.org/t/hi-this-is-a-bug-3d-game-engine/11800/1 "2019-06-03T12:15:46Z")

</div>

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.

Please help…

 ![Captura](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/8418098eb28730f7ef278488ce4fae06146c1272.png)

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

**BINARY** : [https://www.dropbox.com/s/dowxy4vloa0p2yh/test3D.zip?dl=0](https://www.dropbox.com/s/dowxy4vloa0p2yh/test3D.zip?dl=0)  
**Processing project** : [https://www.dropbox.com/s/xse6ll8w8lop7ta/test3D\_project.zip?dl=0](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](https://www.dropbox.com/s/7u7lnaib2epv2lp/2019-06-03%2014-18-54.flv?dl=0)

---

<div class="post-metadata">

**Author:** ![erkosone](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@erkosone](https://discourse.processing.org/u/erkosone)\
**Post date:** [June 3, 2019, 4:08pm UTC](https://discourse.processing.org/t/hi-this-is-a-bug-3d-game-engine/11800/2 "2019-06-03T16:08:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![8BitRift](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/8bitrift/32/3495_2.png) [@8BitRift](https://discourse.processing.org/u/8BitRift)\
**Post date:** [June 4, 2019, 12:01am UTC](https://discourse.processing.org/t/hi-this-is-a-bug-3d-game-engine/11800/3 "2019-06-04T00:01:20Z")

</div>

I have changed the value to negative but i don’t get that big alpha box behind the character, I cant replicate your problem.

---

<div class="post-metadata">

**Author:** ![erkosone](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@erkosone](https://discourse.processing.org/u/erkosone)\
**Post date:** [June 4, 2019, 12:57am UTC](https://discourse.processing.org/t/hi-this-is-a-bug-3d-game-engine/11800/4 "2019-06-04T00:57:25Z")

</div>

I try to compile in another machine and i get the same efect.

 ![Captura](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/6dda85b7004049c6fa7b7dd8d5fa3e16e411051f.png)

---

<div class="post-metadata">

**Author:** ![Stanlepunk](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/stanlepunk/32/11509_2.png) [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Post date:** [June 4, 2019, 12:45pm UTC](https://discourse.processing.org/t/hi-this-is-a-bug-3d-game-engine/11800/5 "2019-06-04T12:45:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![erkosone](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@erkosone](https://discourse.processing.org/u/erkosone)\
**Post date:** [June 4, 2019, 5:32pm UTC](https://discourse.processing.org/t/hi-this-is-a-bug-3d-game-engine/11800/6 "2019-06-04T17:32:11Z")

</div>

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](https://www.dropbox.com/s/pyg2025ixhlgiif/2019-06-04%2019-25-17.flv?dl=0)

---

<div class="post-metadata">

**Author:** ![erkosone](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@erkosone](https://discourse.processing.org/u/erkosone)\
**Post date:** [June 7, 2019, 2:09pm UTC](https://discourse.processing.org/t/hi-this-is-a-bug-3d-game-engine/11800/7 "2019-06-07T14:09:27Z")

</div>

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.

[![](https://img.youtube.com/vi/bZ_76gnsSOQ/maxresdefault.jpg "gameLibZero 3D concept.") ](https://www.youtube.com/watch?v=bZ_76gnsSOQ)
