Extension for orientation files
-
Topic authorchris
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 22 years 9 months
- Location: Seattle, Washington, USA
Extension for orientation files
This is sort of a minor point, but it's something that needs to be resolved before 1.5.0 final . . .
At the moment, rotation files (as used for SampledRotation) have the extension .q, for quaternion. But, while this is appropriate now, I have visions of extending the format to also handle Euler angles. Thus, something more generic seems better . . . I've considered .celatt (Celestia attitude), .celrot (Celestia rotation), .rot, and others. Anyone have an opinion on this that they'd care to share?
--Chris
At the moment, rotation files (as used for SampledRotation) have the extension .q, for quaternion. But, while this is appropriate now, I have visions of extending the format to also handle Euler angles. Thus, something more generic seems better . . . I've considered .celatt (Celestia attitude), .celrot (Celestia rotation), .rot, and others. Anyone have an opinion on this that they'd care to share?
--Chris
- t00fri
- Developer
- Posts: 8772
- Joined: 29.03.2002
- Age: 22
- With us: 22 years 7 months
- Location: Hamburg, Germany
Re: Extension for orientation files
chris wrote:This is sort of a minor point, but it's something that needs to be resolved before 1.5.0 final . . .
At the moment, rotation files (as used for SampledRotation) have the extension .q, for quaternion. But, while this is appropriate now, I have visions of extending the format to also handle Euler angles. Thus, something more generic seems better . . . I've considered .celatt (Celestia attitude), .celrot (Celestia rotation), .rot, and others. Anyone have an opinion on this that they'd care to share?
--Chris
.rot
Bye Fridger
PS: Moreover: the cel part of .celxyz seems unnecessary, since throughout we are talking about Celestia...
I think that, to the greatest extent possible, filetypes used only by Celestia should be unique and not be the same as filetypes used by other programs. Including "cel" in the filetype may one way to ensure that is the case. Not having unique file extensions already is causing problems. .stc, for example, is used by OpenOffice, which registers that filetype for its own use when OO is installed on a Windows system.
I personally don't like the .rot extension because it immediately makes me think it's a file created by a rot-13 "encryption" program.
FWIW, http://filext.com/ claims that the .rot filetype is used by Homeworld and Rotator 3D.
How about .celo for "Celestia orientation"?
I personally don't like the .rot extension because it immediately makes me think it's a file created by a rot-13 "encryption" program.
FWIW, http://filext.com/ claims that the .rot filetype is used by Homeworld and Rotator 3D.
How about .celo for "Celestia orientation"?
Selden
If this is a postfix for a generic rotation file then .rot seems best to me. The reason is that "rotation" is currently being used in the documentation as an alias for a quaternion, so this would be a generalization of the term rotation in that quaternion becomes only one instance of the type Celestia rotation.
type rotation = { quaternion, euler angle ?€¦.. }
Henry
type rotation = { quaternion, euler angle ?€¦.. }
Henry
-
- Posts: 43
- Joined: 29.01.2005
- With us: 19 years 9 months
selden wrote:Different types of data files require different formats. I think it's best that the filetypes be self-documenting.
I like the .rot extension, since either quaternion or euler angles are both just rotations. However, as Selden mentions, it's best for the file to be self documenting, i.e. you know what you have solely by looking at the file contents and extension.
Perhaps a several line ascii header would work. Things like the rotation sequence and ref frame could be contained and make the file usable by someone that may not know exactly how it was generated. Guess we're approaching a spice ck file here--that's my 2 cts.
Scott
- t00fri
- Developer
- Posts: 8772
- Joined: 29.03.2002
- Age: 22
- With us: 22 years 7 months
- Location: Hamburg, Germany
Whatever the considerations with other competing formats (outside Celestia) are, .celo sounds just funny to me and does not carry any mnemonic properties at all . I had checked before that my favorite (.rot) does neither occur as a /standard/, i.e. preassigned , format in Linux AND Windows XP. If .rot occurs in some specialized other application,...so what.
Bye Fridger
Bye Fridger
- Adirondack
- Posts: 528
- Joined: 01.03.2004
- With us: 20 years 8 months
My 'four' cents:
QOF = Quaternion Orientation File
QOC = Quaternion Orientation of Celestia
CQF = Celestia Quaternion File
CQO = Celestia Quaternion for Orientation
Adirondack
QOF = Quaternion Orientation File
QOC = Quaternion Orientation of Celestia
CQF = Celestia Quaternion File
CQO = Celestia Quaternion for Orientation
Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)
- Chuft-Captain
- Posts: 1779
- Joined: 18.12.2005
- With us: 18 years 11 months
.celo or .celr or .cela all OK by me.
I like Selden's idea of including .cel in all of them, and 4 characters would give 26 possible filetypes (some more meaningful than others).
in fact if you weren't worried about backward compatibility:
.stc could become .cels (Celestia Stars) to avoid conflict with OpenOffice
.ssc could be .celp (Celestia Planets) [ and Moons ]
or a separate type for Moons: .celm
and even a separate type for spacecraft : .celc (Celestia Craft)
.dsc could be .celg (Celestia Galaxies) [ and nebulae ]
or have a separate filetype for nebulae: .celn
etc, etc...
what have I missed?
At the end of the day, a naming convention which has some connection/meaning associated with it's purpose would be nice, but less important than ensuring lack of conflict with other apps (which is why I like Selden's idea in principle)
Another advantage of prefixing the suffixes with .cel is that they will all appear together in the Folder Options > Filetypes list in Windows.
I like Selden's idea of including .cel in all of them, and 4 characters would give 26 possible filetypes (some more meaningful than others).
in fact if you weren't worried about backward compatibility:
.stc could become .cels (Celestia Stars) to avoid conflict with OpenOffice
.ssc could be .celp (Celestia Planets) [ and Moons ]
or a separate type for Moons: .celm
and even a separate type for spacecraft : .celc (Celestia Craft)
.dsc could be .celg (Celestia Galaxies) [ and nebulae ]
or have a separate filetype for nebulae: .celn
etc, etc...
what have I missed?
At the end of the day, a naming convention which has some connection/meaning associated with it's purpose would be nice, but less important than ensuring lack of conflict with other apps (which is why I like Selden's idea in principle)
Another advantage of prefixing the suffixes with .cel is that they will all appear together in the Folder Options > Filetypes list in Windows.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
Toti wrote:It also sounds funny to a Spanish-speaking persont00fri wrote:Whatever the considerations with other competing formats (outside Celestia) are, .celo sounds just funny to me (...)
I liked more the simplicity of original proposition:
.xyz
.xyzq
.xyze
.q
.e
The .e file, .q file, and .xyz file are already used by other applications, but not for .xyze file or .xyzq file
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits
-
- Posts: 43
- Joined: 29.01.2005
- With us: 19 years 9 months
I had OO v2.02 installed.
STC files displayed an OO icon (it looks like a histogram), but were being opened by Notepad: I had set that association manually.
I deinstalled OO v2.02.
STC files properly displayed the Notepad icon.
I installed OO v2.1
I did not check any of the Office (Word, Excel and Powerpoint) association boxes.
STC files once more improperly display the OO icon, but still are opened by Notepad.
Oh, well.
STC files displayed an OO icon (it looks like a histogram), but were being opened by Notepad: I had set that association manually.
I deinstalled OO v2.02.
STC files properly displayed the Notepad icon.
I installed OO v2.1
I did not check any of the Office (Word, Excel and Powerpoint) association boxes.
STC files once more improperly display the OO icon, but still are opened by Notepad.
Oh, well.
Selden
I would like to point out that the extension of a file usually is associated to the data format. The data format requires a particular algorithm to read the data from disk. This is the reason why new extensions are created. Celestia has already a general purpose algorithm to read structured data from file. So why a new format/extension?
IMHO at present time there are already too much Celestia data formats.
Some time ago there was a discussion about the future data format and the data model. I promoted the necessity of a unified data format (XML, LUA, Celestia own format, whatever else but unified).
This approach should improve greatly expandability of new Celestia data, even through tools for data conversion and data sharing. All of this should be implemented through a unified object serialization system that should work using schemas both for reading and for writing data from file (editors and add-on managers should be possible).
The content of the file should not be defined by the extension but from the name. At the end everything is Celestial Data.
Please take a look at the Celestia's data folder. Everyone can understand the most of the content reading the name of files. The extension should be unified.
But this is a task for Celestia 2.0 because will break the backward compatibility for all the current add-on.
Kind regards
IMHO at present time there are already too much Celestia data formats.
Some time ago there was a discussion about the future data format and the data model. I promoted the necessity of a unified data format (XML, LUA, Celestia own format, whatever else but unified).
This approach should improve greatly expandability of new Celestia data, even through tools for data conversion and data sharing. All of this should be implemented through a unified object serialization system that should work using schemas both for reading and for writing data from file (editors and add-on managers should be possible).
The content of the file should not be defined by the extension but from the name. At the end everything is Celestial Data.
Please take a look at the Celestia's data folder. Everyone can understand the most of the content reading the name of files. The extension should be unified.
But this is a task for Celestia 2.0 because will break the backward compatibility for all the current add-on.
Kind regards
Last edited by Paolo on 20.01.2007, 17:36, edited 1 time in total.
-
Topic authorchris
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 22 years 9 months
- Location: Seattle, Washington, USA
Paolo wrote:I would like to point out that the extension of a file usually is associated to the data format. The data format requires a particular algorithm to read the data from disk. This is the reason why new extensions are created. Celestia has already a general purpose algorithm to read structured data from file. So why a new format/extension?
The orientation files aren't structured, so a different routine is used to load them. I find that the different extensions help me keep the different files organized.
Eventually, I would like to eliminate the distinction between stc, ssc, and dsc files. But cmod, position, and orientation files are different enough that I don't see what benefit there would be to unifying them.
--Chris