maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Hildonized Mypaint for 2008 OS (https://talk.maemo.org/showthread.php?t=16079)

anders_gud 2008-02-02 19:27

Hildonized Mypaint for 2008 OS
 
Small pressure sensitive painting application written in python and gtk. Requires some python2.5 packages (python2.5-hildon) from maemo/extras.
This is my first go at hildonizing, not complete yet (some osso init stuff is missing still) but it runs fast and responsive on my n810. Hardware keys for zoom and fullscreen implemented.

Files:
http://gudmundson.se

Mypaint homepage with manual and documentation.

Navi 2008-02-15 07:22

Re: Hildonized Mypaint for 2008 OS
 
Any screenshots of the Hildon mypaint?

ArnimS 2008-02-15 09:13

Re: Hildonized Mypaint for 2008 OS
 
Hooray! <rejoicing>

Tip: edit file debian/control file and change the "Section:" to be Section:user/$foo where $foo is one of the categories listed in the application manager's category list.

anders_gud 2008-02-15 19:55

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by ArnimS (Post 142739)
Hooray!
Tip: edit file debian/control file and change the "Section:" to be Section:user/$foo where $foo is one of the categories listed in the application manager's category list.

Oh yes - had red pill mode on so I forgot. Also the "/usr/share/applications/hildon/mypaint.desktop" file has the wrong syntax. It should be:
Code:

Icon=mypaint_26
ie. not the full path...
I'll try to fix it next release :-)
Glad you liked it (64 downloads so far...), it is a "great little" app and very configurable. It was one of the main reasons I got myself a n810 in the first place.
A tip:
It's optimized for wacom boards and alike (that "feels" the stylus hoovering above the board, if you get my meaning) - you may need to adjust the pressure settings to match the screen on the IT. Otherwise you'll get "ghost lines" between points when lifting the pen...
And don't zoom out to much - it will crash when reaching your memory limit.

yerga 2008-02-15 20:07

Re: Hildonized Mypaint for 2008 OS
 
Please, add it to the extras repository.
It's a very nice app.

SamuelDr 2008-02-18 06:29

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by anders_gud (Post 142956)
A tip:
It's optimized for wacom boards and alike (that "feels" the stylus hoovering above the board, if you get my meaning) - you may need to adjust the pressure settings to match the screen on the IT. Otherwise you'll get "ghost lines" between points when lifting the pen...

This app is actually quite nice in its hildonized form, but tell me, where would I change the pressure setting?

Anyway, good work.

anders_gud 2008-02-18 06:55

Re: Hildonized Mypaint for 2008 OS
 
For instance:
Dialogs->Brush settings->Radius (or Opacity)->By Pressure
Adjust the curve. This has to be done for every brush as there is no global pressure setting...

sashabe 2008-02-23 15:03

Re: Hildonized Mypaint for 2008 OS
 
It keeps saying when trying to install: "Incompatible application package"(
OS2008, python2.5-hildon installed.
UPD: It's installed with dpkg -i.

dvergin 2008-02-25 21:24

Re: Hildonized Mypaint for 2008 OS
 
Very nice app. One hitch -- and this is likely because I have failed to find an option setting. If I paint a stroke, then lift the pen, then paint another stroke; Mypaint adds a stroke from the end of the first stroke to the beginning of the second.

So if, for example, I draw an equals sign, it ends up looking like a "Z".

Can this behavior be turned off?

anders_gud 2008-02-25 21:31

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by dvergin (Post 147664)
Very nice app. One hitch -- and this is likely because I have failed to find an option setting. If I paint a stroke, then lift the pen, then paint another stroke; Mypaint adds a stroke from the end of the first stroke to the beginning of the second.

So if, for example, I draw an equals sign, it ends up looking like a "Z".

Can this behavior be turned off?

Yes, see my post above - about ghost lines...

(I didn't modify the drawing code, but my guess is that this could be "corrected" in gtk_my_brush_stroke_to (gtkmybrush.c line 553))

sciboy 2008-03-03 01:27

Re: Hildonized Mypaint for 2008 OS
 
THANK YOU! This is great, only thing is I could probably use some shortcut buttons along the bottom for changing the brush size and color picking in the main window.

awe215 2008-03-04 20:42

Re: Hildonized Mypaint for 2008 OS
 
1 Attachment(s)
Here is some art made with this great app Mypaint. The only problem is that my nokia seems to lock up for minutes at a time when using the app but it is worth it still!

sashabe 2008-03-04 20:46

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by awe215 (Post 150881)
Here is some art made with this great app Mypaint. The only problem is that my nokia seems to lock up for minutes at a time when using the app but it is worth it still!

Cool!) We can start a gallery)

konttori 2008-03-04 21:23

Re: Hildonized Mypaint for 2008 OS
 
This is completely mindblowingly good app. Kudos!
And it's GPL2. Unbelievable.

konttori 2008-03-13 20:12

Re: Hildonized Mypaint for 2008 OS
 
any recent progress? Don't tell us you've abandoned the project!

konttori 2008-03-18 19:36

Re: Hildonized Mypaint for 2008 OS
 
Any progress? It would be great to get a quick toggle brush items to the side of the screen and drop the color selection dialog to be openable from those brush items.

Say... 5 user selectable brushes, each containing color for the brush. The default settings being that one of them is the current default and another is a eraser. Also, ability to open an image as the starting point (png and jpg) would be very welcome.

unique311 2008-03-18 20:14

Re: Hildonized Mypaint for 2008 OS
 
now I'm complete.....

Mypaint and Mtpaint are being worked on.
The worlds cheapest cintiq was what I was looking for, and I think I have it with these cool paint apps

To add to konttori's list.
layers, we need layers....

Also, I notice with the ghost spots.
if you use your fingers the program works fine.
anyone using the tablet without a screen protector?
I think it might be because of the screen protector i'm using.
my screen protector is rubber like, so I think that might be the problem.

unique311 2008-03-18 21:55

Re: Hildonized Mypaint for 2008 OS
 
So I removed the screen protector, and mtpaint works really well now.
but mypaint for some reason the half of the screen is not responding picking up on strokes(left side).
I thought it was a problem with my tablet but i don't think it is because it works in mtpaint.
I tried calibrating the screen, and still the left being difficult.
it does work when I do draw with my fingers instead of the stylus.

viktorfrankl 2008-03-18 23:35

Re: Hildonized Mypaint for 2008 OS
 
sorry for being annoying, but how can i fix the "Incompatible application package" problem? i really want to try this out!

unique311 2008-03-19 00:00

Re: Hildonized Mypaint for 2008 OS
 
open terminal
sudo gainroot
dpkg -i mypaint***.deb



Quote:

Originally Posted by viktorfrankl (Post 157093)
sorry for being annoying, but how can i fix the "Incompatible application package" problem? i really want to try this out!


dan 2008-03-19 09:13

Re: Hildonized Mypaint for 2008 OS
 
way cool!!
mypaint and mtpaint on my n800.
keep up the great work on Mypaint.
The brush selection is amazing for n800 device.
Off topic: Anyone know if we can get brush effects on photos. New to this stuff so be
gentle.Many thanks for Mypaint port. Dan

anders_gud 2008-03-19 09:30

Re: Hildonized Mypaint for 2008 OS
 
1 Attachment(s)
Quote:

Originally Posted by konttori (Post 154559)
any recent progress? Don't tell us you've abandoned the project!

No - I've been busy painting in real life :-). Besides I'm not the author, I just ported it...

Quote:

Originally Posted by konttori (Post 156981)
Any progress? It would be great to get a quick toggle brush items to the side of the screen and drop the color selection dialog to be openable from those brush items.
Say... 5 user selectable brushes, each containing color for the brush. The default settings being that one of them is the current default and another is a eraser. Also, ability to open an image as the starting point (png and jpg) would be very welcome.

Yes, that would be nice...
Customizing the UI (Menus, buttons, placement) should be trivial as is it's Python, the drawing area and brush handling is a C Python module.
I'll need help from all of you to optimize MyPaint for the IT, I've put the .src and .dsc at my site and those of you who has the SDK
installed and working - get the source and start hacking... All contributions are welcome!

This is a preliminary TODO:
Quote:

osso-init voodoo (where to put...) for dbus service registration.
deb packaging (debian/control add missing python dependencies, add to "user" for easy install)
Makefiles: hildon specific data dirs locations, files: service, desktop...
ifdef maemo/hildon specific stuff or add patches
submit changes upstream
Limit the zoom-out level. As of now it's easy to crash the app with one too many clicks on the "-" button.

Next step:
Optimize touchscreen usage (ghost lines, pressure reporting, stroke handling)
Add toggleable palette/brush menu in drawing area for fullscreen usage (you mean that, konttori?)
Global pressure settings anyone?
Remove the bottom status bar, at least in fullscreen mode
Speed optimization? Lagging stylus makes it hard to go into right-brain mode...
Visual feedback when adjusting brush size, opacity etc (a temporary circle indicating brush size for 0.5 sec after switching)
From the mypaint list I read that the author is busy doing other stuff but intends to work on alpha (eraser) and layers in MyPaint.
I haven't been in touch with him (the author) but I'll be signing up for the list. I encourage you to do the same and let him know
we love his app, and that it fills an important niche on the growing free mobile OS'es (maemo, ubuntu mobile, moko)

Quote:

Originally Posted by unique311 (Post 157067)
So I removed the screen protector, and mtpaint works really well now.
but mypaint for some reason the half of the screen is not responding picking up on strokes(left side).
I thought it was a problem with my tablet but i don't think it is because it works in mtpaint.
I tried calibrating the screen, and still the left being difficult.
it does work when I do draw with my fingers instead of the stylus.

Pressure is not reported consistently across the screen on the IT (a drawback of this kind of touchscreen) but I think it's usable anyway.
Mine loses sensitivity along the edges...
You can enable debug output from the menu and watch the values... (If you start from x-term)
On my n810 (typical values):
Pen: 0 - 0.170
Finger: 0 - 0.500

Use these output ranges when adjusting the brush pressure values...

BTW. I have not noticed any of the slowdowns reported (exept when using the experimental lift/lower strokes feature) what's happening and when?
Is it a harware related issue (I have a n810)?

Deaj 2008-04-02 20:36

Re: Hildonized Mypaint for 2008 OS
 
Wow! This is a great application - thanks Anders! :)

