GDevelopApp / GDevelop-extensions

Repository of behaviors, actions, conditions and expressions to be used in GDevelop for creating games
https://gdevelop.io
MIT License
136 stars 53 forks source link

[Read pixel] <does not work when there are 3D objects> #1164

Open VladickLimonadick opened 9 months ago

VladickLimonadick commented 9 months ago

Is there an existing issue for this?

Enter the name of the extension

Read pixel

Describe the bug of the extension

Stops working when adding 3D models or a 3D box.

Steps to reproduce

image image image

GDevelop platform

Desktop

GDevelop version

5.1.160

Platform info

*OS (e.g. Windows, Linux, macOS, Android, iOS)* > *OS Version (e.g. Windows 10, macOS 10.15)* > *Browser(For Web) (e.g. Chrome, Firefox, Safari)* > *Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)* >

Additional context

No response

Bouh commented 8 months ago

The problem is there is two canvas, one for the 2D and another for the 3D. Not sure how I can pick the color of the screen directly. Because if the 3D assets are faded out the returned color by a canvas or another can be different from the results of the two canvas.

I've understood what's causing the problem, but solving it is another matter. I'm going to look at how the 3D is added to a game, because that's what's causing the extension to bug. The extension pick one canvas but not the right one, I have to know how to pick the good one.