STC's and mesh files...

Post requests, images, descriptions and reports about work in progress here.
Topic author
buggs_moran
Posts: 835
Joined: 27.09.2004
With us: 20 years 6 months
Location: Massachusetts, USA

STC's and mesh files...

Post #1by buggs_moran » 14.08.2005, 20:26

I have read through the stc info files and still am in a quandry on how to put a mesh in for a star orbiting a barycenter... I have the code below, and I know the mesh works (I applied it to a planet to make sure). Any ideas... According to what I have read the mesh should take over for the need of a spectral class, magnitude, and semiaxis info...

Code: Select all

Barycenter "hol1"
{
   RA 330
   Dec -15
   Distance 10
}

4 "hol1d" # component d gas cloud
{
OrbitBarycenter "hol1"
Mesh "tidal.cmod"

        EllipticalOrbit {
                Period             300
                SemiMajorAxis      5000   
        }
}

Homebrew:
WinXP Pro SP2
Asus A7N8X-E Deluxe
AMD Athlon XP 3000/333 2.16 GHz
1 GB Crucial RAM
80 GB WD SATA drive
ATI AIW 9600XT 128M

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

Post #2by selden » 14.08.2005, 20:47

The Mesh declaration is in addition to the Magnitude and SpectralType. It defines the shape, not the brightness, color or radius. It replaces the default spherical mesh and optional SemiAxes, which normally don't get specified.
Selden

Topic author
buggs_moran
Posts: 835
Joined: 27.09.2004
With us: 20 years 6 months
Location: Massachusetts, USA

Post #3by buggs_moran » 15.08.2005, 05:02

Okay, I added spectral type and magnitude. But no star shows up inside the flare.jpg. It's really bright and there seems to be a star from a distance but when you get close, no star and no mesh.

Code: Select all

4 "hol1d" # component d gas cloud
{
OrbitBarycenter "hol1"
SpectralType "O"
AbsMag -8
Mesh "tidal.cmod"

        EllipticalOrbit {
                Period             200
                SemiMajorAxis      500   
        }

   RotationPeriod 0
}
Homebrew:

WinXP Pro SP2

Asus A7N8X-E Deluxe

AMD Athlon XP 3000/333 2.16 GHz

1 GB Crucial RAM

80 GB WD SATA drive

ATI AIW 9600XT 128M

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

Post #4by selden » 15.08.2005, 12:09

Unfortunately, RotationPeriod doesn't work in an STC file. No star gets drawn if it's included. :( (I have to consider this a bug.)

Here's a simple STC example that works for me:

Code: Select all

Barycenter "test" {
   Distance 420.86
   RA    0.00863  #   0h0m2.071s
   Dec -51.89355  # -51d53m36.765s
}

Star "testmesh" {
   OrbitBarycenter "test"
   Mesh "cyl.3ds"

   SpectralType "F0V"
   AbsMag 2.5
   
        EllipticalOrbit {
                Period                  200
                SemiMajorAxis      500   
        }

}
Selden


Return to “Add-on development”