Big textures does not show on Raspberri Pi
Hi, I have a device called clockWork Pi Console. And when I use a big texture, SDL3 does not fail, but does not show the texture neither.
Here is how it looks on Destop and Web:
<img width="809" height="652" alt="Image" src="https://github.com/user-attachments/assets/2bef3589-f3b7-4d1e-ae4f-08d98e9612f6" />
In web its the same:
https://weremsoft.github.io/SDL3-Test/
<img width="809" height="652" alt="Image" src="https://github.com/user-attachments/assets/a8d4f04f-9e9e-4aa4-853c-6d912924f26b" />
But when I compile and run on raspian, the scenario (that is a texture of 6400 x 3200 pixel) does not show:
<img width="960" height="1280" alt="Image" src="https://github.com/user-attachments/assets/dfd2d55e-c85f-45b9-86ec-a151fb5b2626" />
details of the texture:
<img width="605" height="542" alt="Image" src="https://github.com/user-attachments/assets/be998941-86fb-4d09-a8d9-fabf35133702" />
I'm loading the texture as follows.
` SDL_asprintf(&pngPath, "%sAssets/MapBase.png", SDL_GetBasePath());
SDL_Surface* surface = SDL_LoadPNG(pngPath);
if(surface == NULL)
{
printf("Error loading texture %s\n", SDL_GetError());
}
`
No error is shown on raspian.
On linux desktop I enabled wireframe using an openGL call, this is the game with no wireframe:
<img width="605" height="542" alt="Image" src="https://github.com/user-attachments/assets/4d0d3646-1597-4706-8231-d1b1a474f14f" />
This is the game with wireframe mode activated. Note that the big quad that is the scenario is shown(a diagonal line over the car)
<img width="605" height="542" alt="Image" src="https://github.com/user-attachments/assets/f30ef458-d801-4f53-89ec-90d79991b1e5" />
This diagonal wireframe line is not shown in Raspian:
<img width="960" height="1280" alt="Image" src="https://github.com/user-attachments/assets/33429f57-85c5-45c3-bae1-87c269aa8090" />
Is this a known issue? am I missing something basic?
Thanks
0 条评论