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?
Printable View
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?
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.
Or, look around more about the swing timer. You handle a simple dialog with the timer.
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
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.
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.Quote:
Originally Posted by mustachMan
Great, divert from a simple splash screen into unsolvable problems like this. ;-)
kind regards,
Jos