You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
will generate a red rectangle inside the 640x360 area of the grid, which is the first space of the 2x2 grid.
However, when I add that item to React Native Desktop, it will not just render in the entire screen, but render a buggy red dotted screen for which I cannot find an explanation.
See the difference here:
Pure QT example:
The same QT item but in React Native Desktop:
So the problem is: rendering is wrong, and it occupies the entire screen, when it should have a fixed size.
I created this minimum verifiable example so you can compile and see for yourself:
For the qt program, just go into the qt folder and compile there
For the react native desktop program, just go into orwellJS
The compile commands are in the readme.
Here's what happens when I try to render video instead of just a red rectangle:
The video becomes red and occupies the entire screen. I've had this problem of video becoming red in other cases, it looks like it's a problem of shaders not being used. But I don't see how this happens in React Native Desktop, as I just instantited the item.
I tried debugging with GammaRay as you can see in the image above, but I got nothing strange. I've also read the React Native Desktop source code to find how items get instantiated. I couldn't find the exact spot yet where that happens, if someone could point me out, I could try to isolate the problem better.
Anyone has any idea of what's happening?
I think the only explanation is that the instantiation of QML items happens in a very exotic way that breaks how OpenGL works, I don't know. PS: by helping me, you're helping an open source project :)
The text was updated successfully, but these errors were encountered:
I created an OpenGL renderable item to include in my React Native Desktop project. I tested it in pure QT before using it in React Native Desktop.
In the pure QT example, the renderable item behaves as it should: it renders a red screen inside the area delimited by the QML item. For example:
will generate a red rectangle inside the 640x360 area of the grid, which is the first space of the 2x2 grid.
However, when I add that item to React Native Desktop, it will not just render in the entire screen, but render a buggy red dotted screen for which I cannot find an explanation.
See the difference here:
Pure QT example:
The same QT item but in React Native Desktop:
So the problem is: rendering is wrong, and it occupies the entire screen, when it should have a fixed size.
I created this minimum verifiable example so you can compile and see for yourself:
https://github.com/lucaszanella/orwell_debug_opengl_example/tree/091b9a012b1a2be03f2a5634821704103f41f982
For the qt program, just go into the qt folder and compile there
For the react native desktop program, just go into orwellJS
The compile commands are in the readme.
Here's what happens when I try to render video instead of just a red rectangle:
The video becomes red and occupies the entire screen. I've had this problem of video becoming red in other cases, it looks like it's a problem of shaders not being used. But I don't see how this happens in React Native Desktop, as I just instantited the item.
I tried debugging with GammaRay as you can see in the image above, but I got nothing strange. I've also read the React Native Desktop source code to find how items get instantiated. I couldn't find the exact spot yet where that happens, if someone could point me out, I could try to isolate the problem better.
Anyone has any idea of what's happening?
I think the only explanation is that the instantiation of QML items happens in a very exotic way that breaks how OpenGL works, I don't know. PS: by helping me, you're helping an open source project :)
The text was updated successfully, but these errors were encountered: