Can this work?

All about models for Celestia. How-to, programs, work in progress...
Avatar
Topic author
Tegmine
Posts: 200
Joined: 20.03.2011
With us: 13 years 8 months

Can this work?

Post #1by Tegmine » 04.12.2011, 14:52

I recently found this site:
http://astro.troja.mff.cuni.cz/projects/asteroids3D/web.php?page=project_main_page

It contains models of asteroids based on lightcurve data, including many that wouldn't be the "usual suspects" (Ceres, Vesta, etc.). Is there any way one could use these in Celestia?

Thanks

-M-

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Can this work?

Post #2by selden » 04.12.2011, 16:16

Someone would have to write a program which converts their 3D format into something Celestia can use.
Selden

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Can this work?

Post #3by chris » 06.12.2011, 19:59

I've written some simple tools to convert these models into Celestia cmod files. It's a fairly convoluted process:

- Convert the asteroid model to a Wavefront OBJ file (via a Python script)
- Convert the OBJ file to an ASCII cmod (via a C++ program that uses the assimp library)
- Process the cmod file to generate surface normals (cmodfix)

Many of the models contain a lot of very long, skinny triangles which can produce artifacts when rendering; quality can be improved by using a tool like MeshLab to remesh the models.

I'll post a link to the models that I've converted as well as the tools that I use. Matt Wronkiewicz has already created an add-on with about 40 of the light curve derived asteroids models:

http://www.wronkiewicz.net/moreasteroids.zip

--Chris


Return to “Modelling”