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)

unique311 2008-04-16 00:25

Re: Hildonized Mypaint for 2008 OS
 
let me know when you find a fix qole.
I wouldn't mind using mypaint to do some works of art....
Mypaint is too technicall for me when it comes to messing with the brush options.

unique311 2008-04-16 00:27

Re: Hildonized Mypaint for 2008 OS
 
hmmm, i do remember dropping my device a couple of times....but that can't be the issue.....oh how i wish mtpaint made use of pressure sensitivity.
wonder if mtpaint would point out the same issue.


edit.....
what i find really strange is that i can use my finger with no type of force in that area the stylus doesn't work and get it to work.
so if it was a hardware problem wouldn't using even a finger not work.

?????????????????????????????????????????????????? ??????????????

drpill 2008-04-16 04:40

Re: Hildonized Mypaint for 2008 OS
 
Interesting... I have a dead spot while using mypaint, in roughly the same area... I had assumed it was unique to my tablet, but that's obviously not the case. The bundled sketch problem seems to register stylus movement on this part of the tablet, but mypaint doesn't, except when I use a good deal of force.

unique311 2008-04-16 15:22

Re: Hildonized Mypaint for 2008 OS
 
it registers when you use fingers also...try it.

Quote:

Originally Posted by drpill (Post 170369)
Interesting... I have a dead spot while using mypaint, in roughly the same area... I had assumed it was unique to my tablet, but that's obviously not the case. The bundled sketch problem seems to register stylus movement on this part of the tablet, but mypaint doesn't, except when I use a good deal of force.


RogerS 2008-04-16 15:29

Re: Hildonized Mypaint for 2008 OS - eraser?
 
Is one (or are some) of the default brushes already set up as an eraser?

I realize that changing the color to white will enable me to cover over or remove something I don't want. But there are already a lot of default brushes that have been built. I'd rather not have to define my own hard-edged white-color-default brush for erasing if I don't have to.

Thanks,

Roger

Navi 2008-04-17 12:54

Re: Hildonized Mypaint for 2008 OS - eraser?
 
Quote:

Originally Posted by RogerS (Post 170560)
Is one (or are some) of the default brushes already set up as an eraser?

Roger

Nah, but you can save a brush with size and color properties by going into the menu and going to Brush > Brushkeys > Save #. Then you can restore it at any time.

qole 2008-04-21 18:52

Re: Hildonized Mypaint for 2008 OS
 
So, is there any hope for the dead-spot problem? I really want mypaint on the tablet, and it is not usable until there's some kind of pressure-amplifier or something. Even just having a config file that lets me add a fixed number to the pressure values would be a great start...

I wonder if it is a rounding error in Mypaint? Maybe the pressure value is 0.004 and it is getting rounded to 0.00?

unique311 2008-04-21 19:01

Re: Hildonized Mypaint for 2008 OS
 
a config file of a working mypaint would be nice.
but i don't think mypaint has a config file.
if it does can someone provide por favor...


Quote:

Originally Posted by qole (Post 172709)
So, is there any hope for the dead-spot problem? I really want mypaint on the tablet, and it is not usable until there's some kind of pressure-amplifier or something. Even just having a config file that lets me add a fixed number to the pressure values would be a great start...

I wonder if it is a rounding error in Mypaint? Maybe the pressure value is 0.004 and it is getting rounded to 0.00?


braveally 2008-04-22 17:43

Re: Hildonized Mypaint for 2008 OS
 
wow, this program is great. Way cool use of a NIT. I have a question and i don't think i quite seen it here. When i'm painting, if i move to draw in a different location the program will fill in the line between the last two points of my stylus. Is this a glitch or is there a way to stop it? anyone else experiencing it?

qole 2008-05-13 18:36

Re: Hildonized Mypaint for 2008 OS
 
Ok, I'm starting to think this is a low-level thing. I ran mtpaint in Debian, and I'm getting identical, really low values for pressure. The same spots are "dead" too. Interestingly, I'm also getting negative values for X and Y coordinates! This suggests that Hildonized programs have some sort of workaround for the weird numbers the touchscreen returns.

Both Gimp and MTPaint have a tablet device configure page that allows you to select the X, Y and Z coordinates, but that's it. No way to calibrate the tablet or adjust the numbers.

There must be some way to configure this. I'm trying to find the configuration files, anyone have any ideas? Is there an Xomap config file like xorg.conf? Does anyone know of a standard Linux tablet calibration program?

Bundyo 2008-05-13 19:07

Re: Hildonized Mypaint for 2008 OS
 
There is some sort of tuning in mtpaint config.

qole 2008-05-13 23:39

Re: Hildonized Mypaint for 2008 OS
 
Yes, I did that. I turned the volume all the way up to 11.

EDIT: I installed and ran the Bundyo Build of mtPaint, and the pressure stuff works a lot better, although there's no way, in either mtPaint, to calibrate the touchscreen. I think there are some X server problems going on here, between my Debian install and the Hildon desktop.

anders_gud 2008-06-01 20:55

Re: Hildonized Mypaint for 2008 OS
 
New build out!
Includes:
- Patch from Martin Renold (the Mypaint author), fix for "ghost lines".
"workaround attempt for devices that don't report motion events without pressure (bug #11557)"
- Built with -O3 and -mcpu=arm1136j-s -mfpu=vfp -mfloat-abi=softfp

GeneralAntilles 2008-07-13 21:45

Re: Hildonized Mypaint for 2008 OS
 
This is really such a great application, any chance of getting it into Extras?

staniam 2008-07-16 03:50

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by anders_gud (Post 187777)
New build out!
Includes:
- Patch from Martin Renold (the Mypaint author), fix for "ghost lines".


I would really like to use this app but even when using the latest, I get major problems with 'ghost lines'. Basically the program is unusable for me unless I can resolve this.

I did try:
- changing Radius > By Pressure (per earlier post)
- changing Opaque > By pressure (tried several settings)
- Using the drawwindow.py file offered by ArnimS

Of course, I have no idea what I am doing when changing the brush settings. Would be nice to have some idea, but did not find any info online about what these settings do.

Any helpful suggestions greatly appreciated!

Staniam N800/Diablo

Dmitri 2008-07-18 17:24

Re: Hildonized Mypaint for 2008 OS
 
I just tried the application for the first time on my Nokia N810 (no protective screen). I experienced some ghost lines (with default settings), but otherwise it's a great app.

It would be really great if it was in Extras repository. :D

vjoh 2008-09-14 04:11

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by anders_gud (Post 187777)
New build out!
Includes:
- Patch from Martin Renold (the Mypaint author), fix for "ghost lines".
"workaround attempt for devices that don't report motion events without pressure (bug #11557)"
- Built with -O3 and -mcpu=arm1136j-s -mfpu=vfp -mfloat-abi=softfp

Well, in my case the "ghost lines" still appear even with the newest version you're referring to (0.5.0.1). About 3 months ago, Martin Renold claimed that the fix had been implemented in the 0.5.1 version but I couldn't find it anywhere yet. Is there link you can provide me with or is the Mypaint 0.5.1 still in the production phase?

qole 2008-09-14 14:33

Re: Hildonized Mypaint for 2008 OS
 
Very interesting that vjoh should bump this thread; I just got a "new" N800, and one of the first things I did was install MyPaint. Wow! The new N800's pristine touchscreen has none of the difficulties of my other N800. It does get the ghost lines though; quite badly, in fact. I would agree that they're not fixed in the latest version available on Anders' website.

Mockatron 2008-12-11 00:10

Re: Hildonized Mypaint for 2008 OS
 
Installed it today. Wonderful.

I would like to contribute. I have been working on a ui design for use on an n810. I would love to contribute it and help you work to refine things. I've based the ui off alias sketchbook and colors (nintendo ds and iphone). simple clean and practical. Let me know...

Mockatron 2008-12-11 00:28

Re: Hildonized Mypaint for 2008 OS
 
Also.... I noticed the gost lines only appear when I lift the pen a reasonable distance off the tablet and then touch it in another location. Where when I lift it off slightly and keep it close and move to another location they dont happen. This may be known already but i got some catching up to do.

Nelson L. Squeeko 2008-12-11 04:30

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by Mockatron (Post 248604)
I've based the ui off alias sketchbook and colors (nintendo ds and iphone). simple clean and practical. Let me know...

Sketchbook's UI would be perfect for MyPaint. It makes the most sense, since Sketchbook was made to be used with a drawing tablet.

Mockatron 2008-12-11 18:21

Re: Hildonized Mypaint for 2008 OS
 
