Page 1 of 2

My 3D view from DTM and ortho textures

Posted: 22.07.2018, 09:04
by Limax7
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

Posted: 22.07.2018, 09:49
by Goofy
Hi Limax7 :hi:
This looks very nice, can we try it, please?
Thank you.
Bye
Goofy :smile:

Posted: 22.07.2018, 10:01
by Limax7
Yes, I try to made tutorial how I do this !

Adam

Posted: 22.07.2018, 13:28
by Goofy
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:

Posted: 22.07.2018, 18:39
by Limax7
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 311 times


I have some other models (Occator and Haulani craters and 2 Mars craters from MRO images) :wink:

Posted: 25.07.2018, 12:25
by Limax7
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

Posted: 25.07.2018, 14:19
by Goofy
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:

Posted: 25.07.2018, 14:43
by Limax7
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 :/

Posted: 25.07.2018, 15:23
by Goofy
OK, thank you, I'll try it.
Bye.

Goofy :smile:

Posted: 25.07.2018, 20:24
by selden
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

Posted: 26.07.2018, 09:38
by Goofy
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:

Posted: 26.07.2018, 13:06
by selden
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

Posted: 26.07.2018, 14:09
by Goofy
Thank you, selden, I'll try it.
Bye.
Goofy :smile:

Posted: 26.07.2018, 19:20
by Limax7
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 ]
}

Posted: 27.07.2018, 12:21
by Limax7
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 ]
}

Posted: 27.07.2018, 14:26
by selden
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}
}

Posted: 27.07.2018, 15:09
by Limax7
selden when I use your ssc code Ahuna model strange rotates :eh:

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




.

Posted: 27.07.2018, 16:26
by selden
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?

Posted: 28.07.2018, 08:47
by Limax7
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"
}

Posted: 28.07.2018, 16:06
by selden
Unfortunately, I suspect it's a bug in how SurfaceObjects interact with Spice rotation kernels.