users
[Top] [All Lists]

RE: [cinjug-users] tracing a path

To: users@xxxxxxxxxx
Subject: RE: [cinjug-users] tracing a path
From: Jason Kretzer <jrkretzer@xxxxxxxxx>
Date: Fri, 3 Jun 2005 08:32:51 -0700 (PDT)
Delivered-to: mailing list users@cinjug.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Uk4+htsdbPadAG13uPONXwOE6KrDa6zOANSVFlrE+amKrnlz4RFhfXD4o0QplgkEEMTbTd5/lt4z6jaj2AQ1jQtqabn06XclBlwETMfejduQo38DVjOZ5r0QCSHTKltUHh+yP0mtCWn4mpCCtOyPG7MD8yVH9LMI/nliR+huEno= ;
In-reply-to: <16950.64613.641000.962533@gargle.gargle.HOWL>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Hello again all,

I finally have some time to work consistently on a
project I am doing for the physics dept at NKU through
a CINSAM grant.  As was discussed before on the this
thread, I am trying to do the following

loop
{
  calculate new point
  draw a line from the old point to the new point
  have an image move from the old point to the new
point
}

this will effectively have an image move across the
screen leaving a trail.

Some problems I have ran into.

1.) When just drawing the path(no image, just lines),
the line would disappear if I moved the window off the
screen.
SOLUTION: Store all lines in a data structure and
redraw them in the paint method.
Extended issue:  needs to be done while drawing is in
progress as well, in case another window is moved in
front of the current one or the current one is
minimized or moved off screen.

2.) Adding the animation.  I am using double buffering
but I still get MAJOR flicker and jumpy behavior when
drawing the line.


It is with this problem, I have come to you. I know
that you will probably need to see some source, so if
you would like to help, email me and I will send you
the source code.  I just did not want to spam the list
with it.

Thanks everyone.

-Jason





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

<Prev in Thread] Current Thread [Next in Thread>