EXTRA BG MAKER:Does anyone have this tool for Downlod?

Place for discussing homebrew games, development, new releases and emulation.

Moderators: pcwzrd13, deluxux, VasiliyRS

User avatar
Ian Micheal
Developer
Posts: 6005
Contact:

Re: EXTRA BG MAKER:Does anyone have this tool for Downlod?

Post#21 » Mon Aug 05, 2019 12:57 pm

I uploaded it for you nice you found a site with it to. none of this really can be done with out knowing a bit of coding.

User avatar
Xiden
Developer
Posts: 2223

Re: EXTRA BG MAKER:Does anyone have this tool for Downlod?

Post#22 » Mon Aug 05, 2019 1:31 pm

Do these backgrounds show up automatically once they are on the vmu?

User avatar
aldair
Metallic
Posts: 802

Re: EXTRA BG MAKER:Does anyone have this tool for Downlod?

Post#23 » Mon Aug 05, 2019 1:47 pm

Xiden wrote:Do these backgrounds show up automatically once they are on the vmu?

yes!

mrneo240
Rank 9
Posts: 926

Re: EXTRA BG MAKER:Does anyone have this tool for Downlod?

Post#24 » Mon Aug 05, 2019 2:48 pm

your best bet is to not encode directly 565 but instead rgb565 vq4 with no mips

256x256 can be still fairly small
Image



example of my usual 0GDTEX.PVR
Image

if you want the image to be oriented correctly on the bottom plane, feel free to flip

image used:
Image

User avatar
aldair
Metallic
Posts: 802

Re: EXTRA BG MAKER:Does anyone have this tool for Downlod?

Post#25 » Mon Aug 05, 2019 4:09 pm

mrneo240 wrote:your best bet is to not encode directly 565 but instead rgb565 vq4 with no mips

256x256 can be still fairly small
Image



example of my usual 0GDTEX.PVR
Image

if you want the image to be oriented correctly on the bottom plane, feel free to flip

image used:
Image


Do I use PVRViewer tool to make PVR?

mrneo240
Rank 9
Posts: 926

Re: EXTRA BG MAKER:Does anyone have this tool for Downlod?

Post#26 » Mon Aug 05, 2019 4:29 pm

i like pvrconv ".\pvrconv.exe -gi 666 -v4a -nvm -f .\neodc.bmp" would work great

User avatar
BlueCrab
Developer
Posts: 843

Re: EXTRA BG MAKER:Does anyone have this tool for Downlod?

Post#27 » Tue Aug 06, 2019 1:24 am

In case someone is looking for the Gimp plugin that was mentioned on the first page of the topic, I dug it up off of the KOS website. You can find it here: http://gamedev.allusion.net/random/gimp ... -16.tar.gz

It probably won't be of much help at all, but I figured I'd mention it for completeness...

User avatar
Ian Micheal
Developer
Posts: 6005
Contact:

Re: EXTRA BG MAKER:Does anyone have this tool for Downlod?

Post#28 » Tue Aug 06, 2019 2:14 am

BlueCrab wrote:In case someone is looking for the Gimp plugin that was mentioned on the first page of the topic, I dug it up off of the KOS website. You can find it here: http://gamedev.allusion.net/random/gimp ... -16.tar.gz

It probably won't be of much help at all, but I figured I'd mention it for completeness...


Thank you could not find that anywere :)

User avatar
Roel
Developer
Posts: 350
Contact:

Re: EXTRA BG MAKER:Does anyone have this tool for Downlod?

Post#29 » Tue Aug 06, 2019 3:25 am

Code: Select all

Código:
/ * Simples RGB888 -> PVR RGB565 (RETÂNGULO) | <BR> 2019 * /

enum ImgDimension {

   DIM_16X16 = 0x10,
   DIM_32X32 = 0x20,
   DIM_64X64 = 0x40,
   DIM_128X128 = 0x80
};

void RGB888ToRGB565 (enum ImgDimension eImgDimension, uint8_t * pRGB888, uint8_t ** pRGB565, int * nRGB565Size) {

   uint8_t GBIX_HEADER [] = {'G', 'B', 'Eu', 'X', 0x08, 0x00, 0x00, 0x00, 0x9A, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
   uint8_t PVRT_HEADER [] = {'P', 'V', 'R', 'T', 0x00, 0x00, 0x00, 0x00, 0x01, 0x09, 0x00, 0x00, eImgDimension, 0x00, eImgDimension, 0x00};

   uint32_t nHdrSz = (tamanho de (GBIX_HEADER) + tamanho de (PVRT_HEADER));
   
   uint32_t nImgSz = (2 * (eImgDimension * eImgDimension));

   uint32_t nTmpSz = (nHdrSz + nImgSz);
   
   uint8_t * pTmp = malloc (nTmpSz);

   uint8_t * p = pTmp;
       
   int i;
   
   // define o tamanho dos dados da imagem
   
   PVRT_HEADER [4] = (nImgSz & 0xFF);
   PVRT_HEADER [5] = ((nImgSz >> 0x08) & 0xFF);
   PVRT_HEADER [6] = ((nImgSz >> 0x10) & 0xFF);
   PVRT_HEADER [7] = ((nImgSz >> 0x18) & 0xFF);
       
   // copia o cabeçalho do GBIX
   
   memmove (p, GBIX_HEADER, sizeof (GBIX_HEADER));

   p + = sizeof (GBIX_HEADER);
   
   // copia o cabeçalho do PVRT

   memmove (p, PVRT_HEADER, sizeof (PVRT_HEADER));
   
   p + = sizeof (PVRT_HEADER);
   
   // faz a conversão
   
   for (i = 0; i <(eImgDimension * eImgDimension); i ++) {
           
       uint16_t nR = (((* pRGB888 ++ >> 3) & 0x1F) << 11); 
       uint16_t nG = (((* pRGB888 ++ >> 2) & 0x3F) << 5);
       uint16_t nB = ((* pRGB888 ++ >> 3) e 0x1F);
   
       uint16_t nRGB565 = (nR | nG | nB);
       
       * p ++ = (nRGB565 e 0xFF);
       * p ++ = ((nRGB565 >> 8) e 0xFF);
   }
   
   * nRGB565Size = nTmpSz;

   * pRGB565 = pTmp;   
}


Using malloc without free? smh...

  • Similar Topics
    Replies
    Views
    Last post

Return to “New Releases/Homebrew/Emulation”

Who is online

Users browsing this forum: No registered users