PROJECT: Font/Graphics Editor(s)
trodoss
Posts: 577
Listed below are the font/graphics editor(s) that I have been working on.
PC-Based Code
Font Generator (v1.6)
A command-line application used to create "font" (1bpp, 2bpp 8x8 characters) to be used with AIGeneric or Potato_Text-based code. It converts a black/white bitmap image into the Spin source that can be included with your applications.
Graphics Convert (v1.0)
A command-line application used to convert various graphics format files to output usable by either Font Generator or Propeller-based display objects.
Font Generator an Graphics Convert are C# command-line applications (source included) compiled under .NET framework 2.0 (v2.0.50727). If you have the Mono runtime installed on Linux, you should be able to it as well.
Both of the applications are bundled int the Graphics Utilities archive.
Propeller-Based Code
Graphics Editor (v0.5)
A Propeller (Spin) application used to create sprite/graphics in multiple modes and dimensions.
Graphics Editor, unlike the Font Generator, will supports editing/viewing of the characters in multiple "View Modes" (such as 8x8 or 16x16), so that game-style sprite graphics can be created with the characters.
Visit the Propeller Powered SIGfourm kindly hosted at Savage Circuits
Game(s) <a target="_blank" href="http://forums.parallax.com/forums/default.aspx?f=33&m=309427" target=_blank>Mythic Flight
</A>Utilities Font Editors (AIGeneric, Potato_Text, etc.)
Post Edited (trodoss) : 8/4/2010 6:46:26 PM GMT
PC-Based Code
Font Generator (v1.6)
A command-line application used to create "font" (1bpp, 2bpp 8x8 characters) to be used with AIGeneric or Potato_Text-based code. It converts a black/white bitmap image into the Spin source that can be included with your applications.
Graphics Convert (v1.0)
A command-line application used to convert various graphics format files to output usable by either Font Generator or Propeller-based display objects.
Font Generator an Graphics Convert are C# command-line applications (source included) compiled under .NET framework 2.0 (v2.0.50727). If you have the Mono runtime installed on Linux, you should be able to it as well.
Both of the applications are bundled int the Graphics Utilities archive.
Propeller-Based Code
Graphics Editor (v0.5)
A Propeller (Spin) application used to create sprite/graphics in multiple modes and dimensions.
Graphics Editor, unlike the Font Generator, will supports editing/viewing of the characters in multiple "View Modes" (such as 8x8 or 16x16), so that game-style sprite graphics can be created with the characters.
Visit the Propeller Powered SIGfourm kindly hosted at Savage Circuits
Game(s) <a target="_blank" href="http://forums.parallax.com/forums/default.aspx?f=33&m=309427" target=_blank>Mythic Flight
</A>Utilities Font Editors (AIGeneric, Potato_Text, etc.)
Post Edited (trodoss) : 8/4/2010 6:46:26 PM GMT
Comments
I am working through some issues on the Prop-based graphics editor (saving in the .64c format), but hope to have the code released soon.
From the other thread, there is already a 'feature request' of being able to change the color of the characters in the 'Preveiw' pane from OBC. It should be possible in some fashion, but have not looked into that yet.
Feature requests are being accepted? Well... in that case...
- save "DAT" files onto SD cards that can be included into Spin
- two bit per pixel format please [noparse]:)[/noparse]
- eight bit per pixel format please [noparse]:)[/noparse] [noparse]:)[/noparse] [noparse]:)[/noparse]
- for one and two bit per pixel modes 8/16/24/32 bits wide, N lines tall
- for eight bits per pixel Hres=8..32 and Vres=8..32 would be nice
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
Morpheus & Mem+dual Prop SBC w/ 512KB kit $119.95, 2MB memory IO board kit $89.95, both kits $189.95
www.mikronauts.com - my site 6.250MHz custom Crystals for running Propellers at 100MHz
Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
This project appears to be coming along... Perhaps an HSS sound editor for the Prop is in order...
Hmmmm.. Maybe after the expo... [noparse]:)[/noparse]
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
...By .spin files, are you meaning something like what FontGenerator generates (for AIGeneric?) I had been thinking of writing out "raw" bitmap files that could be either included in a DAT section or could be loaded with something like frsw in an application. If you needed to 'view' it you would use the Graphics Editor, right? ...At least, that was what I was thinking [noparse];)[/noparse]
[noparse][[/noparse]Edit:] As a side note, I will probably "scrap" the .64c output. It is not that it can't be done... It sounds like there is not significant interest.
Lots of excellent feedback from a lot of sources! I will try to see what can be done, and "do my homework." I can already tell that I will either need a larger edit pane or support scrolling the image being edited, and that there would need to be lots of "options" for view modes and for saving.
I will change the name to "Sprite Editor," in the future so that it is not confused with an "image editor" program.
Thanks!
Post Edited (trodoss) : 8/21/2009 1:58:11 PM GMT
library of .64c font files which can be downloaded. I actually wouldn't mind being able to
import them into your program, but I really would rather have .spin output like your original
program does. You'll need some sort of file format for saving the files so that they can be re-edited,
so I would imagine that files would be loaded/saved as BMP, then exported to .spin.
I don't think "sprite editor" really applies to this program. It might add confusion for new
programmers, since we really aren't using sprites.
You've got me excited by this project, as I can see this becoming part of a game-creation kit
for people who want to learn how to make easy games. Some of the concepts in the
Hydra book require a good deal of spin knowledge. This will lower the point of entry for new users.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
I had asked if FontGenerator should be rewritten in say GCC, to avoid having to install the Mono runtime for Linux users. Any strong feelings either way?
I don't mind using it. It's pretty easy to create a "bash" process to execute it with mono.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
"Graphics" can imply "sprite + palette mapping" (or to me at least), but I can also see that in this day and age "sprite" is a nebulous term. Eh, maybe I should leave the name well enough alone. Maybe I should call it something like "Splat" ... or, maybe not. Might end up with another "Spinner" [noparse];)[/noparse]
I had been going down the path though of "dynamically loading" the font/graphics in a pre-existing load format (.64c) that AIGeneric supports.
Interesting about the .spin output over just "raw" data that could be included in a DAT section. I am guessing that the aspect of it being a "visual reference" of the characters is important?
As far as "re-editing," yes, one would have to include a form of file header on the data to load back in the configuration in some sort of "internal" file format. I Don't know about using "BMP" (Msft Bitmap) format though, as it includes palettes/RLE. Not a good match for the kind of data one would be working with.
[noparse][[/noparse]Edit:] Re: Mono -- Yes, that is what I have found, but have heard the argument that it takes 100+ megs to load the Mono runtime if it is not present.
Post Edited (trodoss) : 8/21/2009 2:46:53 PM GMT
Baggers was kind enough to include support for the fonts from Aigeneric,
so your current Font editor is useful in this thread as well now.
http://forums.parallax.com/showthread.php?p=838222
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
Yes, there has been progress, but I am re-writing the 'engine' it was written on (originally it was AIGeneric itself), which has been a little slow. It has been a great learning experience though. I now have a *much* better understanding of how the video timing works on the Propeller.
I have been investigating the 'fat pixel' mode graphics as well. Interesting that the old 'Font Generator' has found new life [noparse];)[/noparse]
Very cool... for now I did a quick generator, where I design fonts as C strings, and it spits out a valid DAT file for Spin - but I am looking forward to trying your program!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
Morpheus & Mem+dual Prop SBC w/ 512KB kit $119.95, 2MB memory IO board kit $89.95, both kits $189.95
www.mikronauts.com - my site 6.250MHz custom Crystals for running Propellers at 100MHz
Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
We are well on our way to a game creation kit with this on-prop editor!
Sorry it took me so long to respond. I'm moving my Propstuff back down
into the basement shop with all the Christmas stuff upstairs this season.
(Got some shop cleaning and organizing going on to get setup.)
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
[noparse][[/noparse]Edit:] The "Import BMP" functionality needs to be updated--I finished it, and should be with the next release.
There are a few things I will be trying to tackle:
1) Converting to the new PotatoHead 8x8 text driver
2) How to edit without having to have an SD card (lots of different options to investigate--PC client maybe?)
3) Tackling editing more than 1BPP (will be tackling 4-color soon)
4) Editing "masks" (I had a version working, will be a matter of getting it done)
...Just got back from Dallas this afternoon. Hope to have a little more time this week.
--trodoss
Post Edited (trodoss) : 12/22/2009 5:08:45 AM GMT
The "Import BMP" is now fully included/functioning, and the Help/About windows are present.
The 1BPP Graphics Editor is now converting to the new Potatohead 8x8 display driver.
Other 'Graphics Editor' apps will likely have to have their own 'custom' display driver to handle 4-color graphics.
[noparse][[/noparse]Edit:] After working with Potato_Text,·it looks like·the code·will have to be 'smart' in how the system attempts to refresh the screen (on an action, instead of every main loop cycle).· There is also not an equivelent to GetChar (from AIGeneric), so I had to mod the Potato_Text_Start to include something similar.
If it requires a large amount of rework, it may not be worth the effort.· It may be easier to add the 'autodetect' code from Potato_Text to the Graphics Editor, and work from there, at least for this app.
Post Edited (trodoss) : 12/29/2009 11:02:18 PM GMT
What is your setup on the devevopment end?
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
I've got a couple of SD cards which appear to have worn out.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
Was it the SD card that was causing your video problem?·
--trodoss
http://forums.parallax.com/showthread.php?p=871654
Edit: Update coming soon to the FontGenerator code.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Game(s) Mythic Flight (0.9)
Utilities Font Editors (AIGeneric, Potato_Text, etc.)
Post Edited (trodoss) : 1/19/2010 7:06:14 PM GMT
--trodoss
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Game(s) Mythic Flight
Utilities Font Editors (AIGeneric, Potato_Text, etc.)
(At least with the included example graphic.)
I get some really funky effects when I attempt to use character $00 for anything but a blank square.
Any chance of a feature to go backwards? Something which will read the word entries and
move them back into a .bmp? (As long as I don't add spaces or carriage returns?)
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
That driver uses the simple NTSC signal. Color smearing will happen at 256 pixels and above, and there are no color lookups on it. Have to use $02, because $00 is sync, and if mixed with pixels, the TV is highly likely to trigger on it, distorting the display.
Potato Text multi-color is in development, BTW.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
8x8 color 80 Column NTSC Text Object
Safety Tip: Life is as good as YOU think it is!
Really isn't a bug, since it is just converting patterns, and not assigning colors.· Black = 0, White = 1, Red = 3, Blue = 4.· Those colors are being used symbolically.· I figured using blue/red would be easier to see than trying to edit in "greyscale."
Like Potatohead said, use $02 instead of $00.· Stick to the "safe" colors.· I didn't put in a lookup table in the code.· Potato has this table in code (think it is the old "mode 8" driver):
@Potatohead,
Great to hear that you are working on another driver!·
Technically, yes, code could be written to consume the generated .spin code and produce a bitmap file, but that sounds like a "one shot use" case.· Are you needing to recover graphics from an older set?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Game(s) Mythic Flight
Utilities Font Editors (AIGeneric, Potato_Text, etc.)
I'll sit down tonight and see if I can establish some additional color names for the CON section.
It'll help for the game creation stuff.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
Not really. For some reason I find myself creating the initial graphics with the BMP, then as you can see wind up
doing my fine tuning under spin. If it isn't a difficult trick, I'd love to be able to get my changes back upward
to the .bmp if for no other reason than to be able to distribute the file with the game for others to modify.
Also if you could read only the "word" entries, then a final copy of the font could be re-cooked off FontGenerator
to clean up the comments entries.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
Some of the attachments on the "new" forum have been having problems (they have been truncated/corrupted in the conversion).
You might check on this thread in the old forum:
http://forums.parallaxinc.com/forums/default.aspx?f=33&m=377666
Hopefully the attachment there will download correctly for you. If not, PM me and I will find another way to get that attachment to you.
--trodoss
--trodoss