My 3D view from DTM and ortho textures

All about models for Celestia. How-to, programs, work in progress...
Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 45
With us: 14 years 8 months
Location: Poland, Bialystok

My 3D view from DTM and ortho textures

Post #1by Limax7 » 22.07.2018, 09:04

Here is my 3D version of Ahuna Mons in Ceres
I use JMars software to generate DTM and ortho texture (LAMO phase) and create CMOD model to Celestia.

Youtube - 3D Ahuna Mons in Ceres
http://www.youtube.com/watch?v=EMW4bXI9-o8

2018-07-22_110323.png
Adam Hurcewicz
Bialystok, Poland

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 1 month
Location: Italy

Post #2by Goofy » 22.07.2018, 09:49

Hi Limax7 :hi:
This looks very nice, can we try it, please?
Thank you.
Bye
Goofy :smile:
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 45
With us: 14 years 8 months
Location: Poland, Bialystok

Post #3by Limax7 » 22.07.2018, 10:01

Yes, I try to made tutorial how I do this !

Adam
Adam Hurcewicz
Bialystok, Poland

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 1 month
Location: Italy

Post #4by Goofy » 22.07.2018, 13:28

Hi Limax7.
No, sorry, I was not clear enough, I'm unable to work on 3D objects, I just would like to test on Celestia your cmod file.
Beg your pardon.
Goofy :smile:
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 45
With us: 14 years 8 months
Location: Poland, Bialystok

Post #5by Limax7 » 22.07.2018, 18:39

Hi Limax7.
No, sorry, I was not clear enough, I'm unable to work on 3D objects, I just would like to test on Celestia your cmod file.
Beg your pardon.
Goofy :smile:

OK here is a add on :) Try it!

ahuna-3d.zip
(9.38 MiB) Downloaded 293 times


I have some other models (Occator and Haulani craters and 2 Mars craters from MRO images) :wink:
Adam Hurcewicz
Bialystok, Poland

Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 45
With us: 14 years 8 months
Location: Poland, Bialystok

Post #6by Limax7 » 25.07.2018, 12:25

Another 3D object: Eastern Valles Marineris from site HiRISE:
https://hirise.lpl.arizona.edu/dtm/dtm.php?ID=ESP_054160_1775



Youtube - 3D Eastern Valles Marineris
https://www.youtube.com/watch?v=aNjq7kbRtU4

2018-07-25_142204.jpg
Adam Hurcewicz
Bialystok, Poland

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 1 month
Location: Italy

Post #7by Goofy » 25.07.2018, 14:19

Thank you Limax7, appreciated.
BTW, just curious, in the ssc file you put it orbiting Sun instead of lying over Ceres surface, why? :think:
Thank you again.
Goofy :smile:
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 45
With us: 14 years 8 months
Location: Poland, Bialystok

Post #8by Limax7 » 25.07.2018, 14:43

BTW, just curious, in the ssc file you put it orbiting Sun instead of lying over Ceres surface, why? :think:

I don't know how to add cmod model on Ceres surface :/
Adam Hurcewicz
Bialystok, Poland

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 1 month
Location: Italy

Post #9by Goofy » 25.07.2018, 15:23

OK, thank you, I'll try it.
Bye.

Goofy :smile:
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

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

Post #10by selden » 25.07.2018, 20:24

An object can be placed relative to a spherical object's surface by defining the object to be a "SurfaceObject". See https://en.wikibooks.org/wiki/Celestia/SSC_File
Selden

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 1 month
Location: Italy

Post #11by Goofy » 26.07.2018, 09:38

Thank you Selden, I knew it, but the problem is that it results angled with the surface, as shown in the attached image:

Ahuna-3D.jpg


I tried changing " Orientation " but no valid results.
Can you help us, please? :help:
Thanks a lot!
Goofy :smile:
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

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

Post #12by selden » 26.07.2018, 13:06

I've found it works reliably when I specify an invisible SurfaceObject which defines a coordinate system and then place visible objects relative to that.

For an example, see my DSN "paper telescope" Addon at https://www.classe.cornell.edu/~seb/celestia/paper_dsn.html
Attachments
dss-24.jpg
DSN telescope body axes
Selden

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 1 month
Location: Italy

Post #13by Goofy » 26.07.2018, 14:09

Thank you, selden, I'll try it.
Bye.
Goofy :smile:
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 45
With us: 14 years 8 months
Location: Poland, Bialystok

Post #14by Limax7 » 26.07.2018, 19:20

Hmm I almost do that but mesh is rotate ... :sad:

and her is video of this efect (Youtube)
https://www.youtube.com/watch?v=nlVkQjQaiI0

Here is my ssc code:

Code: Select all

SurfaceObject
"Ahuna-in" "Sol/Ceres"
{
   Class "invisible"
   Radius   50

   FixedPosition { Planetographic  [ 315.8 -10.46 0 ] }
   RotationOffset   180
}