kingka 2008-04-03 04:40

Re: Hildonized Mypaint for 2008 OS
 
I'm having issues installing. can anyone help?

I get "unable to unstall mypaint incomplete app package"

ArnimS 2008-04-03 18:47

Re: Hildonized Mypaint for 2008 OS
 
1 Attachment(s)
Quote:

Originally Posted by kingka (Post 164341)
I'm having issues installing. can anyone help?

I get "unable to unstall mypaint incomplete app package"

Fixed package. (changed section to user/other)
http://pupnik.de/mypaint_0.5.0-1~hildon1_armel.deb

This is anders_gud's build of mypaint - not mine. It has the following dependencies. These will not be automatically installed when you install the mypaint.deb from a file (this is an unfortunate feature of the application installer).

Depends: libatk1.0-0 (>= 1.12.2), libc6 (>= 2.5.0-1), libcairo2 (>= 1.4.10), libglib2.0-0 (>= 2.12.12-1osso3), libgtk2.0-0 (>= 2:2.10.12-0osso15), libpango1.0-0 (>= 1.16.4), python2.5-gtk2, python2.5-hildon

(edit: Usage)

1) Make use of a scratch area - you can scroll left/right with dpad to your scratch area to do 'practice strokes' for each new brush/color setting

2) (N810 users) make use of keyboard shortcuts! I found that with black and white sketching, the X key inverts the color, allowing for a fast 'eraser' toggle. Also note the following mappings:
F Bigger Brush
D Smaller Brush
S More Opaque
A Less Opaque
R Pick Color
Ctrl+Z undo (very slow!)
Ctrl-Y redo
3) Leave your brush (and if you use it, color picker) dialogues open. Switch between main view and brush/color dialogues by clicking on the app-icon in the taskbar and selecting your window. This is a lot faster than closing and re-opening the brush window

