Tutorial: placing a tile on a planetary surface.

All tutorials about Celestia go in here. For Celestia itself, add-ons, textures, scripting, etc.

Moderator: selden

Re: Tutorial: placing a tile on a planetary surface.

Postby selden » Fri May 15, 2009 7:27 am

jogad,

Exactly what editor were you using?

There have been similar issues when people use "word processors" instead of "text editors" to edit Lua files. Word processors assume you are working on a document for publication. They automatically convert two hyphens (used in Lua to specify a one-line comment) into an em-dash (double-wide dash), which Lua doesn't recognize.
Selden
User avatar
selden
 
Posts: 9902
Joined: Tue Sep 03, 2002 7:21 pm
Location: NY, USA

Re: Tutorial: placing a tile on a planetary surface.

Postby t00fri » Fri May 15, 2009 8:03 am

selden wrote:jogad,

Exactly what editor were you using?

There have been similar issues when people use "word processors" instead of "text editors" to edit Lua files. Word processors assume you are working on a document for publication. They automatically convert two hyphens (used in Lua to specify a one-line comment) into an em-dash (double-wide dash), which Lua doesn't recognize.


I was precisely thinking of such cases, too. Lua and Maple, for example use { } parantheses a lot. I would never use anything that changes characters without asking me...

Fridger
Image
User avatar
t00fri
 
Posts: 8782
Joined: Fri Mar 29, 2002 5:53 am
Location: Hamburg, Germany

Re: Tutorial: placing a tile on a planetary surface.

Postby jogad » Fri May 15, 2009 8:35 am

I usually use Notetab Pro or Notepad2 if I must have characters with accents and I have no problem with that. 8)

The problem for me is that when I want to post a message in English I use Microsoft Word which corrects a little part of my spelling and grammar mistakes in this language.
In this case the original curve brackets were in the text but were converted when I pasted in the input box of the forum. This is strange and maybe I did something wrong. :oops:

But thanks to you this error is fixed in the tuto.
I am interested to know if the two points that you emphasized (64k TileSize and lack of intermediate levels) may cause troubles on some systems? :?:
Jogad
My system: Intel Core2 6700, RAM 6GO, Windows 7, Nvidia 460 GTX
User avatar
jogad
 
Posts: 442
Joined: Wed Sep 17, 2008 1:26 pm
Location: Paris France

Re: Tutorial: placing a tile on a planetary surface.

Postby t00fri » Fri May 15, 2009 10:06 am

jogad wrote:I am interested to know if the two points that you emphasized (64k TileSize and lack of intermediate levels) may cause troubles on some systems? :?:


I bet 64k tile size would indeed cause problems. Fortunately you had only written 64 (pixels). While we have agreed since a long time that making the tile size somewhat smaller than the actual size retains better focus in the interpolation between the various levels, I would be surprised if making them smaller by a factor of 32, doesn't have some negative impact...If it hasn't, then there would be no good reason why one should specify this parameter at all...

Fridger
Image
User avatar
t00fri
 
Posts: 8782
Joined: Fri Mar 29, 2002 5:53 am
Location: Hamburg, Germany

Re: Tutorial: placing a tile on a planetary surface.

Postby jogad » Fri May 15, 2009 12:57 pm

Sorry, I did not understand the 64 pixels. :oops: For me, the statement TileSize 64 means 64k. I am wrong?

I am well aware that this is a particular case. Indeed there are only 3 tiles in the texture virtual instead of several hundreds or thousands.
And there is no interpolation between the levels because we go directly from level 0 to level 9 or 10.

The aim was that the texture appears from more away to spot it more easily. 8)
With the declaration TileSize 64, it appears on my screen at a distance of 24km while with a statement TileSize 2048, it appears only at about 700m and it is not possible to see it entirely.
On my system 64 is the smallest possible value that works and that is why I have chosen it.
This value works well only in this particular case with a single tile at the highest level and 2 tiles at level 0.

This is precisely why the value of this parameter can be specified depending on conditions. Otherwise I agree it would be needless to precise it.

What I do not know is if this value is possible whatever the system. If this is not the case, I'll change the tuto. :wink:
Jogad
My system: Intel Core2 6700, RAM 6GO, Windows 7, Nvidia 460 GTX
User avatar
jogad
 
Posts: 442
Joined: Wed Sep 17, 2008 1:26 pm
Location: Paris France

Re: Tutorial: placing a tile on a planetary surface.

Postby t00fri » Fri May 15, 2009 1:10 pm

jogad wrote:Sorry, I did not understand the 64 pixels. :oops: For me, the statement TileSize 64 means 64k. I am wrong?

TileSize is in pixels!

Fridger
Image
User avatar
t00fri
 
Posts: 8782
Joined: Fri Mar 29, 2002 5:53 am
Location: Hamburg, Germany

Re: Tutorial: placing a tile on a planetary surface.

Postby jogad » Fri May 15, 2009 1:15 pm

t00fri wrote:TileSize is in pixels!


Yes of course! it's evident! :oops:
Thank you Fridger.

But the question remains the same. :mrgreen:
Jogad
My system: Intel Core2 6700, RAM 6GO, Windows 7, Nvidia 460 GTX
User avatar
jogad
 
Posts: 442
Joined: Wed Sep 17, 2008 1:26 pm
Location: Paris France

Re: Tutorial: placing a tile on a planetary surface.

Postby PlutonianEmpire » Sat Jul 14, 2012 10:40 pm

Sorry for bumping. :oops:

Ok, I did a comparison between the OP's Excel VT calculator and Fridger's Excel VT calculator, and noticed that the +/- designations in the "error on X" in the OP's calculator appears to be inverted, where a negative number should really be a positive number, and vice versa.

For example, I have a tile size of 4096 pixels, and Fridger's calculator tells me to put my texture at X: 2099, Y: 2538, whereas the OP's calculator gives me a X error of -51 and a Y error of -490, which means the OP's calculator is telling me to move my texture to the left instead of the right. The Y error of -490, of course, tells me to move my texture down(/south), and is thus accurate.
I, for one, welcome our new Belle Hadean overlords.
User avatar
PlutonianEmpire
 
Posts: 1287
Joined: Thu Sep 09, 2004 2:33 pm
Location: Delta Trianguli

Previous

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest