Page 3 of 3

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

Posted: Mon Aug 05, 2019 12:57 pm
by Ian Micheal
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.

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

Posted: Mon Aug 05, 2019 1:31 pm
by Xiden
Do these backgrounds show up automatically once they are on the vmu?

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

Posted: Mon Aug 05, 2019 1:47 pm
by aldair
Xiden wrote:Do these backgrounds show up automatically once they are on the vmu?
yes!

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

Posted: Mon Aug 05, 2019 2:48 pm
by mrneo240
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

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

Posted: Mon Aug 05, 2019 4:09 pm
by aldair
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?

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

Posted: Mon Aug 05, 2019 4:29 pm
by mrneo240
i like pvrconv ".\pvrconv.exe -gi 666 -v4a -nvm -f .\neodc.bmp" would work great

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

Posted: Tue Aug 06, 2019 1:24 am
by BlueCrab
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...

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

Posted: Tue Aug 06, 2019 2:14 am
by Ian Micheal
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 :)

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

Posted: Tue Aug 06, 2019 3:25 am
by Roel

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...