Results 1 to 8 of 8
  1. #1
    mustachMan is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Default Creating Start screen

    I am making the gravity simulation and i want to create a start screen, just a screen that shows some text for about 5 seconds before it goes away and the application starts. Does anyone have any ideas?

  2. #2
    Sno's Avatar
    Sno
    Sno is offline Senior Member
    Join Date
    Apr 2010
    Posts
    196
    Rep Power
    5

    Default

    You mean a splash screen?

    Netbeans has function that you can create splash screens,

    or you can create a frame (using java swing) with an image and make it dispose after a few seconds and make another frame appear.
    :rolleyes: ~ Sno ~ :rolleyes:
    '-~ B.S. Computer Science ~-'

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  4. #4
    tim's Avatar
    tim
    tim is offline Senior Member
    Join Date
    Dec 2007
    Posts
    435
    Rep Power
    7

    Default Simulating mechanics

    Hi mustachMan

    A gravity simulator sounds interesting. Are you going to use linear displacements to approximate the dynamics of motion? I had problems here with accumulative error. This error turns out to be lost energy. It's difficult to create a closed system because of this. Of course, you can always stick to the equations of motion, but then, how do you handle obstacles? It's a fascinating subject. Would you mind posting a picture?

    Tim
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

  5. #5
    mustachMan is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Default

    hey tim

    i made a "gravity simulator" but i am very new to java so it probably is not close to being correct. it works however as i have a closed box with a ball that bounces around and you could create gravity points that either push you away or attract you.

  6. #6
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,454
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by mustachMan View Post
    I am making the gravity simulation and i want to create a start screen, just a screen that shows some text for about 5 seconds before it goes away and the application starts. Does anyone have any ideas?
    Type "java -help" and read what the last option has to say; i.e. you can create a "splash screen" without any programming (since Java 1.6)

    kind regards,

    Jos

  7. #7
    tim's Avatar
    tim
    tim is offline Senior Member
    Join Date
    Dec 2007
    Posts
    435
    Rep Power
    7

    Default

    Quote Originally Posted by mustachMan
    i made a "gravity simulator" but i am very new to java so it probably is not close to being correct. it works however as i have a closed box with a ball that bounces around and you could create gravity points that either push you away or attract you.
    That sounds very good. :D I built my simulator as a particle engine that supports polyline obstacles. The particles will bounce around in a structure or environment. What would be nice is to have bodies interact with the environment and each other. Simulating real time fluid dynamics is also a great challenge. The gaming industry seems to be increasingly interested in this kind of work. I remember the excitement when Half-Life 2 first demonstrated it's "physics" engine. For something more 2D, World of Goo is also very good.
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

  8. #8
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,454
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by tim View Post
    What would be nice is to have bodies interact with the environment and each other.
    Great, divert from a simple splash screen into unsolvable problems like this. ;-)

    kind regards,

    Jos

Similar Threads

  1. Creating menu screen for games
    By sahildave1991 in forum AWT / Swing
    Replies: 1
    Last Post: 07-02-2010, 05:36 PM
  2. Replies: 2
    Last Post: 10-18-2009, 07:27 PM
  3. Blank Screen while navigating from one screen to another
    By mohana.krishna in forum Java Servlet
    Replies: 0
    Last Post: 03-03-2009, 05:03 PM
  4. Creating a splash screen in SWT
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-25-2008, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •