Planetary System Animation - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Programs (https://staging.qb64phoenix.com/forumdisplay.php?fid=7) +---- Thread: Planetary System Animation (/showthread.php?tid=957) Pages:
1
2
|
Planetary System Animation - James D Jarvis - 10-10-2022 A simple program that randomly generates a planetary system showing the main star, some planets, and moons. There's no physics here and sizes are exaggerated so there is something to see. EDIT: corrected the value to generate nump so it's the same in both locations in the program. Code: (Select All) 'planetary system animation RE: Planetary System Animation - Kernelpanic - 10-10-2022 (10-10-2022, 03:49 PM)James D Jarvis Wrote: A simple program that randomly generates a planetary system showing the main star, some planets, and moons. There's no physics here and sizes are exaggerated so there is something to see. Unfortunately, the computer hung up completely! Black screen and the only way out was to turn it off. RE: Planetary System Animation - bplus - 10-10-2022 Works fine for me I like Jarvis work, we have parallel interests. RE: Planetary System Animation - James D Jarvis - 10-10-2022 (10-10-2022, 05:01 PM)Kernelpanic Wrote:(10-10-2022, 03:49 PM)James D Jarvis Wrote: A simple program that randomly generates a planetary system showing the main star, some planets, and moons. There's no physics here and sizes are exaggerated so there is something to see. really? The program doesn't do anything fancy. Maybe it didn't copy correctly????? RE: Planetary System Animation - Kernelpanic - 10-10-2022 (10-10-2022, 05:31 PM)James D Jarvis Wrote:(10-10-2022, 05:01 PM)Kernelpanic Wrote:(10-10-2022, 03:49 PM)James D Jarvis Wrote: A simple program that randomly generates a planetary system showing the main star, some planets, and moons. There's no physics here and sizes are exaggerated so there is something to see. Yes, really! It can't be due to copying, I always copy with "Select all" and have never had any problems with it. After pressing F5 the translation started, and then . . . the hard drive rumbled and the screen went black, no button responded. I could only move the mouse. After two minutes I pressed the power button. My system: RE: Planetary System Animation - a740g - 10-10-2022 (10-10-2022, 05:44 PM)Kernelpanic Wrote:(10-10-2022, 05:31 PM)James D Jarvis Wrote:(10-10-2022, 05:01 PM)Kernelpanic Wrote: Unfortunately, the computer hung up completely! Black screen and the only way out was to turn it off. Works fine for me too. Something wrong with your system or QB64 installation maybe? RE: Planetary System Animation - James D Jarvis - 10-10-2022 The hard drive rumbled? The program itself doesn't write to the drive at all (QB64 will of course do so when it creates the executable file). So I'm thinking you may have a memory problem on your hands maybe because of a freak bug because this just writes to the screen and an equally sized image with standard graphics commands (no fancy mem calls or peeking and poking), which is cleaned up by freeimage on exit. It's a mystery to me. I have a goofy version that creates up to 3000 moons per planet and it still runs fine. RE: Planetary System Animation - Kernelpanic - 10-10-2022 I can see how the drive is working from the flashing diode, and one of course one can hear it too, discreetly. Something doesn't add up. I've experienced something like this before with software I bought: CorelDRAW 7. After installing it, my computer crashed three times after about every times 10 days. After the first time I was still wondering what it could be. After the second time I had my first suspicion, and after the third installation of CorelDRAW 7 plus the crash I knew it. I didn't install it again and my computer ran smoothly again. I think the problem was my settings in the autoexece.bat back then, but I needed them. There were no problems with CorelDRAW 9 - I still use it today with Win 10 Prof without any problems. Ok, I don't feel like a second crash with reboot right now - maybe I'll try again tomorrow. RE: Planetary System Animation - Kernelpanic - 10-11-2022 If I gone immediately without logging off, the computer hung up again. . . It works now. Who knows what happened again yesterday. Looks well! RE: Planetary System Animation - James D Jarvis - 10-11-2022 (10-11-2022, 02:57 PM)Kernelpanic Wrote: If I gone immediately without logging off, the computer hung up again. . . Glad your computer survived the attempt. Back in the olden days I'd have cracked open my computer and made sure none of my ram chips were lose. |