Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: What programs/programming language can I use to draw & animate a wave?

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default What programs/programming language can I use to draw & animate a wave?

    Creating the Nebula Part 1 (Conception) - YouTube

    I want to build a wave similar to the one in the video above. I'm not looking to render an actual wave or consider material properties. I want to create geometric objects and precisely control their animation (in 3 dimensions), taking a programming based approach rather than frame-by-frame creation.

    In my intro to Java class, my professor used Java and some class to draw an outline of the earth and its continents (he added in the continents by importing a file containing various points which mapped the outline of the continents onto a sphere). He then made it rotate such that it appeared to be a 3D object to demonstrate what you can do what Java. I was wondering if you can use Java to draw and "animate".


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: What programs/programming language can I use to draw & animate a wave?

    The short answer is: yes, you absolutely can draw and animate in Java.

    If you don't know anything about Java, you're going to want to go through the basic tutorials: The Java™ Tutorials

    Work through them to understand the basic concepts, and then move on to Swing to get a GUI up and running: Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)

    From there, move on to custom painting to draw whatever you want: Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)

    Then use a Swing Timer to create an animation.

    Alternatively, you could look into using Processing, which is a language built on top of Java specifically designed to make art and animation easier: Processing.org

    I've even written a series of tutorials for Processing that take you from not knowing anything to animating some basic scenes: Static Void Games - Tutorials

    I'd recommend working through those tutorials and looking at the examples that come with Processing.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Java Programming Language Online Course
    By iSmart in forum The Cafe
    Replies: 0
    Last Post: January 17th, 2013, 03:05 PM
  2. which programming language can help me more
    By websit in forum Object Oriented Programming
    Replies: 1
    Last Post: June 24th, 2012, 09:14 PM