Going to play with mypaint on the device for a bit. Figure out the functionalities available on it. Will refine my ui spec accordingly. then Ill post the doc. probably after the holidays.

qwerty12 2008-12-13 11:46

Re: Hildonized Mypaint for 2008 OS
 
@anders_gud

Do you have any plans to update your hildonizations to 0.5.1, the new latest upstream release?
I've done a sketchy (pun not intended, honestly) port of your hildonizing to 0.5.1 from 0.5.0 (and some packaging changes) but I would love to see an "official" build. Anyway, I've placed source packages (no deb) of 0.5.1 with your hildonizations (and some packaging changes) here:

http://qwerty12.maemobox.org/mypaint/

anders_gud 2008-12-13 23:13

Re: Hildonized Mypaint for 2008 OS
 
Thanks qwerty12!
I lost my build environment a while ago and I haven't had the time to set it up again. It would be nice to transfer this project to garage some day...
Will have a look at your changes - I really appreciate if you all want to contribute. With the n900 (good camera, HW accelerated graphics and Fremantle) coming up I believe Mypaint will be a "killer app" :-)

qole 2008-12-13 23:22

Re: Hildonized Mypaint for 2008 OS
 
I'm just in the process of learning all this myself (I'm trying to learn how to compile and package maemo apps), and an easy way to get a build environment set up quickly is to use the Maemo SDK VMware Appliance.

qwerty12 2008-12-13 23:50

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by anders_gud (Post 249333)
Thanks qwerty12!
I lost my build environment a while ago and I haven't had the time to set it up again. It would be nice to transfer this project to garage some day...
Will have a look at your changes - I really appreciate if you all want to contribute. With the n900 (good camera, HW accelerated graphics and Fremantle) coming up I believe Mypaint will be a "killer app" :-)

Ouch :(

My changes can be found in the diff.gz which means you'll have to fight your wy through lots of files produced by autoconf :(. Sorry, but I used quilt but it kept failing me when it tried to reverse the patches so I had to remove quilt. As for dpatch, I can't even get it to produce me a proper patch :(

anders_gud 2008-12-14 00:14

Re: Hildonized Mypaint for 2008 OS
 
My crappy closet server - generic 1.4 Ghz p4 dell does not support hw virtualization I'm afraid... Thanks anyway :) Also been busy teaching and putting together my printing press...
Would you like to help out with MyPaint?
What I think is needed (in no special order):
1. Some ui improvements. Ways to change brushes, size, colour without having to rely on keyshortcuts or window switching (ie. more finger friendly). Tool toggling...
2. Interaction with the built in camera.
3. A global pressure device settings dialog.
4. Option to choose fixed canvas sizes. Cropping.
5. Project page on garage. Inclusion in extras.
6. liqbase? for non hw accelerated legacy devices n700 n8xx.
and more...

qwerty12 2008-12-14 00:25

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by anders_gud (Post 249360)
My crappy closet server - generic 1.4 Ghz p4 dell does not support hw virtualization I'm afraid... Thanks anyway :) Also been busy teaching and putting together my printing press...
Would you like to help out with MyPaint?
What I think is needed (in no special order):
1. Some ui improvements. Ways to change brushes, size, colour without having to rely on keyshortcuts or window switching (ie. more finger friendly). Tool toggling...
2. Interaction with the built in camera.
3. A global pressure device settings dialog.
4. Option to choose fixed canvas sizes. Cropping.
5. Project page on garage. Inclusion in extras.
6. liqbase? for non hw accelerated legacy devices n700 n8xx.
and more...

I'm a terrible drawer and I'm not much of a programmer (only know bits to hildonize programs and package them) so most of those are out of my reach. But I would certainly like to help getting it into extras, I've uploaded into extras before and have autobuilder experience. The packaging changes I made should help e.g arm specific c*flags are only applied if we are building for arm so we don't have the extras autobuilder fail when producing a i386 package but still get optimised arm one, i made export python step occur automatically etc :)

anders_gud 2008-12-14 00:36

Re: Hildonized Mypaint for 2008 OS
 
Well, what are you waiting for :) go ahead! I would be immensely grateful I if you did fix this garage/autobuilder/extras thing, have pupnik look at it too if you are unsure about anything - he helped me out before.
btw - thanks for the ssh/router fix!
now im off to bed...

qwerty12 2008-12-14 09:37

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by anders_gud (Post 249364)
btw - thanks for the ssh/router fix!

