Still working on those wacky spheres

Post requests, images, descriptions and reports about work in progress here.
Topic author
foravalon
Posts: 50
Joined: 07.05.2005
With us: 19 years 6 months
Location: Santa Rosa, CA

Still working on those wacky spheres

Post #1by foravalon » 16.02.2009, 19:51

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?
Foravalon's most common phrase: "So, yeah, um, how do you do this... ?"

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

Re: Still working on those wacky spheres

Post #2by selden » 16.02.2009, 20:47

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.
Selden

Topic author
foravalon
Posts: 50
Joined: 07.05.2005
With us: 19 years 6 months
Location: Santa Rosa, CA

Re: Still working on those wacky spheres

Post #3by foravalon » 17.02.2009, 04:40

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!
Foravalon's most common phrase: "So, yeah, um, how do you do this... ?"


Return to “Add-on development”