Author Topic: Martine a cpc old / Plus tool to handle your images  (Read 7782 times)

0 Members and 1 Guest are viewing this topic.

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.613
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 1231
  • Likes Given: 2907
Re: Martine a cpc old / Plus tool to handle your images
« Reply #25 on: 13:21, 23 April 20 »
Great! And thank you for using English, so we all can read it.  :) :) :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.06.01)

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #26 on: 18:20, 12 June 20 »
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

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #27 on: 12:16, 24 September 20 »
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 ^^

Offline Arnaud

  • Supporter
  • 6128 Plus
  • *
  • Posts: 690
  • Country: fr
  • Liked: 614
  • Likes Given: 1258
Re: Martine a cpc old / Plus tool to handle your images
« Reply #28 on: 14:41, 23 December 20 »
Hi,
i'm trying to convert CPC Plus Sprite Hardware with Martine and it doesn't work as i want it to.


* ship.png
(0.95 kB, 32x64 - viewed 342 times)


Code: [Select]
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


« Last Edit: 19:23, 23 December 20 by Arnaud »

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #29 on: 17:42, 23 December 20 »
Code: [Select]
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

Offline Arnaud

  • Supporter
  • 6128 Plus
  • *
  • Posts: 690
  • Country: fr
  • Liked: 614
  • Likes Given: 1258
Re: Martine a cpc old / Plus tool to handle your images
« Reply #30 on: 19:20, 23 December 20 »
Thanks but don't seems to work no more :

Code: [Select]
martine.exe ship.png -spritehard -m 1 -tile -w 16 -h 16 -o output -p
Here my output dir.
« Last Edit: 19:43, 23 December 20 by Arnaud »

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #31 on: 21:13, 23 December 20 »
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]


Offline Arnaud

  • Supporter
  • 6128 Plus
  • *
  • Posts: 690
  • Country: fr
  • Liked: 614
  • Likes Given: 1258
Re: Martine a cpc old / Plus tool to handle your images
« Reply #32 on: 22:42, 23 December 20 »
@Sid_ Ok i can generate a sprite 16x16 (with source of the same size) but tile function is not working for now.

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #33 on: 11:46, 28 December 20 »
@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

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #34 on: 11:51, 28 December 20 »
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

Offline ComSoft6128

  • ..................................
  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.133
  • Country: scotland
  • CPC THEN CPC NOW
    • index.php?action=treasury
  • Liked: 2307
  • Likes Given: 4552
Re: Martine a cpc old / Plus tool to handle your images
« Reply #35 on: 12:06, 28 December 20 »
Hi @Sid_  ,


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


Cheers,


Peter

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #36 on: 13:11, 28 December 20 »
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

Offline Arnaud

  • Supporter
  • 6128 Plus
  • *
  • Posts: 690
  • Country: fr
  • Liked: 614
  • Likes Given: 1258
Re: Martine a cpc old / Plus tool to handle your images
« Reply #37 on: 19:06, 28 December 20 »
By 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 :

Code: [Select]
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,
...
 }

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #38 on: 19:21, 28 December 20 »
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

Offline Arnaud

  • Supporter
  • 6128 Plus
  • *
  • Posts: 690
  • Country: fr
  • Liked: 614
  • Likes Given: 1258
Re: Martine a cpc old / Plus tool to handle your images
« Reply #39 on: 19:36, 28 December 20 »
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.

Yes it could be useful :)

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #40 on: 19:40, 28 December 20 »
features accepted :D.
I'll added those features to sprite hard.
Sid

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #41 on: 11:46, 29 December 20 »
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

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #42 on: 12:01, 26 February 21 »
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.

Online SkulleateR

  • 464 Plus
  • *****
  • Posts: 343
  • Country: de
  • Liked: 188
  • Likes Given: 99
Re: Martine a cpc old / Plus tool to handle your images
« Reply #43 on: 02:58, 20 March 21 »
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) ......

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #44 on: 00:46, 21 March 21 »
Yep I can do it. I’ll try tomorrow and if succeed, I’ll provide it in the next release.


Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #45 on: 14:23, 21 March 21 »
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) ......



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

Online SkulleateR

  • 464 Plus
  • *****
  • Posts: 343
  • Country: de
  • Liked: 188
  • Likes Given: 99
Re: Martine a cpc old / Plus tool to handle your images
« Reply #46 on: 20:52, 21 March 21 »

May you test this archive ?

Tested but it looks weird ...


Code: [Select]

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


Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #47 on: 21: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 ?

Online SkulleateR

  • 464 Plus
  • *****
  • Posts: 343
  • Country: de
  • Liked: 188
  • Likes Given: 99
Re: Martine a cpc old / Plus tool to handle your images
« Reply #48 on: 00:38, 22 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 ?


Code: [Select]

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

Offline Sid_

  • CPC664
  • ***
  • Posts: 121
  • Country: fr
  • Liked: 103
  • Likes Given: 284
Re: Martine a cpc old / Plus tool to handle your images
« Reply #49 on: 11:18, 22 March 21 »
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