BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ddv2005

Pages: [1]
1
Discussion - EVE / Re: displaying compressed png
« on: February 22, 2021, 02:50:03 PM »
GD.begin();
 GD.cmd_inflate(0);
 GD.load("3'_index.bin");

and then in loop


GD.Begin(BITMAPS);
GD.Vertex2ii(190, 180,0);
 GD.swap();

I think that your sequence is wrong. cmd_inflate just decompress data but does not set any bitmap parameters like layout, size and etc. You have to use Cmd_SetBitmap+PALETTE_SOURCE to set bitmap properties after cmd_inflate but I have no idea what parameters for PALETTE8 because it use indexes.

2
Discussion - EVE / Re: BT81X Bilinear filtering make dark border on bitmaps
« on: February 19, 2021, 06:00:43 PM »
I found some workaround for my case: expand tiles by 1 pixel in each side (to make tiles overlap by 1 pixel) and then cut blended BILINEAR dark borders by ALPHA_FUNC(GEQUAL, 248). Now it looks much better.
bf_new_cut.jpg is final image and bf_new_no_cut.jpg is overlapped images but no ALPHA_FUNC to cut borders.

3
Discussion - EVE / Re: BT81X Bilinear filtering make dark border on bitmaps
« on: February 19, 2021, 04:26:27 PM »
Hello,

Images converted by EAB tool from png to ASTC 4x4/8x8 without any scale.  Bilinear filtering is used to scale and render the image by BT81X. This is my test code to render image form Screen Editor:

Code: [Select]
CMD_SETBITMAP(0, COMPRESSED_RGBA_ASTC_4x4_KHR, 240, 240)
BITMAP_SIZE(BILINEAR, BORDER, BORDER, 240, 240)
CMD_LOADIDENTITY()
CMD_SCALE(196608, 196608)
CMD_TRANSLATE(1769472, 0)
CMD_SETMATRIX()
BEGIN(BITMAPS)
VERTEX2II(40, 0, 0, 0)


Also I make a test project in Screen Editor to reproduce the issue. White square PNG 64x64 loaded at 0 address and displayed by code:
Code: [Select]
CLEAR_COLOR_RGB(255,0, 0)
CLEAR(1, 1, 1)
CMD_SETBITMAP(0, COMPRESSED_RGBA_ASTC_4x4_KHR, 64, 64)
BITMAP_SIZE(NEAREST, BORDER, BORDER, 240, 240)
CMD_LOADIDENTITY()
CMD_SCALE(196608, 196608)
CMD_TRANSLATE(196608, 131072)
CMD_SETMATRIX()
BEGIN(BITMAPS)
VERTEX2II(40, 0, 0, 0)

In NEAREST mode everything good (see first attachment). But in BILINEAR mode you can see dark borders around white box (second attachment)

4
Discussion - EVE / BT81X Bilinear filtering make dark border on bitmaps
« on: February 19, 2021, 08:02:15 AM »
Hello,

I have found that each bitmap in bilinear filtering mode has dark border. On attached picture left image rendered in NEAREST filtering mode and no dark borders. Right image the same but in BILINEAR mode and you can see grey border.
As I understand BT81X just mix black color at the edges that absolutely weird and unacceptable.
Is it any way to do not mix black color at edges in bilinear filtering mode?

5
Discussion - EVE / BT81X rendering ASTC image from flash
« on: February 18, 2021, 03:26:02 PM »
Hello,

I have MatrixOrbital EVE3-35A-IPS screen and trying to render map tiles (240x240px ASTC 4x4) directly from attached 128Mbit flash.
I can render 1 image without transformations but if I try to scale image then screen start blinking black sometimes. EVE works on 72Mhz, PCLK=10
If I copy image from flash to RAMG then it works fine but direct rendering does not work. I don't understand what the reason for direct flash image rendering if it can't process even one small image.
...Or maybe I do something wrong.

Best Regards,
Dmitry

Pages: [1]