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.

Topics - jlewis

Pages: [1]
1
Discussion - EVE / Rotating images, and CMD_TEXT not showing
« on: December 21, 2023, 11:21:12 PM »
Hello,

I've loaded some images from flash and one in particular I am loading and then rotating several times.  I don't understand the transform/translate stuff so I couldn't get CMD_ROTATE to work.  I am using CMD_ROTATEAROUND which is fine, but even then I have to make my image square or else some part will be clipped off after rotation.

Is there a good explanation anywhere on what the CMD_TRANSLATE does, and how it interacts with CMD_LOADIDENTIY, CMD_SETMATRIX, and CMD_ROTATE?

I'm basically making the 4 quadrants of a circle by loading one quadrant image and then rotating it 3 times to complete the circle.  Is it better to do that, or to have 4 quadrant images already rotated in the correct way and avoid the rotation?

So I've loaded and rotated like so:
CMD_FLASHREAD(0, 8512, 18496)
CMD_SETBITMAP(0, COMPRESSED_RGBA_ASTC_8x8_KHR, 272, 272)
BEGIN(BITMAPS)
CMD_LOADIDENTITY()
VERTEX2F(4233, 3225)
CMD_ROTATEAROUND(136, 136, 16384, 65536)
CMD_SETMATRIX();
VERTEX2F(1744, 5472)
END()

If after that I try to add:
COLOR_RGB(241, 28, 0)
CMD_TEXT(296, 152, 30, 0, "VH6C-101")

The text does not show up.  I can move it above the FLASHREAD and it works.  If I take out either the CMD_ROTATEAROUND or CMD_SETMATRIX it works.  If I go in to the Inspector window of EVE Screen Editor I can see in the RAM_DL that there are several commands, then a DISPLAY(), then a couple more VERTEX2II commands, then the rest of RAM_DL is filled with DISPLAY().  So it doesn't seem like that first DISPLAY() should be there, right?

Also, is there any way to modify a small part of what is already drawn on screen, like changing some text or changing the color of something, without having to redo the whole display list?

Thank you for any help.

2
Discussion - EVE / Images not loading correctly in EVE Screen Editor
« on: December 19, 2023, 06:17:15 PM »
Hello, I'm new to working with displays so bear with me.  I can't find any good full set of instructions for how to take a PNG, run it through the Asset Builder, create a flash file, and get it to load properly in the EVE Screen Editor.  The best I've found is section "H. Project Settings" in the EVE manual. 

To make it simple I started with a bitmap instead of my PNG, and ran it through the Converter tab of the Image Utilities in the Asset Builder.  I started with the default output format of ARGB1555, but that didn't work and I had read elsewhere that some files only load from flash if they're in ASTC format so I chose COMPRESSED_RGBA_ASTC_4X4_KHR.  Everything looked good there, so then I went to the Flash Utilities section.  I wasn't sure which file to add to the flash image but I've gotten farthest with the astc file.  Created flash file bin and map files and all good so far.

Then in ESE I load the map file as described in the manual and I get 4 items in the content window:
Status.  | Name
--------------------------------------------------------------
Flash.    | EDF Block
Overlap | bmp_24_200x200xCOMPRESSED...astc
Overlap | bmp_24_200x200xCOMPRESSED...astc.pad
Builtin   | bt817.blob

I assume the .pad file is to get the alignment that EVE wants.  Is it ok that it overlaps?  Does something need to be adjusted?  What is the blob for?  Why is it builtin?

Then I try to drag the astc file to the editor window and it crashes ESE.  I'm asked if I want to save the changes, and when I say yes, it then closes the app. 

Then trying to work around whatever is wrong with the drag and drop (it's worked before when just add images directly to the content manager), I type this into the Coprocessor window (having pieced together the various commands and parameters from other experiments):
CLEAR(1,1,1)
CMD_SETBITMAP(0x800000 | 134, COMPRESSED_RGBA_ASTC_4x4_KHR, 200, 200)
BEGIN(BITMAPS)
VERTEX2II(10,10,0,0)
END()

And I get a 200x200 image, but it's crammed 2 instances of my image side by side into the space of 200x200, and it's all distorted.  I'll attempt to attach a screen shot.  And here is where I'm stuck.  Could anybody help me with this please?  Thanks!

Pages: [1]