Simplifying surface feature placement

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
BillC
Posts: 19
Joined: 09.07.2003
With us: 21 years 4 months
Location: Woonsocket RI

Re: Simplifying surface feature placement

Post #21by BillC » 15.08.2008, 18:29

Could SurfaceFixedRotation simply be called Attitude? I suppose that only means the pitch (tilt) and roll. You're trying to describe something like Attitude + Bearing, or Attitude + Azimuth. But still, it wouldn't be entirely incorrect.
BillC

Topic author
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Simplifying surface feature placement

Post #22by chris » 18.08.2008, 01:56

BillC wrote:Could SurfaceFixedRotation simply be called Attitude? I suppose that only means the pitch (tilt) and roll. You're trying to describe something like Attitude + Bearing, or Attitude + Azimuth. But still, it wouldn't be entirely incorrect.

Not entirely . . . but I fear that it would be confusing to have Attitude and Orientation mean different things in Celestia when the words are nearly synonymous in English. It's the best suggestion so far, though.

--Chris

Topic author
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Simplifying surface feature placement

Post #23by chris » 18.08.2008, 01:59

selden wrote:Is Body going to be recognized as a keyword? Or is it already?

I suggest making Class "surfacefeature" one of the defaults for a SurfaceObject, too.

Here's my one concern about making surfacefeature the default class: you may want to use SurfaceFeature to place a spacecraft (e.g. MER) on the surface of a planet. Is it strange to call an object a surface feature, then override that by supplying a Class property:

Code: Select all

SurfaceFeature
{
    Class "spacecraft"
    ...
}


Acceptable?

--Chris

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

Re: Simplifying surface feature placement

Post #24by selden » 18.08.2008, 10:55

Having to specify Class "spacecraft" (if that's what the object happens to be) seems reasonable to me.

Otherwise the default would be spacecraft, wouldn't it?
That seems even stranger :)
Selden

Topic author
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Simplifying surface feature placement

Post #25by chris » 28.08.2008, 23:56

Here is an attempt to illustrate with screenshots how the Topocentric frame and the FixedAttitude (a name I prefer over SurfaceFixedRotation) work. The Topocentric frame is the default for a SurfaceObject, though it can also be used with other object types.

Here is the topocentric frame in action, all models with the same rotation within their frame:
topo-frame-1.jpg

In the topocentric frame, the z-axis (blue) always points straight up from the surface of a planet, and the y-axis points north.

The FixedAttitude rotation model can be a more intuitive way of orienting a model than FixedRotation. In all of the following images, the transparent axes are the frame axes, and the solid ones are the body axes.

FixedAttitude has three properties: Heading, Tilt, and Roll. The ssc definition of the object in the next image looks like this:

Code: Select all

SurfaceObject "Plane" "Sol/Earth"
{
   Mesh "plane.3ds"
   Radius 1000

   FixedPosition { Planetographic [ -60 30 300 ] }
   FixedAttitude
   {
      Heading 45
      Tilt 0
      Roll 0
   }
}


Heading is the rotation about the z-axis, which points toward the sky in a topocentric frame. In the first image, Heading is set to 45 degrees:
topo-heading-45.jpg


Tilt is the rotation about the x-axis. It is equivalent to pitch in aeronautics. In this image, a Tilt of 30 degrees makes the plane face up toward the sky:
topo-tilt-30.jpg


Finally, here is the effect of a Roll of 30 degrees:
topo-roll-30.jpg


--Chris

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: Simplifying surface feature placement

Post #26by BobHegwood » 29.08.2008, 00:15

For what it's worth here Chris, I think I like these descriptors and the terminology. It almost makes sense to me, so it
should be sparkling clear to anyone else. :wink:
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Re: Simplifying surface feature placement

Post #27by ElChristou » 29.08.2008, 07:12

chris wrote:Here is an attempt to illustrate with screenshots...

Nice! Would you put this in the Wiki or want one of us to do it?
Image

Topic author
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Simplifying surface feature placement

Post #28by chris » 29.08.2008, 16:40

ElChristou wrote:
chris wrote:Here is an attempt to illustrate with screenshots...

Nice! Would you put this in the Wiki or want one of us to do it?

If you want to do it, I'd sure appreciate the help!

--Chris

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Re: Simplifying surface feature placement

Post #29by Chuft-Captain » 30.08.2008, 14:43

chris wrote:Tilt is the rotation about the x-axis. It is equivalent to pitch in aeronautics.
As this is the case Chris, then why don't you just use "Pitch" instead of "Tilt", as most people will be familiar with the term and it's meaning/application. (I'd be tempted to go with "Yaw" as well, except that in Celestia, I guess "Heading" is a more useful and intuitive term.

JM2CW, FWIW

CC
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Topic author
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Simplifying surface feature placement

Post #30by chris » 30.08.2008, 15:43

Chuft-Captain wrote:
chris wrote:Tilt is the rotation about the x-axis. It is equivalent to pitch in aeronautics.
As this is the case Chris, then why don't you just use "Pitch" instead of "Tilt", as most people will be familiar with the term and it's meaning/application. (I'd be tempted to go with "Yaw" as well, except that in Celestia, I guess "Heading" is a more useful and intuitive term.

I borrowed terminology from KML, the description language for Google Earth:

http://code.google.com/apis/kml/documen ... html#model

I also think that the meaning of Tilt may be more obvious to some people than Pitch (though not to everyone.)

--Chris

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Re: Simplifying surface feature placement

Post #31by Chuft-Captain » 30.08.2008, 23:50

chris wrote:
Chuft-Captain wrote:
chris wrote:Tilt is the rotation about the x-axis. It is equivalent to pitch in aeronautics.
As this is the case Chris, then why don't you just use "Pitch" instead of "Tilt", as most people will be familiar with the term and it's meaning/application. (I'd be tempted to go with "Yaw" as well, except that in Celestia, I guess "Heading" is a more useful and intuitive term.

I borrowed terminology from KML, the description language for Google Earth:

http://code.google.com/apis/kml/documen ... html#model

I also think that the meaning of Tilt may be more obvious to some people than Pitch (though not to everyone.)

--Chris
Fair enough. Whilst consistency with Google Earth's conventions is not necessarily a bad idea, IMO it is of limited value in Celestia. For example "Heading" has an intuitive meaning in Google Earth because it's always "The Earth" they're dealing with, however in Celestia there are other (less specific) circumstances where addon creators might want to specify orientation (eg. orienting component meshes with others), where "Heading" has a less intuitive meaning. ie. where "North" is not so clearly defined.

At the end of the day, what you've done is fine, and I'm not asking you to change it...(they're just "words" after all).
It's just my gut feeling that most addon creators would probably be just as comfortable with the standard aeronautical terminology, which may have a broader and more intuitive meaning in the Celestia context.

Just my opinion anyway.
CC
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 9 months
Location: Europe

Re: Simplifying surface feature placement

Post #32by duds26 » 28.11.2008, 15:58

Then north is just the corresponding axes right?
Can we just use the reference frame or body vectors for orientation as a reference of directions?


Return to “Ideas & News”