ivoyager / ivoyager_core

Godot Editor plugin that provides a solar system simulation.
Apache License 2.0
15 stars 2 forks source link

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

Open charliewhitfield opened 1 year ago

charliewhitfield commented 1 year ago

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):

(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.)

Zireael07 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

thompson-vii commented 1 year ago

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 commented 1 year ago

@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.)