Author Topic: A 3D Earth Moon Model  (Read 5167 times)

0 Members and 1 Guest are viewing this topic.

Offline OldsCool

  • Newbie
  • Posts: 19
  • 3D Spherical programming is as easy as pi
    • View Profile
A 3D Earth Moon Model
« on: January 10, 2022, 05:15:13 pm »
Hello! I am posting this because I saw some discussion regarding the process of wrapping images around a sphere.
I created this program about three years ago, It uses a 528 Poly sphere to display a space background, Earth and Moon.
I have since upgraded to a 2,208 poly sphere (which has a much 'rounder' appearance due to more polys) for projects I'm currently working on,  but this is a very good starting point for those looking for more understanding. Please see the included .pdf that describes how the Equirectangular Projections are converted into Polar Compressed map projections and then mapped onto the sphere.
The models are fully rotatable and scalable with many options. the Earth, Moon and distance between them is to scale making it hard to always get both in view at the same time...so I added an 'Exaggerate' option for both of them, check it out !
This program is also useful as a 360 Panoramic Viewer when you replace the space background with other images. After the initial posting I will add other planets and images that have already been prepared as Polar Compressed Projections.  BE SURE to download and try the image "Dragon Rock Projection24.jpg' found in a separate post below!!! Awesome.
 
Moon Projection24.jpg
* Moon Projection24.jpg (Filesize: 9.43 MB, Dimensions: 5448x2724, Views: 132)
* Earth-Moon Model.pdf (Filesize: 1.03 MB, Downloads: 182)
* 3D Earth Moon Model.bas (Filesize: 50.33 KB, Downloads: 178)
Earth Projection24.jpg
* Earth Projection24.jpg (Filesize: 3.94 MB, Dimensions: 5448x2724, Views: 131)
Space Projection24.jpg
* Space Projection24.jpg (Filesize: 2.07 MB, Dimensions: 5448x2724, Views: 128)
« Last Edit: January 10, 2022, 10:46:17 pm by OldsCool »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: A 3D Earth Moon Model
« Reply #1 on: January 10, 2022, 07:11:37 pm »
Holy cow! That's nice!
 
3d Earth.PNG

Offline OldsCool

  • Newbie
  • Posts: 19
  • 3D Spherical programming is as easy as pi
    • View Profile
Re: A 3D Earth Moon Model
« Reply #2 on: January 10, 2022, 07:30:52 pm »
Thanks, It was the beginning step of my first attempt at a Spherical-Driven Game Engine. I have come a good ways since this Earth-Moon model. As you can see, THIS program uses the included, pre-prepared, Polar Compressed map projections which were created from Equirectangular projections of earth, moon and sky.

I am going to upload a STANDALONE program that will convert any equirectangular or 360 Panorama image (of any size) into a Polar Compressed projection that is usable with this model.  I will attach several more projections that can be substituted in the Program. To get the cool 360 Panorama View experience substitute the Space Projection with the Church Projection!
Church Projection24.jpg
* Church Projection24.jpg (Filesize: 7.77 MB, Dimensions: 5448x2724, Views: 114)
Mars Projection24.jpg
* Mars Projection24.jpg (Filesize: 7.64 MB, Dimensions: 5448x2724, Views: 118)

Offline OldsCool

  • Newbie
  • Posts: 19
  • 3D Spherical programming is as easy as pi
    • View Profile
Re: A 3D Earth Moon Model
« Reply #3 on: January 10, 2022, 07:36:31 pm »
More Polar Compressed Projections.
Jupiter Projection24.jpg
* Jupiter Projection24.jpg (Filesize: 5.98 MB, Dimensions: 5448x2724, Views: 114)
Cabin Projection24.jpg
* Cabin Projection24.jpg (Filesize: 7.26 MB, Dimensions: 5448x2724, Views: 120)

Offline OldsCool

  • Newbie
  • Posts: 19
  • 3D Spherical programming is as easy as pi
    • View Profile
Re: A 3D Earth Moon Model
« Reply #4 on: January 10, 2022, 10:24:03 pm »
One More VERY COOL Polar Projection. use in place of the file 'Space Projection24.jpg' ....effectively becoming a 360 Panorama viewer.
Dragon Rock Projection24.jpg
* Dragon Rock Projection24.jpg (Filesize: 7.04 MB, Dimensions: 5448x2724, Views: 119)

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: A 3D Earth Moon Model
« Reply #5 on: January 10, 2022, 11:11:46 pm »
Wow! what crazy stuff in that cabin, really nice panoramic effect!
 
Crazy Cabin projection.PNG


Offline OldsCool

  • Newbie
  • Posts: 19
  • 3D Spherical programming is as easy as pi
    • View Profile
Re: A 3D Earth Moon Model
« Reply #6 on: January 11, 2022, 01:38:57 pm »
Yeah, That Floating planet really stands out in the room !! haha
When using as a 360 Panorama Viewer the Earth and Moon scale can be reduced to their smallest value so as to hide them. the Dragon Rock image is the best demonstration when used as a viewer, the image is seamless and smooth.  This first go around with a 24 section,  528 poly sphere wasn't detailed enough so I upgraded.  I am currently using a 48 section model with a 2208 poly sphere and mapping image resolutions that are 2x of these.  the outcome is of game quality. thanks for the comments and checking it out !
DB

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: A 3D Earth Moon Model
« Reply #7 on: January 11, 2022, 04:29:07 pm »
Thankyou,  That church had some interesting décor and Dragon Rock looks like a great setting for a game!

Offline LM

  • Newbie
  • Posts: 28
    • View Profile
Re: A 3D Earth Moon Model
« Reply #8 on: January 22, 2022, 09:01:11 pm »
@OldsCool Just chiming in to say that this is very impressive.  Amazing.  Beautiful work.

Offline Phlashlite

  • Newbie
  • Posts: 50
    • View Profile
Re: A 3D Earth Moon Model
« Reply #9 on: January 22, 2022, 09:27:18 pm »
Awesome!