4) Save often! The big advantage of drawing on a computer is "cheating" by undoing mistakes :)

5) Use a 'light pencil' to sketch initial outlines to help you get the proportions right. I'd love to have one layer reserved for the 'outline sketch' that is toggle-able. (Since often the outline sketching uses lines that don't really appear in the actual image.)

--------------

wishlist/todo stuff

- Remove the bottom status bar, at least in fullscreen mode
- Speed optimization? Lagging stylus makes it hard to go into right-brain mode
- Visual feedback when adjusting brush size, opacity etc (a temporary circle indicating brush size for 0.5 sec after switching)

------------------------
(edit2) this app is MADE FOR DOODLING! :) :) :) i love it!

anders_gud 2008-04-03 21:55

Re: Hildonized Mypaint for 2008 OS
 
Thanks Pupnik/ArnimS!
Updated the .deb and .src at my site with your changes, dependencies and App Icon fix. Note! This is only a packaging update - no changes in functionality...
No osso-init stuff yet, would be nice to have some loading feedback.

Quote:

Originally Posted by ArnimS (Post 164620)
wishlist/todo stuff

- Remove the bottom status bar, at least in fullscreen mode
- Speed optimization? Lagging stylus makes it hard to go into right-brain mode
- Visual feedback when adjusting brush size, opacity etc (a temporary circle indicating brush size for 0.5 sec after switching)

