Blue background and no 3D graphs when using new 3D engine

Linux geeks and Mac OS hipsters unite! A board for discussion of Supermodel on non-Windows platforms.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Blue background and no 3D graphs when using new 3D engine

Postby fc7 » Sun Sep 18, 2022 11:56 am

I'm new to Supermodel and I'm enjoying it a lot, so let me start by saying thanks for the great job done.

I'm using Supermodel on Linux exclusively on Debian 11 and Ubuntu 20.04 both running the latest updates for kernel and mesa.
Using an NVidia GTX 1660 Super with the proprietary NVidia driver Supermodel is running without any issues, using the new 3D engine.
But unfortunately when using the integrated Intel graphics (tested on Intel HD 630 -i7-7700- and Iris Xe -i7-1185G7-) or a Radeon RX6600XT card I get a solid background (colors change, most of the times is blue) as you can see in the attached images and no 3D graphs at all.

If I switch to the legacy 3D engine everything works perfectly.
I thought while playing on the Intel graphics card that it was a problem with them being under-powered as mentioned in https://www.supermodel3.com/FAQ.html#No3D but then I was a bit surprised about having the same issue on a relative new Radeon card like the RX6600XT.
I searched the forum and the Internet but I couldn't find anything so far.

Do you have any ideas on why this is happening?

Thanks in advance.
Attachments
IMG_1923.jpg
IMG_1923.jpg (100.9 KiB) Viewed 308 times
IMG_1922.jpg
IMG_1922.jpg (177.02 KiB) Viewed 308 times
IMG_1921.jpg
IMG_1921.jpg (45.69 KiB) Viewed 308 times
Last edited by fc7 on Tue Sep 20, 2022 1:18 am, edited 2 times in total.
fc7
 
Posts: 17
Joined: Wed Aug 31, 2022 11:21 pm

Re: Blue background and no 3D graphs when using new 3D engin

Postby Bart » Mon Sep 19, 2022 2:45 pm

Which version of Supermodel and can you try to check out a revision from a couple months ago?
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Blue background and no 3D graphs when using new 3D engin

Postby fc7 » Mon Sep 19, 2022 11:25 pm

Sorry I missed to include the screenshots (pictures taken with my phone) in my original post so I just added them.

I'm building from source, so Supermodel version I'm using is current master (0eef09b) from Github.
I can try to build any revision or commit you point me to. Just let me know.

Thanks.
fc7
 
Posts: 17
Joined: Wed Aug 31, 2022 11:21 pm

Re: Blue background and no 3D graphs when using new 3D engin

Postby Ian » Tue Sep 20, 2022 5:20 am

does it give any shader errors?
check for any log file that is made
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: Blue background and no 3D graphs when using new 3D engin

Postby fc7 » Tue Sep 20, 2022 7:09 am

I get a shader error indeed in the output of Supermodel that I didn't noticed before because I was launching Supermodel from a script (sorry for that):

Code: Select all
Supermodel: A Sega Model 3 Arcade Emulator (Version 0.3a-WIP)
Copyright 2003-2022 by The Supermodel Team
    Title:          Daytona USA 2 - Battle on the Edge (Japan, Revision A)
    ROM Set:        daytona2
    Developer:      Sega
    Year:           1998
    Stepping:       2.1
    Extra Hardware: Digital Sound Board (Type DSB2), Drive Board, Net Board, Security Board

0:110(14): error: no function with name 'texture2DLod'
0:111(14): error: no function with name 'texture2DLod'
0:112(14): error: no function with name 'texture2DLod'
0:113(14): error: no function with name 'texture2DLod'
0:116(5): warning: `p0q0' used uninitialized
0:116(14): warning: `p1q0' used uninitialized
0:116(35): warning: `p0q0' used uninitialized
0:117(5): warning: `p0q0' used uninitialized
0:117(14): warning: `p0q1' used uninitialized
0:117(35): warning: `p0q0' used uninitialized
0:119(14): warning: `p0q0' used uninitialized
0:120(14): warning: `p1q1' used uninitialized

error: linking with uncompiled/unspecialized shader


This is on a machine with Intel integrated graphics (HD 630).
I attached Supermodel log (info and debug -RAR compressed as it was 15MB-) and console output.

Thanks
Attachments
Supermodel-logs.rar
Supermodel console output same for info a debug log levels plus info and debug log files
(154.06 KiB) Downloaded 15 times
fc7
 
Posts: 17
Joined: Wed Aug 31, 2022 11:21 pm

Re: Blue background and no 3D graphs when using new 3D engin

Postby Ian » Tue Sep 20, 2022 12:02 pm

Yeah it's the drivers. They are missing core features of opengl 2.1
Maybe someone can file bug reports and get this fixed? It should be fixed.

Meanwhile you can try -quad-rendering as a command line option
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: Blue background and no 3D graphs when using new 3D engin

Postby Bart » Tue Sep 20, 2022 1:09 pm

Question: could texture2DLod be substituted with something else like texture2D that samples a different way but still looks acceptable as a fallback? I'm thinking that maybe a workaround here is to check for shader compilation failure, see if "texture2DLod" is present in the error message, and perform a patch to a fallback sampling method and try again, while also printing a warning.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Blue background and no 3D graphs when using new 3D engin

Postby Ian » Tue Sep 20, 2022 1:12 pm

Maybe just texturelod but that technically shouldn't exist in 2.1 shaders
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: Blue background and no 3D graphs when using new 3D engin

Postby fc7 » Tue Sep 20, 2022 1:24 pm

Just tested with -quad-rendering option on a machine with Intel Iris XE and now 3D graphs work without using the legacy 3D engine.
I only did a quick test with Daytona USA 2, but I noticed slowdowns on some parts of the track that were not present using the legacy 3D engine.

Should I try on the other machines with the Intel HD 630 and the RX6600XT or it would not make any difference nor add any value to the investigation?
fc7
 
Posts: 17
Joined: Wed Aug 31, 2022 11:21 pm

Re: Blue background and no 3D graphs when using new 3D engin

Postby fc7 » Tue Sep 20, 2022 1:41 pm

Ian wrote:Maybe just texturelod but that technically shouldn't exist in 2.1 shaders


I can certainly try this out. I found while doing some research that it seems that mesa drivers on Linux doesn't support texture2DLod or it may need some extension or different profile.
I can patch the code and replace that with textureLod (only found 4 occurences in the code) compile and test. It should only take me a few minutes.
Last edited by fc7 on Tue Sep 20, 2022 2:53 pm, edited 1 time in total.
fc7
 
Posts: 17
Joined: Wed Aug 31, 2022 11:21 pm

Next

Return to Alternative Fashion

Who is online

Users browsing this forum: No registered users and 1 guest