Page 1 of 1

Still working on those wacky spheres

Posted: 16.02.2009, 19:51
by foravalon
So, for the sake of experimentation, fsgregs was kind enough to lend me a couple sphere models that Jestr had made for him a while back. Without any celestia modeling skills of my own, aside from the point-to-point, hand-coded, straight line variety, I've been attempting to modify the existing models which consist of a cmod and a .dsc file.

The original model was for a transparent sphere centered on Sol with a simple enough .dsc...

Code: Select all

Nebula "86 LY" #farthest extent of 1st radio broadcast in 1919 to reach space
{
Mesh "sphereBlue2.cmod"
#Mesh "sphere1.3ds"
Emissive true
RA  0
Dec 0
Distance  0
Radius 86
}


I'm trying to center my sphere on a specific point elsewhere. I've created an stc file that marks that point, but when I enter the same RA, Dec, and Distance for my point into the dsc for the model the end result is ending up somewhere quite different.

Code: Select all

 "Center Point"
{
 RA 85.806068
 Dec -38.784168 
 Distance 101.558885874157 
 SpectralType "K" 
 AppMag 5
   }


Code: Select all

Nebula "Test Zone" #Test Sphere: 100ly Radius
{
Mesh "sphereBlue2.cmod"
#Mesh "sphere1.3ds"
Emissive true
RA  85.806068
Dec -38.784168
Distance  101.558885874157
Radius 100
}


Image

The distance looks right but the RA and Dec appear to have become skewed. Does anyone have any advice for where I might be going wrong here?

Re: Still working on those wacky spheres

Posted: 16.02.2009, 20:47
by selden
RA in STC files (Stars) is specified in degrees. (0-360)
RA in DSC files (desp space objects) is specified in hours. (0-24)
1 hour = 15 degrees

In other words, you need to divide your RA values by 15.

Re: Still working on those wacky spheres

Posted: 17.02.2009, 04:40
by foravalon
Sweet! Thanks once again Selden, that's very good info to be aware of regarding the dsc's, and indeed it solved my problem. You rock sir!