I'll add it to the TODO list in the post above...
Thanks again :-)
Anders

BTW. 296 MyPaint downloads so far, nice...

ArnimS 2008-04-03 23:13

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by anders_gud (Post 164714)
I'll add it to the TODO list in the post above...

Ok another easy but important change is:

Limit the zoom-out level. As of now it's easy to crash the app with one too many clicks on the "-" button. (and losing a drawing to a crash is frustrating!)

(edit) I think this is the app that completely transforms the device for me. I'm starting to see the potential here for a real killer app.

Edit: A collection of hi-res vintage b/w photos (sfw) to use for sketching motifs. http://www.shorpy.com/

RogerS 2008-04-04 03:11

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by ArnimS (Post 164748)
I think this is the app that completely transforms the device for me. I'm starting to see the potential here for a real killer app./

I have to agree — this is a transformative application:

- you have to have a touch-sensitive tablet to really draw with a computer
- you really need the high-res screen the Nokia tablets have
- the app has to be drawing-oriented, which really means brush-oriented, and not editing-oriented

What a great gift you have given us with this port, Anders!

GeneralAntilles 2008-04-04 03:15

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by ArnimS (Post 164748)
(edit) I think this is the app that completely transforms the device for me. I'm starting to see the potential here for a real killer app.

I'm with you. Getting the hotkeys and interface to be as fluid and intuitive as possible should probably be the number one priority. I find myself stumbling over the interface a bit right now, and I think a good hotkey setup could really help here.

ArnimS 2008-04-04 06:48

Re: Hildonized Mypaint for 2008 OS
 
OK i've made some changes

* removed statusbar
* limited zoom-out to 0.5 scale minimum (reduce crashes)
* remapped hotkeys for more useful N810 experience
* recompiled with faster CFLAGS (seems faster at least)
* hildon banner show information when command key is pressed (e.g. zoomlevel)
-------------------------------------------------trying to implement
- a pop-up rectangle in the corner to use as a custom pallette (see how you can mix your own palette with blend tool below)