Hehe, someone else actually used it :eek: :D? The new router my ISP provided me doesn't require it thankfully...

But anyway, 0.5.1 is in diablo* extras-devel!

I'll leave it there for a couple of weeks as it needs testing and it was done with slight modifications to your hildonizing patch so I wouldn't like my changes to be the cause of problems...

*After diablo one is tested successfully, I'll upload a chinook version. The reason I'm holding off on it now is that I'll have to obtain the version numbers of chinook libraries which could be fun... But I guess SDK repo will work for that

Johnathan 2008-12-26 05:06

Re: Hildonized Mypaint for 2008 OS
 
I have what I believe to be a fix to the "ghost lines" problem, but I can't seem to get the project to compile (the compiler complaining about python this and that... I have no idea how to fix that. I'm using the Maemo Dev VMWare image which is supposedly configured correctly but seems that isn't so). Anyway, if anyone else is able to compile the project and can test my changes, please let me know. I changed the function 'gtk_my_draw_widget_button_updown' in gtkmydrawwidget.c as follows, in order to enforce zero-pressure events when the pen is pressed to or lifted from the tablet:

Code:

static gint
gtk_my_draw_widget_button_updown (GtkWidget *widget, GdkEventButton *event)
{
  GtkMyDrawWidget * mdw;
  g_return_val_if_fail (widget != NULL, FALSE);
  g_return_val_if_fail (GTK_IS_MY_DRAW_WIDGET (widget), FALSE);
  mdw = GTK_MY_DRAW_WIDGET (widget);

  double pressure;
  if (!gdk_event_get_axis ((GdkEvent *)event, GDK_AXIS_PRESSURE, &pressure)) {
    pressure = (event->state & GDK_BUTTON1_MASK) ? 0.5 : 0;
  }

  if (event->state & GDK_BUTTON1_MASK)
    gtk_my_draw_widget_process_motion_or_button (widget, event->time, event->x, event->y, 0);

  gtk_my_draw_widget_process_motion_or_button (widget, event->time, event->x, event->y, pressure);

  if ((event->state & GDK_BUTTON1_MASK) == 0)
    gtk_my_draw_widget_process_motion_or_button (widget, event->time, event->x, event->y, 0);

  return TRUE;
}


qwerty12 2008-12-26 09:07

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by Johnathan (Post 252603)
I have what I believe to be a fix to the "ghost lines" problem, but I can't seem to get the project to compile (the compiler complaining about python this and that... I have no idea how to fix that. I'm using the Maemo Dev VMWare image which is supposedly configured correctly but seems that isn't so). Anyway, if anyone else is able to compile the project and can test my changes, please let me know. I changed the function 'gtk_my_draw_widget_button_updown' in gtkmydrawwidget.c as follows, in order to enforce zero-pressure events when the pen is pressed to or lifted from the tablet:

Code:

static gint
gtk_my_draw_widget_button_updown (GtkWidget *widget, GdkEventButton *event)
{
  GtkMyDrawWidget * mdw;
  g_return_val_if_fail (widget != NULL, FALSE);
  g_return_val_if_fail (GTK_IS_MY_DRAW_WIDGET (widget), FALSE);
  mdw = GTK_MY_DRAW_WIDGET (widget);

  double pressure;
  if (!gdk_event_get_axis ((GdkEvent *)event, GDK_AXIS_PRESSURE, &pressure)) {
    pressure = (event->state & GDK_BUTTON1_MASK) ? 0.5 : 0;
  }

  if (event->state & GDK_BUTTON1_MASK)
    gtk_my_draw_widget_process_motion_or_button (widget, event->time, event->x, event->y, 0);

  gtk_my_draw_widget_process_motion_or_button (widget, event->time, event->x, event->y, pressure);

  if ((event->state & GDK_BUTTON1_MASK) == 0)
    gtk_my_draw_widget_process_motion_or_button (widget, event->time, event->x, event->y, 0);

  return TRUE;
}


Add :
Quote:

#Maemo extras
deb http://repository.maemo.org/extras/ diablo free non-free
deb-src http://repository.maemo.org/extras/ diablo free
deb http://repository.maemo.org/extras-devel/ diablo free non-free
deb-src http://repository.maemo.org/extras-devel/ diablo free
to DIABLO_ARMEL's /etc/apt/sources.list and run apt-get update and then do apt-get build-dep mypaint. After that, you can export PYTHON=/usr/bin/python2.5 and it should compile.

