[Mesa-dev] Bug introduced with Mesa 18.0.0: Star Trek Voyager Elite Force shadow glitches

Roland Scheidegger sroland at vmware.com
Tue Sep 18 15:40:58 UTC 2018


Am 18.09.2018 um 17:09 schrieb Federico Dossena:
> Weapon fire doesn't generate shadows in this game, just a light.
> 
> cg_shadow is set to 3.  Other values don't seem to change anything
> except for 2 making the game sluggish.
> r_stencilbits is already set to 8.
> r_dynamiclights is set to 1; setting it to 0 obviously fixes the issue
> but it's not a solution, you're just disabling dynamic lights.
> 
> From what I can tell, the glitch affects only the surfaces that are
> affected by dynamic lighting, and it looks like the lighting is
> "multiplied" by the dynamic light that's supposed to be added to that
> surface? Does that make any sense? This affects all dynamic lights in
> the game, not just weapons.
> 
> It also looks like Mesa already has some workaround for this, because if
> i rename the game to quake3.exe, it looks correct. Maybe you could add
> stvoy.exe and stvoyHM.exe to that list.
I don't see quake3.exe in the list of workarounds, so this seems very
very odd.


> 
> Is there some way I can help you figure out the problem? Do you want a
> trace?
Could you try with a newer version?
Otherwise if you could do a git bisect that would help, a trace would be
nice if someone has time to look into it (but I won't have, while I try
to look into llvmpipe bugs that doesn't really extend to things which
are likely app issues).

Roland


> 
> 
> On 2018-09-18 16:55, Roland Scheidegger wrote:
>> I don't see any shadows at all with the 17.3.7 video?
>> Whereas the 18.0.0 one look quite bogus to me, but I think shadows are
>> known to be glitchy with id tech 3?
>> It should be possible to tweak shadows via cg_shadow (0-3),
>> r_stencilbits 8 might be necessary for some modes, r_dynamiclights 0
>> might also switch them off, if it works the same as with quake 3...
>>
>> Roland
>>
>>
>> Am 17.09.2018 um 18:55 schrieb Federico Dossena:
>>> Hi,
>>>
>>> I'm using Mesa (specifically Gallium on LLVMPipe) to run an old game
>>> called Star Trek Voyager Elite Force.
>>>
>>> I'd like to report a bug introduced with version 18.0.0 and still
>>> present in Mesa master that completely breaks the shadows in this game.
>>>
>>> I don't know how Mesa works internally so I'll just attach 2 videos:
>>>
>>>    * Mesa 17.3.7: shadows work normally:
>>>     
>>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D1UOD4NqEuL12FrZfvukkP5r83dyjTd3E2&data=02%7C01%7Csroland%40vmware.com%7Cd563fe86e19d4f85b39e08d61d78cd05%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C1%7C0%7C636728802018203011&sdata=yx1Mp4lq25L3q8XEsTj6uV%2FtmIN6htN3p2t5%2Fk6HY1g%3D&reserved=0
>>>
>>>     
>>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D1UOD4NqEuL12FrZfvukkP5r83dyjTd3E2&data=02%7C01%7Csroland%40vmware.com%7Cd563fe86e19d4f85b39e08d61d78cd05%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C1%7C0%7C636728802018203011&sdata=yx1Mp4lq25L3q8XEsTj6uV%2FtmIN6htN3p2t5%2Fk6HY1g%3D&reserved=0>
>>>
>>>    * Mesa 18.0.0 and newer: shadows are broken:
>>>     
>>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D10cYYciVfLD3fCHpoOrp4cRTGj_GTuh2j&data=02%7C01%7Csroland%40vmware.com%7Cd563fe86e19d4f85b39e08d61d78cd05%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C1%7C0%7C636728802018203011&sdata=huKMBD1eSk0qEHGyaDIdFWNIyuMUMTb097HhFKg4%2FWY%3D&reserved=0
>>>
>>>     
>>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D10cYYciVfLD3fCHpoOrp4cRTGj_GTuh2j&data=02%7C01%7Csroland%40vmware.com%7Cd563fe86e19d4f85b39e08d61d78cd05%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C1%7C0%7C636728802018203011&sdata=huKMBD1eSk0qEHGyaDIdFWNIyuMUMTb097HhFKg4%2FWY%3D&reserved=0>
>>>
>>>
>>> The game uses the id3 engine so I assume other games are also affected,
>>> although I haven't tested it.
>>>
>>> For what it's worth, the proprietary AMD drivers have the same bug.
>>>
>>> If you need the game for testing, please let me know.
>>> A demo is also available here:
>>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fileplanet.com%2F46986%2F40000%2Ffileinfo%2FStar-Trek%3A-Voyager---Elite-Force-Demo&data=02%7C01%7Csroland%40vmware.com%7Cd563fe86e19d4f85b39e08d61d78cd05%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C1%7C0%7C636728802018203011&sdata=uxya7NzNzuNCmQaz3g%2BY798FPON9H4nkmG9G7NvTm0w%3D&reserved=0
>>>
>>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fileplanet.com%2F46986%2F40000%2Ffileinfo%2FStar-Trek%3A-Voyager---Elite-Force-Demo&data=02%7C01%7Csroland%40vmware.com%7Cd563fe86e19d4f85b39e08d61d78cd05%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C1%7C0%7C636728802018203011&sdata=uxya7NzNzuNCmQaz3g%2BY798FPON9H4nkmG9G7NvTm0w%3D&reserved=0>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> mesa-dev mailing list
>>> mesa-dev at lists.freedesktop.org
>>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fmesa-dev&data=02%7C01%7Csroland%40vmware.com%7Cd563fe86e19d4f85b39e08d61d78cd05%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C1%7C0%7C636728802018213019&sdata=%2FDTWlbseAt6PL2ytmvmtvA%2FiG%2BVYc7aH4%2BrlBBU5pmY%3D&reserved=0
>>>
>>>
> 



More information about the mesa-dev mailing list