http://pupnik.de/playskuul.jpg

anders_gud 2008-04-04 07:17

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by ArnimS (Post 164869)
OK i've made some changes

* removed statusbar
* limited zoom-out to 0.5 scale minimum (reduce crashes)
* remapped hotkeys for more useful N810 experience
* recompiled with faster CFLAGS (seems faster at least)
-------------------------------------------------trying to implement
- hildon banner show information when command key is pressed (e.g. zoomlevel)

Great! Can you make a diff and post it, and I'll update my sources.
I think we have to #ifdef Hildon-specific changes (or what's the best way to do this)... And contact the original author.
I won't have time to look at this until tonight (swedish time). Keep on hacking...
:-)
Thanks Anders

ArnimS 2008-04-04 10:15

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by anders_gud (Post 164884)
Great! Can you make a diff and post it, and I'll update my sources.
I think we have to #ifdef Hildon-specific changes (or what's the best way to do this)... And contact the original author.
I won't have time to look at this until tonight (swedish time). Keep on hacking...
:-)
Thanks Anders

The only code changes (see my prior post) went into.
drawwindow.py

If you want to test these, first back-up
/usr/share/mypaint/python/drawwindow.py
then copy this version over it.

For those with N810s here's a little cheat-sheet for the keyboard controls:

http://pupnik.de/mypaint_cmds1sm.jpg

I just made these changes to suit my tastes, really. Feel free to use them if you like them of course!

ok i HAVE to STOP.

http://pupnik.de/igannik.jpg

Karel Jansens 2008-04-04 14:06

Re: Hildonized Mypaint for 2008 OS
 
Any chance this could be made to work on OS2007?

mobiledivide 2008-04-04 14:11

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by ArnimS (Post 164914)


ok i HAVE to STOP.

http://pupnik.de/igannik.jpg

Beautiful drawing, this program and Numptyphysics have redefined my tablet use over the last few days.

RogerS 2008-04-04 14:24

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by GeneralAntilles (Post 164835)
I'm with you. Getting the hotkeys and interface to be as fluid and intuitive as possible should probably be the number one priority. I find myself stumbling over the interface a bit right now, and I think a good hotkey setup could really help here.

Within the first half-hour of use, I had remapped every key that I'd used more than once already -- Z for undo, . (dot) for clear, J I L ; for the scroll directions.

I wonder though what reliance on the keyboard does for N800 use — and I'm expecting my two kids to want to tablet-draw at the same time (it's the nature of siblings, right?).

Maybe a customizable tool palette could be kept on-screen so a single tap performs one of those actions or any other that one really wants — a couple brushes, the opacity dialog, zoom, brush size, etc. Even show the main menu, to enable a consistent "tap" interface.

This isn't a complaint — having MyPaint is so fabulous I'm just anticipating dealing with the family demand.

Me, I'm still tryijng to figure out the difference between Speed1 and Speed2. I hope we can get an expanded How-To soon for the NIT version.

Roger

unique311 2008-04-04 22:15

Re: Hildonized Mypaint for 2008 OS
 
still ok in my eyes...
mtpaint all the way......

kingka 2008-04-05 04:15

Re: Hildonized Mypaint for 2008 OS
 
sorry, how do I install this. it says it depends on python2.5-hildon. where can I get this? :(

GeneralAntilles 2008-04-05 04:20

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by kingka (Post 165320)
sorry, how do I install this. it says it depends on python2.5-hildon. where can I get this? :(

Enable Extras.

kingka 2008-04-05 04:25

Re: Hildonized Mypaint for 2008 OS
 
how do I enable extras?

GeneralAntilles 2008-04-05 04:33

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by kingka (Post 165325)
how do I enable extras?

Application manager -> Menu: Tools -> Application catalog...: maemo Extras -> Edit: Uncheck Disabled -> OK -> Close -> OK


All times are GMT. The time now is 07:07.

vBulletin® Version 3.8.8