qole 2008-12-31 19:09

Re: Hildonized Mypaint for 2008 OS
 
Please post a binary? The "ghost lines" problem makes this program unusable for me, but if it were fixed, I would say it is extras-worthy.

Johnathan 2009-01-03 22:24

Re: Hildonized Mypaint for 2008 OS
 
I'm trying to get this thing to compile and it's not working at all. I don't know how the hell to configure this dev environment... it gives weird errors for no apparent reason and doesn't attempt to tell me how to fix it. It's now complaining that python2.5 is "too old" because it thinks it's older than 2.2. WTF? I tried to use "sb-menu" to configure things but I don't understand half the questions it's asking me... what the hell is a rootstrap? What's the difference between a host compile and a cross compile? Why are there so many different choices in the menus when I only need two (compile for emulator/compile for device)? Why is this dev environment so damn complicated?

Since no one else is willing to compile a new version of mypaint, can someone please at least tell me exactly, step-by-step, how to configure this to compile an installable package for the tablet, starting with what options I should be selecting in "sb-menu".

I may sound like a newbie at this kind of thing, but I really am not... I've developed software on dozens of different platforms, operating systems and architectures over the past 15 years (including several different ARM based devices), and not one of those development environments has ever been nearly as convoluted as this one.

/end rant (sorry)

Mockatron 2009-01-27 05:27

second Johnathans motion
 
like Johnathan I too am having trouble. Would also like to understand.

If you have time to make my life a bit easier and help us out it would be appreciated.

look at what people are doing with the hacking ds http://colors.collectingsmiles.com/
now we should be able to blow that out of the water but the dam gosting is in the way!

Johnatan I'm under the gun a bit at work but things will slow eventually. I'll take the time, if I ever get some, to work this out. Hopefully somebody who knows the deal can save us before then though.

Mockatron 2009-02-25 20:52

up to neck
 
Hasnt somebody figured out how to package this yet? Please post it if you have. If not can you at least make an instructional post so we can do it.


All the previous suggestions for ghost lines help but certainly dont solve the problem.

Does Johnathons fix actually work?

Thanks
C

qole 2009-08-19 17:17

Re: Hildonized Mypaint for 2008 OS
 
I'm bumping the thread, because the upstream version is up to 0.7.1, Fremantle is coming, and nobody compiled a version with a fix for the ghost lines.

Could someone please pick up the ball here?

qwerty12 2009-08-19 17:22

Re: Hildonized Mypaint for 2008 OS
 
anders_gud appears to be interested in getting it to run on Mer at least. Maybe this is an (OK, not a great one) example of how developing for Mer can help Fremantle? ;)

lcuk 2009-08-19 17:32

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by qole (Post 313124)
I'm bumping the thread, because the upstream version is up to 0.7.1, Fremantle is coming, and nobody compiled a version with a fix for the ghost lines.

Could someone please pick up the ball here?

ghost lines are caused by not having much cpu and when its busy it loses the occasional point.
in fremantle and on more powerful device, I believe this wouldn't be so much of a problem.

anders_gud 2009-08-20 08:16

Re: Hildonized Mypaint for 2008 OS
 
Quote:

Originally Posted by qole (Post 313124)
I'm bumping the thread, because the upstream version is up to 0.7.1, Fremantle is coming, and nobody compiled a version with a fix for the ghost lines.

Could someone please pick up the ball here?

Hi!
Recent versions of Mypaint (as of 0.6.0 i believe) requires python-numpy and a pygtk built with --enable-numpy. I've tried to build those packages but failed (pygtk and python in Diablo/Maemo are a mess...)

Jonathans patch above does not eliminate the ghost lines for me with the default brush set (I get dotted lines).
- As I have said earlier in this thread you have to adjust the pressure settings for each brush to get rid of them...
For those who don't believe me there is a .deb with Jonathans changes here.

Right now Mer is shaping up (there were pressure related issues due to xorg, but the transition to back Xomap made things slightly better :rolleyes: ). For those who has Mer 0.15 installed there is a easy way to try it out.

As for Fremantle - I feel this is a kind of application that is hard to port and try out without a real Maemo 5 device in my hands...


All times are GMT. The time now is 00:26.

vBulletin® Version 3.8.8