supertuxkart / stk-code

The code base of supertuxkart
Other
4.46k stars 1.05k forks source link

Kart textures not display on RaspberryPi 4 with Buster #4334

Open EnsignRutherford opened 4 years ago

EnsignRutherford commented 4 years ago

Description When is set to false, the kart textures are not visible. The wheels of the karts are visible during the selection screen and during gameplay but the karts and characters are not shown.

Steps to reproduce

With set to "false" the karts do not show during the menu selection or during the game. RaspberryPi4 has this in /boot/config.txt:

Enable DRM VC4 V3D driver on top of the dispmanx display stack

dtoverlay=vc4-fkms-v3d

Configuration

STK release version: 1.1

STK Source: https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/1.1/

System: RaspberryPi 4 4GB version

Graphics card: Broadcom VideoCore VI

CPU: Broadcom BCM2711B0

Gamepads/keyboards models if related to the issue: Logitech F710

Additional information

stdout.log:

[info ] [FileManager]: Data files will be fetched from: '/opt/retropie/ports/supertuxkart/data/' [info ] [FileManager]: User directory is '/home/pi/.config/supertuxkart/config-0.10/'. [info ] [FileManager]: Addons files will be stored in '/home/pi/.local/share/supertuxkart/addons/'. [info ] [FileManager]: Screenshots will be stored in '/home/pi/.local/share/supertuxkart/screenshots/'. [info ] [FileManager]: User-defined grand prix will be stored in '/home/pi/.local/share/supertuxkart/grandprix/'. [info ] [FileManager]: Asset 0 will be loaded from '/opt/retropie/ports/supertuxkart/data/challenges/'. [info ] [FileManager]: Asset 1 will be loaded from '/opt/retropie/ports/supertuxkart/data/gfx/'. [info ] [FileManager]: Asset 2 will be loaded from '/opt/retropie/ports/supertuxkart/data/grandprix/'. [info ] [FileManager]: Asset 3 will be loaded from '/opt/retropie/ports/supertuxkart/data/gui/icons/'. [info ] [FileManager]: Asset 4 will be loaded from '/opt/retropie/ports/supertuxkart/data/gui/screens/'. [info ] [FileManager]: Asset 5 will be loaded from '/opt/retropie/ports/supertuxkart/data/gui/dialogs/'. [info ] [FileManager]: Asset 6 will be loaded from '/opt/retropie/ports/supertuxkart/data/replay/'. [info ] [FileManager]: Asset 7 will be loaded from '/opt/retropie/ports/supertuxkart/data/shaders/'. [info ] [FileManager]: Asset 8 will be loaded from '/opt/retropie/ports/supertuxkart/data/skins/'. [info ] [FileManager]: Asset 9 will be loaded from '/opt/retropie/ports/supertuxkart/data/ttf/'. [info ] [FileManager]: Asset 10 will be loaded from '/opt/retropie/ports/supertuxkart/data/po/'. [info ] [FileManager]: Asset 11 will be loaded from '/opt/retropie/ports/supertuxkart/data/library/'. [info ] [FileManager]: Asset 12 will be loaded from '/opt/retropie/ports/supertuxkart/data/models/'. [info ] [FileManager]: Asset 13 will be loaded from '/opt/retropie/ports/supertuxkart/data/music/'. [info ] [FileManager]: Asset 14 will be loaded from '/opt/retropie/ports/supertuxkart/data/sfx/'. [info ] [FileManager]: Asset 15 will be loaded from '/opt/retropie/ports/supertuxkart/data/textures/'. [info ] [FileManager]: Asset 16 will be loaded from '/opt/retropie/ports/supertuxkart/data/tracks/'. [verbose ] translation: Env var LANGUAGE = 'en_US.UTF-8'. [verbose ] translation: Language 'English (United States)'. [info ] tinygettext: Adding language fallback en

