Example

I'm working on a tool...

5

SP4CEBAR 2022-08-29 09:20 (Edited)

...that uses ROM to store rotated characters, and load one of them at a tine to update a sprite's character, to make real time rotating sprites


SP4CEBAR 2022-08-29 12:49

I got a little confused because a test of decoding and encoding multi-cell images worked first-try


was8bit 2022-08-29 16:01

Looking cooler every post :D


SP4CEBAR 2022-08-30 08:59

Thank you!


SP4CEBAR 2022-08-30 09:08 (Edited)

I had some trouble with the data lay-out
By default in NX a multi-celled sprite uses multiple "lines" of characters (from VFX designer), this could work for sprites with a size of 0, 1, 3, 7, or 15, (width: 1,2,4,8,16) (yes it supports multi-sprite sprites) but if the sprite size is something like 2 (width: 3), then it should have a gap every 15 cells (3/16= 5 with a remainder of 1), or it needs to write them really flexible, to be able to write 1/3 of the sprite on one line, and the rest on the next line, but I think it doesn't make sense for me to store characters like that, So I changed the data lay-out to have all the lines of a character, right next to another, like this: C00, C01, C02, C10, C11, C12, C20, C21, C22, this means I need to debug the whole thing again, and that may take a while


was8bit 2022-08-30 12:29

Best of luck!


SP4CEBAR 2022-08-30 19:50

Thanks


SP4CEBAR 2022-09-03 15:57 (Edited)

It's finally done!
You can use it to rotate vehicles of any size in real-time, you can use any character


Log in to reply.