How to access (secret) NASA resources

General discussion about Celestia that doesn't fit into other forums.
Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 1 year 10 months
Location: Germany

How to access (secret) NASA resources

Post #1by EarthMoon » 29.10.2022, 17:05

Here is it: https://eyes.nasa.gov/assets/static/

Accessing the website directly is impossible (if you don't have the correct links; you will get an XML file with somethink like "<Error>...</Error>"). You need to do some steps before accessing the resources.

There are lots of models (mostly .gltf) and textures (mostly .png or .jpg).

How to get the resources:

1. Launch one of the (web-based!) Eyes apps (e.g. Eyes on the Solar System)
2. While loading the application, press F12 (open the dev tools in your browser)
3. Go to "Network" tab (in Firefox, in other browsers it should be named similar)
4. Look for loaded files (*.gltf, *.png, *.jpg, *.*) and open/download them.
5. Done! Now you can download tons of resources :biggrin:
Last edited by EarthMoon on 30.10.2022, 09:16, edited 1 time in total.
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

Avatar
SevenSpheres
Moderator
Posts: 820
Joined: 08.10.2019
With us: 4 years 7 months

Post #2by SevenSpheres » 29.10.2022, 17:23

This is how several exoplanet textures in existing addons (e.g. Kepler-452 b) were retrieved.

EarthMoon wrote:While loading the application, press F12 (open the dev tools in your browser)

The keyboard shortcut is Ctrl+Shift+I in both Chrome and Firefox, not F12. (Edit: It seems F12 does work if the Fn key is pressed along with it.)
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
DaveBowman2001
Posts: 742
Joined: 06.07.2018
Age: 24
With us: 5 years 10 months
Location: Manila, Philippines

Post #3by DaveBowman2001 » 29.10.2022, 17:53

Wdym secret? The resources from Eyes of the Solar System are already publicly published here and on the 3D Resources site

Most of the spacecraft add-ons me, toutatis, Endeavor35, and gironde made are retrieved from those sites
"Open the pod-bay doors HAL"
"I'm sorry Dave, I'm afraid I can't do that"

Spacecrafts Addon Developer since 2018
Celestia Versions: 1.6.9 (Mobile), 1.6.3 and 1.7.0 (Windows)

Avatar
TheLostProbe
Posts: 217
Joined: 07.05.2020
Age: 17
With us: 4 years
Location: City of Port Phillip, Melbourne, Australia

Post #4by TheLostProbe » 29.10.2022, 22:36

SevenSpheres wrote:The keyboard shortcut is Ctrl+Shift+I in both Chrome and Firefox, not F12.
in firefox, both ctrl+shift+i and f12 open the developer tools
"Carbon stars with ancient satellites colonized by sentient fungi. Gas giants inhabited by vast meteorological intelligences. Worlds stretched thin across the membranes where the dimensions intersect... impossible to describe with our limited vocabulary."
- Dr. Wallace Breen

Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 1 year 10 months
Location: Germany

Post #5by EarthMoon » 30.10.2022, 09:24

DaveBowman2001 wrote:Wdym secret? The resources from Eyes of the Solar System are already publicly published here and on the 3D Resources site

Eyes on the Solar System was just an example. The same also works with Exo Pioneer and other Eyes web apps.

Exo Pioneer has LOTS of exoplanet maps (some URLs below):

https://eyes.nasa.gov/apps/exo/assets/image/exoplanet/base1.jpg
https://eyes.nasa.gov/apps/exo/assets/image/exoplanet/base5.jpg
https://eyes.nasa.gov/apps/exo/assets/image/exoplanet/base6.jpg
https://eyes.nasa.gov/apps/exo/assets/image/exoplanet/detail5.png
https://eyes.nasa.gov/apps/exo/assets/image/exoplanet/norm4.png
https://eyes.nasa.gov/apps/exo/assets/image/exoplanet/detail1.png

https://eyes.nasa.gov/apps/exo/assets/model/WASP-12_b/WASP-12B.gltf
https://eyes.nasa.gov/apps/exo/assets/model/WASP-12_b/WASP-12B.bin
https://eyes.nasa.gov/apps/exo/assets/model/WASP-12_b/WASP-12b_emit_new.jpg



The assets reservoir of the Exo Pioneer is tooooooooooooooooo huge to list all URLs here :biggrin:


PS: I'm going to download lots of resources :biggrin:

Added after 7 hours 10 minutes:
DaveBowman2001 wrote:The resources from Eyes of the Solar System are already publicly published here and on the 3D Resources site

https://solarsystem.nasa.gov is not https://eyes.nasa.gov/apps/solar-system.
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

Avatar
culturediff
Posts: 10
Joined: 04.08.2022
With us: 1 year 9 months
Location: France
Contact:

Post #6by culturediff » 30.11.2023, 16:50

Hello,
More and more 3D models in *.gltf format are available.
Is it possible to insert 3D models with this extension in Celestia ?
Or is it necessary to change format (*.gltf => *.3ds or *.cmod) before insertion into Celestia ?
Thanks in advance for your reply.
Karine.

Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 1 year 10 months
Location: Germany

Post #7by EarthMoon » 30.11.2023, 18:53

culturediff wrote:Hello,
More and more 3D models in *.gltf format are available.
Is it possible to insert 3D models with this extension in Celestia ?
Or is it necessary to change format (*.gltf => *.3ds or *.cmod) before insertion into Celestia ?
Thanks in advance for your reply.
Karine.
You need to convert them to .obj files first (I always use Blender for this, you can also edit/scale/rotate/reposition/etc. the model with this), then import them in Anim8or to export them to .cmod using this anim8or script and editing the model's colors, textures and other visual parameters with CmodView or with a text editor.
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

Avatar
culturediff
Posts: 10
Joined: 04.08.2022
With us: 1 year 9 months
Location: France
Contact:

Post #8by culturediff » 11.12.2023, 16:29

Thanks a lot EarthMoon for your quick reply.

I managed to transform, via Blender, a gltf file into (1 obj + 1 mtl) files, then to import the obj file into Anim8or, next to convert it into a cmod file. ... But I lost the texture (saved into the mtl file I presume) during the process. Impossible for me to import the texture into Anim8or nor cmodview. Any idea ? Advice ?

Thanks a lot for your help.

Karine.

Added after 4 minutes 29 seconds:
Please, note that when converting the gltf file into an obj file with convert3d (https://convert3d.org/gltf-to-obj), three files are generated : 1 obj + 1 mtl + 1 png (the texture). Alas, Anim8or can't import the obj file ...

Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 1 year 10 months
Location: Germany

Post #9by EarthMoon » 15.12.2023, 21:46

You have two options to edit the texture of the .cmod (I recommend the easier (2nd) one):
The harder way: Open the file with a text editor and edit the material's texture0 properties (or add them if required), see https://en.wikibooks.org/wiki/Celestia/3D_Models/CMOD_File#Example_ASCII_CMOD_File (recommended only for very advanced users)
The easier way: Open the file with CmodView and edit the textures from there (select the part you want to edit and then change the settings in the right menu). (recommended for all kinds of users)
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

Avatar
culturediff
Posts: 10
Joined: 04.08.2022
With us: 1 year 9 months
Location: France
Contact:

Post #10by culturediff » 18.12.2023, 18:50

Hello EarthMoon,

Thanks a lot for your good advice.

I am trying to import a 3d model of La Reunion island into Celestia. Here are the few steps I followed :
1. I generated the model with qgis then exported it in the gltf format with qgistothreejs.
2. I converted the gltf file into a set of three files { obj+mtl+png } with convert3D (https://convert3d.org/gltf-to-obj)
3. I imported the obj file into anim8or - the texture correctly displays on the 3d model
4. I rotated the file of 90° in the Y direction, then saved it into the cmod format.
5. I then opened the cmod file with cmod view. No texture above the model which appears in black.
6. I then changed the settings of cmodview in the right panel so that the texture covers the model, next saved the file.
7. Finally, I imported the cmod file into Celestia. Alas, only the 3d model appears (in grey) - no texture above.

Both the cmod model and the texture are available on download at the following url : https://www.culturediff.org/Celestia.zip

Any help would be greatly appreciated. Thank you in advance.

Karine.

Avatar
SevenSpheres
Moderator
Posts: 820
Joined: 08.10.2019
With us: 4 years 7 months

Post #11by SevenSpheres » 19.12.2023, 03:21

Did you UV map the model in Anim8or, as described in this tutorial?

Is the texture where Celestia can read it (i.e. in the "textures/medres" directory)?

Your files should be set up like this:

Code: Select all

Celestia
- extras
  - [addon directory]
    - [file defining object].ssc
    - models
      - [model].cmod
    - textures
      - medres
        - [texture used by model].[jpg/png]
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
culturediff
Posts: 10
Joined: 04.08.2022
With us: 1 year 9 months
Location: France
Contact:

Post #12by culturediff » 19.12.2023, 13:59

Hello SevenSpheres,

Thanks a lot for your reply.
You are right : I just simply forgot to copy the texture within the textures/medres directory.
Now, that works fine - youpi :wink:
Thanks a lot, really !

Have a nice day.
Karine.


Return to “Celestia Users”