[info ] IrrDriver: OpenGL version: 3.1 [info ] IrrDriver: OpenGL vendor: Broadcom [info ] IrrDriver: OpenGL renderer: V3D 4.2 [info ] IrrDriver: OpenGL version string: OpenGL ES 3.1 Mesa 19.3.2 [warn ] Graphics: '' did not contain graphical-restrictions tag [info ] GLDriver: EXT texture format BGRA8888 Present [info ] GLDriver: EXT Color Buffer Float Present [warn ] irr_driver: Using the fixed pipeline (old GPU, or shaders disabled in options) [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/saved-session/ [info ] HTTPRequest: Downloading https://online.supertuxkart.net/dl/xml/online_news.xml [info ] addons: Using cached addons.xml. [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] HTTPRequest: Downloading [info ] GrandPrixManager: Loading Grand Prix files from /opt/retropie/ports/supertuxkart/data/grandprix/ [info ] GrandPrixManager: Loading Grand Prix files from /home/pi/.local/share/supertuxkart/grandprix/ [warn ] OpenGL: OpenGL version is too old! [info ] Achievements: Synching achievement 2,7,9 to server. [info ] HTTPRequest: Sending userid=241372&token=****&achievementid=2%2C7%2C9 to https://online.supertuxkart.net/api/v2/user/achieving/ [info ] HTTPRequest: Sending userid=241372&token=****&visitingid=241372 to https://online.supertuxkart.net/api/v2/user/get-friends-list/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] LayoutManager: Statically sized widgets took all the place!! [warn ] AbstractTopLevelContainer::addWidgetsRecursively: Widget target-type-spinner of type 1 has no dimensions [warn ] AbstractTopLevelContainer::addWidgetsRecursively: Widget target-type-text of type 5 has no dimensions [warn ] AbstractTopLevelContainer::addWidgetsRecursively: Widget ai-blue-spinner of type 1 has no dimensions [warn ] AbstractTopLevelContainer::addWidgetsRecursively: Widget ai-blue-text of type 5 has no dimensions [verbose ] RaceManager: Nb of karts=8, ghost karts:0 ai:7 players:1

[info ] Track: Overall scene complexity estimated at 422 [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/poll/ [info ] Singleton: Destroyed singleton. [info ] Singleton: Destroyed singleton. [info ] Singleton: Destroyed singleton. [info ] HTTPRequest: Sending userid=241372&token=**** to https://online.supertuxkart.net/api/v2/user/client-quit/ [info ] Singleton: Destroyed singleton.

input.xml: None Error message: None

Benau commented 4 years ago

maybe it will work better with vulkan and we will dump Antarctica anyway

not sure in the future rpi4 will have vulkan driver

EnsignRutherford commented 4 years ago

When is set to true it works great. I also changed to false so the user experience isn't interrupted by that. With that configuration it works great!

And it looks like the Vulkan driver is coming: https://www.raspberrypi.org/blog/vulkan-update-now-with-added-source-code/

Benau commented 2 years ago

Try update to latest mesa, or

    mat4 joint_matrix =
        i_weight[0] * mat4(
        texelFetch(skinning_tex, ivec2(0, clamp(i_joint[0] + skinning_offset, 0, MAX_BONES)), 0),
        texelFetch(skinning_tex, ivec2(1, clamp(i_joint[0] + skinning_offset, 0, MAX_BONES)), 0),
        texelFetch(skinning_tex, ivec2(2, clamp(i_joint[0] + skinning_offset, 0, MAX_BONES)), 0),
        texelFetch(skinning_tex, ivec2(3, clamp(i_joint[0] + skinning_offset, 0, MAX_BONES)), 0)) +
        i_weight[1] * mat4(
        texelFetch(skinning_tex, ivec2(0, clamp(i_joint[1] + skinning_offset, 0, MAX_BONES)), 0),
        texelFetch(skinning_tex, ivec2(1, clamp(i_joint[1] + skinning_offset, 0, MAX_BONES)), 0),
        texelFetch(skinning_tex, ivec2(2, clamp(i_joint[1] + skinning_offset, 0, MAX_BONES)), 0),
        texelFetch(skinning_tex, ivec2(3, clamp(i_joint[1] + skinning_offset, 0, MAX_BONES)), 0));

in sp*skinning.vert

(just use first 2 matrix bones)

ghost commented 2 years ago

hmm

ghost commented 2 years ago

my warn:

[warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid [warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid [warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid [warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid [warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid [warn ] KartProperties: Can't find kart type '' for kart 'Buggie', defaulting to 'light'. [warn ] KartModel: g-lux custom.spm has no striaght frame defined. [warn ] Material: Cannot determine texture full path: wut.png [warn ] KartModel: g-power 392 motorsport.spm has no striaght frame defined. [warn ] Material: Cannot determine texture full path: StillaNo [warn ] Material: Cannot determine texture full path: chrom_acc.png [warn ] KartModel: bus-body.spm has no striaght frame defined. [warn ] Material: Cannot determine texture full path: busdarkness [warn ] KartModel: owl.spm has no striaght frame defined. [warn ] KartModel: protank.spm has no striaght frame defined. [warn ] Material: Cannot determine texture full path: genericshadow.png [warn ] Material: Cannot determine texture full path: Chasis_Scarab_D.png [warn ] KartModel: scavenger.spm has no striaght frame defined. [warn ] Material: Cannot determine texture full path: scarab [warn ] KartModel: super micro.spm has no striaght frame defined. [warn ] KartProperties: Can't find kart type '' for kart 'SuperTuxCart', defaulting to 'light'. [warn ] KartProperties: Can't find kart type '' for kart 'X-Moto', defaulting to 'light'. [warn ] Material: Cannot determine texture full path: Flammes.png [warn ] Material: Cannot determine texture full path: Skin1.png [warn ] Material: Cannot determine texture full path: Skin2.png

ghost commented 2 years ago

what is this

[warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid [warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid [warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid [warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid [warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid

ghost commented 2 years ago

but i 1.2

CodingJellyfish commented 10 months ago

I've reproduced this about 1 year ago. Not sure it still exists.