Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A plea for open-source spacecraft & asteroid models (some existing models are broken in GLES2 web export) #2

Open
charliewhitfield opened this issue Mar 16, 2023 · 9 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@charliewhitfield
Copy link
Member

charliewhitfield commented Mar 16, 2023

Graphic artists, I need your help!

I have Juno in the Planetarium, but only as an orbit without model. The existing open-source model I found crashes in GLES2 web export (which is what we have to use for the Planetarium, at least for now).

Someone posted an open-source JWST model online but then it disappeared.

Other priorities: Voyager 1 & 2, New Horizons, Tiangong, or really anything from the real world that you'd like to see in our simulator (Elon Musk's roadster, if you like...).

Also, any and all "visited" asteroids/comets listed here.

Perhaps this is too big an ask, but it would really help if we had full and reduced size assets (the latter to help in web deployment).

I'm working on a celestial navigation system (patched conics) to show the historical flight paths for non-orbiting probes. So that's why I'd really like to have the Voyagers and New Horizons models...

[Edit] Here's what we do have as of v0.0.14 (all available from NASA):

  • International Space Station (I'd like a model with smaller footprint though!)
  • Hubble Telescope
  • Phobos & Deimos (well, perhaps asteroids a long time ago...)
  • Bennu
  • Itokawa
  • Eros
  • Vesta
  • Arrokoth

(These together push the web app up by ~150 Mb, I think, probably mostly from ISS. Hence my ask for reduced-size versions, if possible.)

@charliewhitfield charliewhitfield added enhancement New feature or request good first issue Good for newcomers labels Mar 16, 2023
@Zireael07
Copy link

Doubt you will find open source models of real life stations/telescopes, as they're likely copyrighted.

As for asteroids, there's a couple random 3d models around (OGA and similar sites)

@charliewhitfield
Copy link
Member Author

@Zireael07,

Yep, I got a few of those in already. (Edited top post to indicate what we do have.) Please let me know if you find others!

@TheLostProbe
Copy link

TheLostProbe commented Aug 29, 2023

Celestia is FOSS, and includes models of most of the spacecraft (and asteroids) that you're looking for. you can get them from the CelestiaContent repository
even more community-created models, as well as ones that improve Celestia's default models, are available here, here, and here
more models for minor planets (asteroids, comets, TNOs, centaurs etc) can be obtained from here, here, and here

quite a few of these are very heavy models, though, and the textures don't help either. I'm not sure how they could be optimized, but I hope this gives you a starting point and I'm interested to see where this project goes next
edit: forgot to mention that Celestia has a proprietary model format called CMOD, which you need to convert to other formats (3DS, OBJ, DAE) using a plugin for an old program called Anim8or. Celestia does support 3DS and OBJ files, and includes 3DS versions of the CMOD files in the default installation, so hopefully most of those spacecraft and minor planet models I linked should be 3DS and occasionally OBJ. but if they're not, Anim8or is still downloadable and the CMOD conversion plugin is pinned somewhere on the Celestia Discord server, so I should be able to find it for you and IIRC Selden has a guide somewhere on how to use the plugin

@charliewhitfield
Copy link
Member Author

Thanks @TheLostProbe!

Looks like the minor-planets are a mix of visited (i.e., actually imaged) and non-visited (fictional representations). Fictional representations are ok but I'll want to treat them differently. Maybe they can be in the game platform but not in the Planetarium. Or maybe in the Planetarium as a toggle option. In any case I'll want to prioritize visited minor planets (along with particular spacecrafts).

I'll take a deeper look after I get our Godot 4 migration fully working.

It's going to be a while however before I'm able to take on model conversions. I'd be overjoyed if someone else wants to take that on before I get to it...

(Seriously, I'd like to be able to add a contributors section to the author's page maybe by the end of the year...)

@TheLostProbe
Copy link

well, Anim8or should be able to run on my crappy computer, so maybe I could convert them for you? just let me know what format you want them exported in and I'll get to work

@charliewhitfield
Copy link
Member Author

charliewhitfield commented Aug 29, 2023

Great!

Here's the Godot supported formats. I think all our current models are .glb, so that might be slightly preferred. I'll be happy as long as Godot can import it. After import, it's in Godot binary format regardless, so original format doesn't matter too much.

Try to prioritize real-image visited minor planets first.

For spacecrafts, the ones I can add very quickly are the planetary probes that are (or were) orbiting something for a while, or are at a Lagrange point. I really do want to create navigation paths for Voyager 1, 2, New Horizons, etc., but that will take some work...

[Edit:] Be sure to record attribution information and see if you can find the license for each asset. It has to be truly open-source for us to distribute it. Easier to figure that out now than later.

@TheLostProbe
Copy link

I think all our current models are .glb, so that might be slightly preferred. I'll be happy as long as Godot can import it.

if Anim8or doesn't export GLBs, I can probably just export them as DAE or OBJ and then convert them over to GLB

Try to prioritize real-image visited minor planets first.

of course!

For spacecrafts, the ones I can add very quickly are the planetary probes that are (or were) orbiting something for a while, or are at a Lagrange point. I really do want to create navigation paths for Voyager 1, 2, New Horizons, etc., but that will take some work...

if I, Voyager supports NASA's SPICE kernels then I should be able to fish around for some SPICE trajectories of interplanetary probes for you. if not, then I guess SPICE support can be added to the roadmap ;)

Be sure to record attribution information and see if you can find the license for each asset. It has to be truly open-source for us to distribute it.

sure, I'll see if I can contact the creators of the add-ons and ask where they got their models from. I'm fairly certain that they are open-source, but better safe than sorry

@charliewhitfield charliewhitfield transferred this issue from ivoyager/ivoyager Oct 3, 2023
@thompson-vii
Copy link

thompson-vii commented Oct 23, 2023

juno_fix1.zip

The model is full of split faces as well as several inverted ones. I do not have test environment so you will just have to try.

@charliewhitfield
Copy link
Member Author

@thompson-vii

Great! I'll try it out and add to the next assets version v0.0.18. That'll get released soon after Godot 4.2, probably in a couple weeks. (And I'm hoping 4.2 fixes HTML5 export so I can update the web Planetarium.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants