avatar_Sid_

Martine a cpc old / Plus tool to handle your images

Started by Sid_, 15:20, 24 January 20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GUNHED

Great! And thank you for using English, so we all can read it.  :) :) :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Sid_

New release.
You can find it here https://github.com/jeromelesaux/martine/releases/tag/v0.26
A lot of bugs fixed, oneline and onerow (allow you to display one line or one row each).


Stay tuned, ^^


Sid

Sid_

Hi all,


a new prod shows Martine animation capabilities and can be downloaded on pouet here : [size=78%]https://www.pouet.net/prod.php?which=86955[/size]


All code and data files (images, script) can be found on GitHub : https://github.com/jeromelesaux/autobahn-showcase


Thanks @siko for all ^^

Arnaud

Hi,
i'm trying to convert CPC Plus Sprite Hardware with Martine and it doesn't work as i want it to.

[attach=1,msg195792]

martine.exe ship.png -spritehard -m 1 -tile -w 16 -h 16 -o output

What i'd like, generate sprites 16x16 with HardwareSprite format with 16 colors to a text file

What i got, only of sprite 16x16 in mode 1 with 4 colors

Thanks,
Arnaud



Sid_

Well the documentation is not complet.
the sprite hard is an option dedicated to the cpc plus so you need to add -p (for plus).
martine.exe ship.png -spritehard -m 1 -tile -w 16 -h 16 -o output -p

Arnaud

Thanks but don't seems to work no more :

martine.exe ship.png -spritehard -m 1 -tile -w 16 -h 16 -o output -p

Here my output dir.

Sid_

missing the input option -I
I never use -tile with sprite hard option I must check the behavior.



martine.exe -i ship.png -spritehard -m 1 -tile -w 16 -h 16 -o output -p
[/size]


Arnaud

@Sid_ Ok i can generate a sprite 16x16 (with source of the same size) but tile function is not working for now.

Sid_

@Arnaud you're right the tile function on sprite hard in not coded.
If such functionality interest you, tell me I will coded it.


Sid

Sid_

By using tile option what do you expected ?
Do you mean the same usage as zigzag or rra option ?
You want to compile your sprite ?
What kind of treatment you want ?
I 'm interested by your usages.


Sid

ComSoft6128

Hi @Sid_  ,


Is there a slideshow available for this yet?
If so I would like to record it for a YT video.


Cheers,


Peter

Sid_

well it's in wip, I just coded a little intro (with Siko) for now https://www.pouet.net/prod.php?which=86955.
It's a delta mode intro ^^.


Sid

Arnaud

Quote from: Sid_ on 10:51, 28 December 20By using tile option what do you expected ?

Hi @Sid_,
i need to convert an image (see my previous image as example) into HW Sprites arrays in C format (same behaviour as img2cpc) including the palette (in another file eventually).

An option to compress sprites or simply use 1-Byte for 2 pixels will be great.

Here an output example :

const unsigned char sprite_ship_0[] =
{
...
};
const unsigned char sprite_ship_1[] =
{
...
};
...
const unsigned char sprite_ship_7[] =
{
...
};

unsigned char* const tileset_ship[] =
{
   sprite_ship_0,
   sprite_ship_1,
..
   sprite_ship_7
};

// 0x0GRB
const unsigned word hw_sprite_palette[] =
{
0x0000,
0x02A0,
...
}


Sid_

Martine already handle sprite and compression on sprite using -z option :

  -z int
       Compression algorithm :
          1: rle (default)
          2: rle 16bits
          3: Lz4 Classic
          4: Lz4 Raw
and pixel position in sprite like option -zigzag (same as imgcpc)


For the sprite hard (only for Amstrad CPC plus), nothing is already done. And if you wanted to apply those options on sprite hard tell me.
Sid

Arnaud

Quote from: Sid_ on 18:21, 28 December 20For the sprite hard (only for Amstrad CPC plus), nothing is already done. And if you wanted to apply those options on sprite hard tell me.

Yes it could be useful :)

Sid_

features accepted :D.
I'll added those features to sprite hard.
Sid

Sid_

a new release is available https://github.com/jeromelesaux/martine/releases/tag/v0.27.
Now compression and zigzag feature can be applied to all sprites format (soft and hard).


Sid

Sid_

new release is available with a lot of bugs fixed :
https://github.com/jeromelesaux/martine/releases/tag/v0.28


next step will be to add some crunchers and improve rasters option.

SkulleateR

Any chance for a ARM 64Bit binary ? Tried to compile, but I get a lot of errors (maybe because I'm not a coder myself) ......

Sid_

Yep I can do it. I'll try tomorrow and if succeed, I'll provide it in the next release.


Sid_

Quote from: SkulleateR on 01:58, 20 March 21Any chance for a ARM 64Bit binary ? Tried to compile, but I get a lot of errors (maybe because I'm not a coder myself) ......



May you test this archive ?
                              martine-0.28-arm64.zip             

SkulleateR

Quote from: Sid_ on 13:23, 21 March 21
May you test this archive ?

Tested but it looks weird ...




sudo ./martine -i test.png -m 0 -dithering 10 -dsk
./martine: 1: ./martine: ELF: not found
./martine: 1: ./martine:  e e: not found
./martine: 1: ./martine: @W@@R0Qåte@: not found
./martine: 2: ./martine: ¨o¨oAÀoA



Sid_

Ok not good architecture I'll try another. Sorry I don't have a 64 bits arm to test my self.
May you type uname -a ?

SkulleateR

Quote from: Sid_ on 20:59, 21 March 21
Ok not good architecture I'll try another. Sorry I don't have a 64 bits arm to test my self.
May you type uname -a ?




uname -a
Linux raspberrypi 5.4.73v64 #2 SMP PREEMPT Tue Nov 3 16:11:05 CET 2020 aarch64 GNU/Linux

Sid_

ok I tried to define the processor in the compilation command line (my bad).
This version may fix the problem : [size=78%]martine-0.28-arm-64bits.zip[/size]


Regards




Powered by SMFPacks Menu Editor Mod