"Ahuna-track" "Sol/Ceres/Ahuna-in"
{
   Class "component"
   Radius 50
   Mesh "3d-ahuna.cmod"
   Texture "ortho.*"

   OrbitFrame { BodyFixed { Center "Sol/Ceres/Ahuna-in"}}
   FixedPosition [ 0 0 0 ]

   BodyFrame { BodyFixed { Center "Sol/Ceres/Ahuna-in"}}
   FixedRotation {}
   
   Orientation [ 121.845 0.569933 0.593622 0.568146 ]
}
Adam Hurcewicz
Bialystok, Poland

Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 45
With us: 14 years 8 months
Location: Poland, Bialystok

Post #15by Limax7 » 27.07.2018, 12:21

OK, ufff now it's fine :smile: :smile: :smile:
I don't use invisible object and change radius and Lat and Long coordinates.


Try this ssc

Code: Select all

SurfaceObject
"Ahuna 3D" "Sol/Ceres"
{
   Class "spacecraft"
   Radius   50
   Mesh "3d-ahuna.cmod"
   Texture "ortho.*"


   OrbitFrame { BodyFixed { Center "Sol/Ceres"}}
   FixedPosition { Planetographic  [ 316.0635 -10.2158 0 ] }

   BodyFrame { BodyFixed { Center "Sol/Ceres"}}
   FixedRotation {}
   
   Orientation [ 133.075 -0.0323328 0.997961 -0.0550337 ]
}
Adam Hurcewicz
Bialystok, Poland

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

Post #16by selden » 27.07.2018, 14:26

The "problem" is that you're over-constraining the definition. For SurfaceObject to work as designed, you need to let it use its defaults for OrbitFrame and BodyFrame. I.e. you need to not specify them.

Here's a modified SSC which does not require an Orientation statement. It has non-zero Rotation values because the model's mesh does not use the same axes as Celestia, so it needs to be appropriately rotated by multiples of 90 degrees. I also placed it at an altitude of 1km so its lower areas wouldn't be hidden under the surface of Ceres. (I renamed it "Ahuna 3D 2" so I could have both objects visible at the same time.)

Code: Select all

SurfaceObject
"Ahuna 3D 2" "Sol/Ceres"
{
   Class "spacecraft"
   Radius   50
   Mesh "3d-ahuna.cmod"
   Texture "ortho.*"

   FixedPosition { Planetographic  [ 316.0635 -10.2158 1 ] }
   FixedRotation {Inclination 90 AscendingNode 180}
}
Attachments
ahruna2.jpg
Selden

Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 45
With us: 14 years 8 months
Location: Poland, Bialystok

Post #17by Limax7 » 27.07.2018, 15:09

selden when I use your ssc code Ahuna model strange rotates :eh:

https://www.youtube.com/watch?v=CYFTzVvdQOA




.
Adam Hurcewicz
Bialystok, Poland

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

Post #18by selden » 27.07.2018, 16:26

That's very strange. It's "rock stable" for me, even when I turn the time rate up to 10000x faster.

I'm using Celestia v1.6.1 with no other Addons, so it is using Celestia's original definition for Ceres.

What definition are you using for Ceres? The surface texture for Ceres in your video is not the original one. Are there any other differences?
Selden

Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 45
With us: 14 years 8 months
Location: Poland, Bialystok

Post #19by Limax7 » 28.07.2018, 08:47

I use Celestia EP 1.7.0 (5229) and model from https://space.frieger.com/asteroids/dwarf/1-Ceres converted by me to cmod.
Color texture is 4096x2048

With my ssc for Ahuna 3D is OK :think:

Here is my ssc for Ceres:

Code: Select all

Replace "Ceres" "Sol"
{
   Class "dwarfplanet"
   Texture "ceres-color.*"
   Mesh "new-ceres.cmod"
   # Color [ 1.000 0.945 0.881 ]
   BlendTexture true
   Radius 487.3
   # SemiAxes [ 487.3 487.3 454.7 ] # from dawn_ceres_v02.tpc
   
   Beginning "2012 01 01 00:00:00.000"
    Ending "2067 01 08 00:00:00.000"

   OrbitFrame { EclipticJ2000 { Center "Sol" } }
   
    SpiceOrbit
    {
      Kernel    "sb_ceres_grv_171219.bsp"
      Target    "2000001"
      Origin    "10"
      BoundingRadius 1e10
    }
   SpiceRotation
    {
        Kernel             
      [
     "naif0012.tls"
     "dawn_ceres_v05.tpc"
     "dawn_ceres_v00.tf"
     "DAWN_203_SCLKSCET.00090.tsc"
     ]
        Frame               "CERES_FIXED"
        BaseFrame           "eclipj2000"
    }
   Albedo 0.113
}


AltSurface "Ceres Color Shade" "Sol/Ceres"
{
   Texture "Ceres_ClrShade.jpg"
}

AltSurface "Ceres Nomenclature" "Sol/Ceres"
{
   Texture "PIA21755.jpg"
}
Adam Hurcewicz
Bialystok, Poland

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

Post #20by selden » 28.07.2018, 16:06

Unfortunately, I suspect it's a bug in how SurfaceObjects interact with Spice rotation kernels.
Selden


Return to “Modelling”