Mighty Mike (a.k.a. Power Pete)

AmigaOne X5000 platform specific issues related to Linux only.
Post Reply
User avatar
xeno74
Posts: 9380
Joined: Fri Mar 23, 2012 7:58 am

Mighty Mike (a.k.a. Power Pete)

Post by xeno74 »

Image

Hi All,

I was able to compile Pangea's Mighty Mike on MintPPC and Void PPC yesterday. It works but there are wrong colors with the GL renderer.

Maybe an endian issue?

The colors are correct without the GL renderer but the game is slow without it.

Further information about Mighty Mike: https://jorio.itch.io/mightymike

I created a bug report yesterday. Link: Linux PPC: wrong colors with the GL renderer

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9380
Joined: Fri Mar 23, 2012 7:58 am

Re: Mighty Mike (a.k.a. Power Pete)

Post by xeno74 »

Hi All,

Jorio replied to our bug report yesterday.
jorio wrote: It looks like __BIG_ENDIAN__ is correctly set, otherwise you wouldn't have been able to get this far into the game.

Try to change GLRender.c:54 to:

#define kFramePixelType GL_UNSIGNED_SHORT_5_6_5_REV
I compiled it with his modification today.

Code: Select all

/home/amigaone/Downloads/MightyMike/src/Drivers/GLRender.c:54: warning: "kFramePixelType" redefined
   54 |  #define kFramePixelType   GL_UNSIGNED_SHORT_5_6_5_REV
      | 
/home/amigaone/Downloads/MightyMike/src/Drivers/GLRender.c:46: note: this is the location of the previous definition
   46 | #define kFramePixelType GL_UNSIGNED_SHORT_5_6_5
      |
Unfortunately it doesn't start.

Output:

Code: Select all

EE ../src/gallium/drivers/r600/r600_asm.c:2691 r600_vertex_data_type - unsupported vertex format PIPE_FORMAT_R5G6B5_UNORM
EE ../src/gallium/drivers/r600/r600_asm.c:2691 r600_vertex_data_type - unsupported vertex format PIPE_FORMAT_R5G6B5_UNORM
EE ../src/gallium/drivers/r600/r600_asm.c:2691 r600_vertex_data_type - unsupported vertex format PIPE_FORMAT_R5G6B5_UNORM
EE ../src/gallium/drivers/r600/r600_asm.c:2691 r600_vertex_data_type - unsupported vertex format PIPE_FORMAT_R5G6B5_UNORM
EE ../src/gallium/drivers/r600/r600_asm.c:2691 r600_vertex_data_type - unsupported vertex format PIPE_FORMAT_R5G6B5_UNORM
EE ../src/gallium/drivers/r600/r600_asm.c:2691 r600_vertex_data_type - unsupported vertex format PIPE_FORMAT_R5G6B5_UNORM
EE ../src/gallium/drivers/r600/r600_asm.c:2691 r600_vertex_data_type - unsupported vertex format PIPE_FORMAT_R5G6B5_UNORM
EE ../src/gallium/drivers/r600/r600_asm.c:2691 r600_vertex_data_type - unsupported vertex format PIPE_FORMAT_R5G6B5_UNORM
EE ../src/gallium/drivers/r600/r600_asm.c:2691 r600_vertex_data_type - unsupported vertex format PIPE_FORMAT_R5G6B5_UNORM
EE ../src/gallium/drivers/r600/r600_asm.c:2691 r600_vertex_data_type - unsupported vertex format PIPE_FORMAT_R5G6B5_UNORM
Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9380
Joined: Fri Mar 23, 2012 7:58 am

Re: Mighty Mike (a.k.a. Power Pete)

Post by xeno74 »

Hi All,

Success! Jorio has posted a solution! :-)
Jorio wrote: Revert to GL_UNSIGNED_SHORT_5_6_5 and try this instead:

Palette.c:241:

Code: Select all

color16 = ((blue >> 3) << 11) | ((green >> 2) << 5) | (red >> 3);
Jorio wrote: FramebufferFilter.c:53:

Code: Select all

*color = ((bmix8 >> 3) << 11) | ((gmix8 >> 2) << 5) | (rmix8 >> 3);
It works with the correct colors! :-)

Download for Linux PPC 32-bit without AltiVec: MightyMike_3.0.2-linux-powerpc.tar.gz

It works with Void PPC, MintPPC, Fienix, Debian Sid etc.

Image

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply