Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Improving Graphics.

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

So far i heave created the following code which create a kind of spinning wheel which i will add answering to. The trouble is it looks horrible and im having trouble finding good java applett programming tutorials. What i would like is for the reel to move smoothley round making it look more like a reel on a fruit/slot machine. Has any one here got any tips/links/websites they could offer to help me do this as I feel like ive hit a brick wall. Thanks in advance.

Alan

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the interval between images too long? if you decrease the sleep interval you might need more images too. Maybe you can edit your images with photoshop or gimp and add some motion blur effects to make it look like its spinning?
I see you have taken care of the double buffering.
Why does it look horrible in your oppinion?
 
Al Hollis
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mainly because im a perfectionist, at the moment the graphics jump 50 pixels per paint rather than smoothly rolling from there starting postion to their ending.. And i cant seem to make this work as it should.
 
A. Wolf
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree, 50 pixels are quite a jump comparing it to the desired "smoothly rolling". I definitely suggest adding more images to fill in the gap.
 
Al Hollis
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why more images? I know that the images need to be moved say 1 pixel at a time downwards, but i have no idea how to do this smoothly .
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic