atarionline.pl What software to use to convert picture to characters - Forum Atarum

    Jeśli chcesz wziąć udział w dyskusjach na forum - zaloguj się. Jeżeli nie masz loginu - poproś o członkostwo.

    • :
    • :

    Vanilla 1.1.4 jest produktem Lussumo. Więcej informacji: Dokumentacja, Forum.

      • 1: CommentAuthorrudla
      • CommentTime16 Feb 2011 14:02 zmieniony
       
      Hi.

      I have relatively simple task. I have small (12x24) picture in 4 colors (Antic 15 mode). I need to convert it to characters (that would make 9 characters). Basically I need to create small font containing just 9 characters.

      As these are animations of sprites for a game, I need to do it in batch.

      What software for Windows would you recommend to do this?
      • 2:
         
        CommentAuthorpirx
      • CommentTime16 Feb 2011 15:02
       
      hello!

      I have made a small pyton lib for such conversions, unfortunately it is using some old graphics libs, but if you wish I could mash-up something for you in python.
      • 3:
         
        CommentAuthorinsert
      • CommentTime16 Feb 2011 15:02
       
      rudla. our game? ;)
      • 4: CommentAuthorrudla
      • CommentTime16 Feb 2011 17:02
       
      insert: yes, finally :-)
      • 5:
         
        CommentAuthorjhusak
      • CommentTime17 Feb 2011 00:02 zmieniony
       
      Here u are, 10 minutes of work.
      U have to have bash, awk and xxd.

      Some linux will do.
      If you do not have linux, you do not know what do you loose.

      t="$(xxd -c 3 -g 1 $1 | cut -d\ -f 2,3,4 | awk '{printf("%d ",(NR-1)/8); print}')"
      for i in 0 1 2; do
      for j in 2 3 4; do
      echo "$t" | grep ^$i | cut -d\ -f $j | xxd -ps -r >char.$i$j
      done
      done
      cat char.?? >$1.font
      • 6: CommentAuthorilmenit
      • CommentTime17 Feb 2011 10:02
       
      Gnuwin32 or Cygwin and who needs linux? ;)
      • 7:
         
        CommentAuthorjhusak
      • CommentTime19 Feb 2011 01:02
       
      -Nothing- and who needs Windows?
      • 8: CommentAuthorrudla
      • CommentTime19 Feb 2011 09:02
       
      I must say, I am surprised, there is no adequate tool. Does not every Atari developer have to solve the same task I do? Do we need to reinvent the wheel every time?

      I will try to write something and will consider making it part of Atalan package (or even the language).

      However I must say, that for me, the state of development tools is little dissatisfying.

      Certainly Jakub feels the same, when I see, how he tries to improve on Envision (and how relatively basic functions he must develop)?

      Btw. are there no contacts between different retro communities?
      I mean, I discovered, for example, that everyone uses different assembler. The requirements are not so different (they are no different at all, I managed to make MADS compile program in appropriate format for every platform I decided).
      That't tremendous waste of effort.

      The same goes for many of the tools. Of course, things like G2F is Atari specific, but good map editor not so much.
      • 9:
         
        CommentAuthorpirx
      • CommentTime19 Feb 2011 09:02
       
      "Once I saw this guy on a bridge about to jump. I said, "Don’t do it!"
      He said, "Nobody loves me."
      I said, "God loves you. Do you believe in God?"
      He said, "Yes."
      I said, "Are you a Christian or a Jew?"
      He said, "A Christian."
      I said, "Me, too! Protestant or Catholic?"
      He said, "Protestant."
      I said, "Me, too! What denomination?"
      He said, "Baptist."
      I said, "Me, too! Northern Baptist or Southern Baptist?"
      He said, "Northern Baptist."
      I said, "Me, too! Northern Conservative Baptist or Northern Liberal Baptist?"
      He said, "Northern Conservative Baptist."
      I said, "Me, too! Northern Conservative Baptist Great Lakes Region, or Northern Conservative Baptist Eastern Region?"
      He said, "Northern Conservative Baptist Great Lakes Region."
      I said, "Me, too! Northern Conservative Baptist Great Lakes Region Council of 1879, or Northern Conservative Baptist Great Lakes Region Council of 1912?"
      He said, "Northern Conservative Baptist Great Lakes Region Council of 1912."
      I said, "Die, heretic scum!", and pushed him off the bridge."