Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3D Sun-Earth-Moon System (_MAPTRIANGLE3D)
#1
I am working on a 3D program of the Sun, Earth & Moon system in the _MAPTRIANGLE(3D) space.  The Sun, Earth & Moon are 3D objects.  The Sun spins on its axis.  The Earth spins on its axis once per day and orbits the sun every 365.25 days (motion determined by gravitation from the sun).  The Moon orbits the Earth every 27 days, travelling in a circle with its orbit tilted at 5.15° and keeps a constant face to the earth.
That's all very simple geometry to handle in the program.
The more complex part is getting the 3D spheres to look exactly like the Sun, Earth & Moon.
To do this, I took NASA 360° images, and on their website each object can be stepped by 22.5° giving 16 different views which I've incorporated.
The picture (demonstration for here only) shows that it is not quite giving correct joins at the 16-image edges - look at the Earth.
I remember for the old .org forum that blus did a very nice rotating globe.  @blus do you remember that program, and if so can I get hold of it?  Thanks.
   

Notice that the objects are not perfect circles - this is because of the perspective in the _MAPTRIANGLE space.
Reply
#2
@Magdha maybe this https://qb64phoenix.com/forum/showthread...ght=sphere can be useful for you. Place on row 6 valid texture (image) file name.
I assume you created one 2D texture from the individual images?


Reply
#3
Quote:I remember for the old .org forum that blus did a very nice rotating globe.  @blus do you remember that program, and if so can I get hold of it?  Thanks.

I shared that here in Drawing Tools from my corner Prolific Programmers
https://qb64phoenix.com/forum/showthread...47#pid2647

TerryRitchie started analysing it for his perspective and code style starting about here and goes for a couple of pages...
https://qb64phoenix.com/forum/showthread...3#pid28053

Yeah even vince got into the discussion with some mods of his own, you may enjoy discussion or get confused by all options then I sugest stick to simple thing in the first link above.

@Magdha that is great screenshot not ready with the code yet?
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#4
(11-09-2025, 05:51 PM)bplus Wrote: @Magdha that is great screenshot not ready with the code yet?
Thanks @bplus.  Nowhere near ready with code yet - that's all the orbits to get sorted.
Reply
#5
Lol, you guys make me giggle! Like, FIND your own opportunities dudes!

Keplerian is easy, NBody is easy too! Either USE GR or the Schwarzschild metric or jump off my threads/ideas!

I ALWAYS appreciate GOOD code but band wagons are not something i jump on!

A very unamused but still impressed Unseen....
Reply
#6
Very unamused giggling
Reply
#7
(11-09-2025, 04:37 PM)Petr Wrote: @Magdha maybe this https://qb64phoenix.com/forum/showthread...ght=sphere can be useful for you. Place on row 6 valid texture (image) file name.
I assume you created one 2D texture from the individual images?

@Petr Thanks, I'll take a look and see if I can use Earth image data.
Reply
#8
(11-09-2025, 09:18 PM)Unseen Machine Wrote: Lol, you guys make me giggle! Like, FIND your own opportunities dudes!

Keplerian is easy, NBody is easy too! Either USE GR or the Schwarzschild metric or jump off my threads/ideas!

I ALWAYS appreciate GOOD code but band wagons are not something i jump on!

A very unamused but still impressed Unseen....

Big Grin  "Keplerian is easy, NBody is easy too! Either USE GR or the Schwarzschild metric or jump off my threads/ideas!"
Que????
Absolutely no idea what that sentence means!  That's a bandwagon on to which I will certainly not be jumping!!
A very bemused (but still impressed!) Magdha.
Reply
#9
Interim update.  Now working on positioning spheres - motion, tilt and rotation: that's just easy trigonometry.
Earth tilted and rotating.

Interim Video - Earth tilted & rotating

The Earth here is rotating the wrong way round - a change of sign is required.
At present I'm still using the 16-image NASA data for the inputs.  The image joins are improved but still not perfect.
Now just have to get the Earth to move around the Sun by Newtonian gravitation, and the Moon to move around the Earth (keep same face to Earth).
Great fun!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  new approach to base conversion system and math library Dragoncat 2 573 07-16-2025, 10:19 PM
Last Post: Dragoncat
  A 'retro' BASIC 'system' Michelle 11 2,628 08-27-2023, 12:52 PM
Last Post: Michelle
  EVMS -- Easy Versatile Menu System SMcNeill 8 1,728 11-30-2022, 06:15 AM
Last Post: SMcNeill
  a simple menu system (works) madscijr 0 630 07-28-2022, 11:07 PM
Last Post: madscijr

Forum Jump:


Users browsing this thread: 1 Guest(s)