MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

SoltanGris42
MAME Fan
Reged: 11/16/13
Posts: 134
Send PM
EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME
09/15/14 04:36 AM Attachment: cvaniau_bug.jpg 870 KB (15 downloads)


> > I get the same result here. It seems the same behavior also occurs in cvaniau
> > [Castlevania - Bloodlines (USA)]
>
> Bloodlines has problems with GLSL in general, which I don't entirely understand. The
> only functional OpenGL debugger out there[1] currently requires Ubuntu on hardware
> (not virtualized) with an accelerated card, which puts a crimp in my ability to see
> what's going on.
>
> [1] Valve's VOGL. AMD offers a Windows OGL debugger which does nothing worthwhile
> when you run it against MAME, possibly because I have an NVidia card.

Dullaron is right. Don't know how he figured this out!, but touching the brightness slider (and only that one!) fixes the graphical corruption in both of these games.

EDIT: Earthworm Jim is also a (the same) general GLSL shader error. CRT-geom does exactly the same thing. I was initially worried that it was a problem with this specific shader because I had a similar (same?) issue when I started porting the shader. If I recall correctly, it was an issue between using the "color_texture_sz" or "color_texture_pow2_sz" uniforms. I had to use one when I thought it should have been the other.

EDIT AGAIN:
Before touching brightness, MESS says that the video resolution is 256x224 and after touching brightness (with MESS paused so the system didn't change resolutions) it says 320x224.

I feel like MESS is initially copying a 320x224 texture into a 256x224 texture and then giving that to the GLSL system. And so we get missing columns. And here's what you get with "mess -v" if you don't touch the brightness:

The EDITS never stop!
If you resample the 320x256 screenshot to 256x224 with point resizing, then you get exactly the same missing columns that are missing in the screen below. So I think my last edit is pretty close to what is going on.


Code:


GL texture: copy 0, shader 1, dynamic 0, 256x224 256x224 [RGB32, Equal: 1, Palet
te: 0,
scale 1x1, border 0, pitch 512,256/16384], bytes/pix 4
GL texture: copy 0, shader 1, dynamic 0, 320x224 320x224 [RGB32, Equal: 1, Palet
te: 0,
scale 1x1, border 0, pitch 480,320/16384], bytes/pix 4
GL texture: copy 0, shader 1, dynamic 0, 320x224 320x224 [RGB32, Equal: 1, Palet
te: 0,
scale 1x1, border 0, pitch 480,320/16384], bytes/pix 4
GL texture: copy 0, shader 1, dynamic 0, 256x224 256x224 [RGB32, Equal: 1, Palet
te: 0,
scale 1x1, border 0, pitch 480,256/16384], bytes/pix 4
GL texture: copy 0, shader 1, dynamic 0, 256x224 256x224 [RGB32, Equal: 1, Palet
te: 0,
scale 1x1, border 0, pitch 480,256/16384], bytes/pix 4



Touch the brightness and you get a new 320x224 texture and the corruption is gone:

Code:


GL texture: copy 0, shader 1, dynamic 0, 256x224 256x224 [RGB32, Equal: 1, Palet
te: 0,
scale 1x1, border 0, pitch 512,256/16384], bytes/pix 4
GL texture: copy 0, shader 1, dynamic 0, 320x224 320x224 [RGB32, Equal: 1, Palet
te: 0,
scale 1x1, border 0, pitch 480,320/16384], bytes/pix 4
GL texture: copy 0, shader 1, dynamic 0, 320x224 320x224 [RGB32, Equal: 1, Palet
te: 0,
scale 1x1, border 0, pitch 480,320/16384], bytes/pix 4
GL texture: copy 0, shader 1, dynamic 0, 256x224 256x224 [RGB32, Equal: 1, Palet
te: 0,
scale 1x1, border 0, pitch 480,256/16384], bytes/pix 4
GL texture: copy 0, shader 1, dynamic 0, 256x224 256x224 [RGB32, Equal: 1, Palet
te: 0,
scale 1x1, border 0, pitch 480,256/16384], bytes/pix 4
GL texture: copy 1, shader 1, dynamic 0, 320x224 320x224 [RGB32_PALETTED, Equal:
1, Palette: 1,
scale 1x1, border 0, pitch 480,320/16384], bytes/pix 4



Didn't there used to be a problem with changing resolutions and GLSL? Was it fixed for all texture types?

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment







Entire thread
Subject Posted by Posted on
* Tried to get Timothy Lottes' CRT Shader working with SDLMAME. SoltanGris42 08/25/14 04:50 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. mjnman  04/06/17 01:53 PM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. R. Belmont  04/06/17 07:40 PM
. * Taking a poll MooglyGuy  09/25/14 12:15 AM
. * Re: Taking a poll Mr. DoAdministrator  09/25/14 10:51 AM
. * The simplest answer is no.... Traso  09/25/14 05:38 AM
. * Re: The simplest answer is no.... SoltanGris42  09/25/14 08:15 AM
. * Re: The simplest answer is no.... R. Belmont  09/25/14 02:38 PM
. * Re: The simplest answer is no.... Mamesick  09/25/14 03:12 PM
. * Re: The simplest answer is no.... Traso  09/26/14 07:27 PM
. * Re: The simplest answer is no.... Mamesick  09/27/14 08:11 AM
. * Re: The simplest answer is no.... lamprey  09/25/14 06:44 AM
. * Re: Taking a poll B2K24  09/25/14 01:53 AM
. * Re: Taking a poll Arnold101  09/25/14 01:31 AM
. * Re: Taking a poll Sune  09/25/14 01:30 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. bigbluefe  09/15/14 02:24 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. B2K24  09/15/14 03:12 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. R. Belmont  09/15/14 04:15 AM
. * EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME SoltanGris42  09/15/14 04:36 AM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME R. Belmont  09/15/14 04:50 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME lamprey  09/15/14 07:42 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME B2K24  09/15/14 08:09 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME SoltanGris42  09/15/14 08:27 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME B2K24  09/22/14 08:05 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME SoltanGris42  09/22/14 10:42 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME torturedutopian  09/26/14 12:43 AM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME Traso  09/16/14 12:55 AM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME Arnold101  09/22/14 07:37 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME Traso  09/23/14 06:56 AM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME Arnold101  09/24/14 08:07 PM
. * Re: EDITED: Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME Traso  09/25/14 06:59 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. Dullaron  09/15/14 05:09 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. B2K24  09/15/14 05:25 AM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. bigbluefe  09/15/14 03:17 PM
. * Re: Tried to get Timothy Lottes' CRT Shader working with SDLMAME. Dullaron  09/15/14 02:45 AM
. * Update on Aug 30 - Alpha works now... SoltanGris42  08/30/14 10:06 PM
. * Re: Update on Aug 30 - Alpha works now... Dullaron  08/31/14 01:53 AM
. * Re: Update on Aug 30 - Alpha works now... SoltanGris42  08/31/14 02:06 AM
. * Re: Update on Aug 30 - Alpha works now... Arnold101  09/03/14 09:04 PM
. * Re: Update on Aug 30 - Alpha works now... R. Belmont  09/03/14 10:03 PM
. * Re: Update on Aug 30 - Alpha works now... Arnold101  09/03/14 10:39 PM
. * Re: Update on Aug 30 - Alpha works now... Dullaron  09/04/14 12:05 AM
. * Re: Update on Aug 30 - Alpha works now... Arnold101  09/04/14 04:01 AM
. * Re: Update on Aug 30 - Alpha works now... Anonymous  09/04/14 08:27 AM
. * Re: Update on Aug 30 - Alpha works now... mac1202  09/04/14 08:54 PM
. * Re: Update on Aug 30 - Alpha works now... SoltanGris42  09/04/14 11:29 PM
. * Re: Update on Aug 30 - Alpha works now... Arnold101  09/05/14 03:06 AM
. * Re: Update on Aug 30 - Alpha works now... SoltanGris42  09/05/14 03:59 AM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Dullaron  09/04/14 06:51 AM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Arnold101  09/04/14 09:09 PM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Dullaron  09/05/14 03:21 AM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Arnold101  09/05/14 04:37 AM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Dullaron  09/05/14 04:59 AM
. * Re: Update on Aug 30 - Alpha works now... (Edit.) Arnold101  09/05/14 01:53 PM
. * Re: Update on Aug 30 - Alpha works now... CiroConsentino  08/31/14 02:19 AM
. * Updated again with a small bloom effect and 2 alternate shadow mask patterns SoltanGris42  08/30/14 04:06 AM
. * Re: Updated again with a small bloom effect and 2 alternate shadow mask patterns Dullaron  08/30/14 05:46 AM
. * Re: Updated again with a small bloom effect and 2 alternate shadow mask patterns SoltanGris42  08/30/14 06:17 AM
. * Re: Updated again with a small bloom effect and 2 alternate shadow mask patterns Dullaron  08/30/14 06:28 AM
. * Re: Updated again with a small bloom effect and 2 alternate shadow mask patterns SoltanGris42  08/30/14 04:21 AM
. * Updated the shader file to work with my laptop's Intel Graphics driver SoltanGris42  08/27/14 03:43 AM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver R. Belmont  08/28/14 05:21 PM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver SoltanGris42  08/29/14 03:55 AM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver R. Belmont  08/29/14 08:06 PM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver Dullaron  08/28/14 06:40 AM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver SoltanGris42  08/29/14 04:02 AM
. * Re: Updated the shader file to work with my laptop's Intel Graphics driver Dullaron  08/29/14 07:39 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. R. Belmont  08/26/14 03:45 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. bigbluefe  08/27/14 04:25 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. lamprey  08/27/14 11:03 PM
. * By the way. Dullaron  08/27/14 11:47 PM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. TafoidAdministrator  08/27/14 04:39 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. bigbluefe  08/27/14 05:16 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. MooglyGuy  08/26/14 12:07 PM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. lamprey  08/27/14 10:50 PM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. SoltanGris42  08/27/14 03:35 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. TimothyLottes  08/27/14 06:46 PM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. MooglyGuy  08/29/14 11:14 AM
. * Re: Tried to get Timothy Lottes CRT Shader working with SDLMAME. Dullaron  08/29/14 12:42 AM
. * Screenshot with the shader's default settings SoltanGris42  08/25/14 04:52 AM
. * Trying MESS on my projector SoltanGris42  08/27/14 05:32 AM
. * Re: Trying MESS on my projector Dullaron  08/27/14 10:34 AM
. * Re: Trying MESS on my projector SoltanGris42  08/27/14 10:59 AM
. * Re: Trying MESS on my projector Dullaron  08/27/14 12:32 PM
. * Re: Trying MESS on my projector B2K24  08/27/14 05:52 AM
. * Re: Screenshot with the shader's default settings Ramirez  08/25/14 07:57 PM
. * Re: Screenshot with the shader's default settings B2K24  08/25/14 05:56 AM
. * Re: Screenshot with the shader's default settings SoltanGris42  08/25/14 06:00 AM
. * Re: Screenshot with the shader's default settings Dullaron  08/25/14 05:30 AM
. * Re: Screenshot with the shader's default settings Traso  08/25/14 07:20 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 29 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 23722