SDK Question Having trouble adding tile to Io

stevcast

Addon Developer
Addon Developer
Joined
Jun 14, 2008
Messages
160
Reaction score
1
Points
0
I have been trying to add a tile to Io for a new base I am working on, but for some reason the tile doesn't show up. I landed a delta glider on the location where I want the base to be, and set up a trial base at those coordinates. I then used surface tile calculator to calculate the tile configuration etc., but after seven attempts, I am stumped! Any suggestions as to what I may be doing wrong or overlooking?:shrug:
Any help would be greatly appreciated!!

stevcast
 
Does the surface tile calculator works for other bodies than Earth ? That could be the problem.
 
Trying every variation possible

Does the surface tile calculator works for other bodies than Earth ? That could be the problem.

It has other planets listed in its operating system. The weird thing is, I tried a tile of 512 X 512 dimension, and I got a small grey square under my trial base. I have used alternate sized tiles, different image types etc., and nothing seems to work. Is there another way to get a tile on Io?
 
I have no problems placing surface base tiles on Io. I've just tested tiles of Cape Canaveral copied to Io_*.dds with the Canaveral base placed on Io, and when I look at Io at coordinates: 80.675W, 28.5208N, I can see those surface tiles just fine.
 
I have no problems placing surface base tiles on Io. I've just tested tiles of Cape Canaveral copied to Io_*.dds with the Canaveral base placed on Io, and when I look at Io at coordinates: 80.675W, 28.5208N, I can see those surface tiles just fine.

Maybe it is the surface tile calculator. I guess I'll keep trying.
Thanks!!

---------- Post added at 12:06 PM ---------- Previous post was at 11:46 AM ----------

I don't know what I am doing wrong, but I can't get a tile on Io to save my life!! Could you go through the procedure with me to see if I am doing something wrong? Thanks!
 
Does the tile work if you place it on Earth or thr Moon?
 
Does the tile work if you place it on Earth or thr Moon?

I placed the tile in the brighton beach lunar tiles, and it showed up just fine. Question.... Using the lat. and long. coordinates from the delta glider and trial base, what figures or formula do you use to determine the tile location on Io?
 
Using the lat. and long. coordinates from the delta glider and trial base, what figures or formula do you use to determine the tile location on Io?
For any planet or moon:

[math]x=\phi\times 2^{(sur\_lvl)}\times 64/45[/math]
[math]y=\lambda\times 2^{(sur\_lvl)}\times 64/45[/math]

Where:
  • ϕ is signed latitude in degrees with 0° at equator
  • λ is signed longitude in degrees with 0° at prime meridian
  • x is horizontal tile coordinate for given ϕ
  • y is vertical tile coordinate for given λ
  • sur_lvl is surftile level (starts from 0)
To get the coordinates of the tile within which are given longitude and latitude, you round the value of x and y to an integer with lower value (i.e. 0.5 = 0, but -0.5 = -1)
 
For any planet or moon:

[math]x=\phi\times 2^{(sur\_lvl)}\times 64/45[/math]
[math]y=\lambda\times 2^{(sur\_lvl)}\times 64/45[/math]


Where:
  • ϕ is signed latitude in degrees with 0° at equator
  • λ is signed longitude in degrees with 0° at prime meridian
  • x is horizontal tile coordinate for given ϕ
  • y is vertical tile coordinate for given λ
  • sur_lvl is surftile level (starts from 0)
To get the coordinates of the tile within which are given longitude and latitude, you round the value of x and y to an integer with lower value (i.e. 0.5 = 0, but -0.5 = -1)

Thanks orb. This will definitely give me something to work on!

---------- Post added at 10:59 PM ---------- Previous post was at 10:21 PM ----------

Well, I did the calculations with the formula, and I went back and did the same calculations wtih the surf tile calculator, and I came up with approximately the same results ;

BEGIN_SURFTILELIST
8 52597 15929 3
END_SURFTILELIST


Io_8_e52597_n15929

The results; no tile appears. Am I correct in assuming that it doesn't matter what file type is used before it is converted into a dds file? And as long as it is divisible by 2, it will be the right size (within reason)?
HELP....Stumped on IO....:facepalm:
 
Did you try with some lower level? Tile of level 8 is very small, and you may not notice it, or it could hide below a landing pad or some other scenery.

Dimensions of textures should be in powers of 2 and not only being divisible by 2 (i.e. 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048).
 
I stand corrected. I meant to say power of two. I have tried every tile level from 1 to 9. I am going to get some sleep for now, and try it again in the morning. There has got to be something I am missing somewhere!!! Thanks for all of your help, and I will keep you updated here as to my progress...:cheers:
signing off for now,

stevcast

---------- Post added at 11:12 AM ---------- Previous post was at 12:06 AM ----------

Well, I am back at it again this morning with the same results. I don't know if it's something having to do with my Orbiter install or my OS in general, but I can't get a tile on Io! If somebody could send me a tile with the pertainent data, maybe that would work. Either that, or I guess I will have to use a mesh instead of a tile.
 
If somebody could send me a tile with the pertainent data, maybe that would work. Either that, or I guess I will have to use a mesh instead of a tile.

  1. Create a file in Orbiter directory with containing the code below:

    $(OrbiterDir)/MakeIoSurfTiles.cmd:
    Code:
    copy /b Textures\Earth_2_W0460_N0164.dds Textures\Io_2_W0460_N0164.dds
    copy /b Textures\Earth_2_W0461_N0160.dds Textures\Io_2_W0461_N0160.dds
    copy /b Textures\Earth_2_W0461_N0161.dds Textures\Io_2_W0461_N0161.dds
    copy /b Textures\Earth_2_W0461_N0162.dds Textures\Io_2_W0461_N0162.dds
    copy /b Textures\Earth_2_W0461_N0163.dds Textures\Io_2_W0461_N0163.dds
    copy /b Textures\Earth_2_W0462_N0160.dds Textures\Io_2_W0462_N0160.dds
    copy /b Textures\Earth_2_W0462_N0161.dds Textures\Io_2_W0462_N0161.dds
    copy /b Textures\Earth_2_W0462_N0162.dds Textures\Io_2_W0462_N0162.dds
    copy /b Textures\Earth_2_W0462_N0163.dds Textures\Io_2_W0462_N0163.dds
    copy /b Textures\Earth_3_W0917_N0320.dds Textures\Io_3_W0917_N0320.dds
    copy /b Textures\Earth_3_W0917_N0323.dds Textures\Io_3_W0917_N0323.dds
    copy /b Textures\Earth_3_W0917_N0324.dds Textures\Io_3_W0917_N0324.dds
    copy /b Textures\Earth_3_W0917_N0325.dds Textures\Io_3_W0917_N0325.dds
    copy /b Textures\Earth_3_W0918_N0320.dds Textures\Io_3_W0918_N0320.dds
    copy /b Textures\Earth_3_W0918_N0321.dds Textures\Io_3_W0918_N0321.dds
    copy /b Textures\Earth_3_W0918_N0322.dds Textures\Io_3_W0918_N0322.dds
    copy /b Textures\Earth_3_W0918_N0323.dds Textures\Io_3_W0918_N0323.dds
    copy /b Textures\Earth_3_W0918_N0324.dds Textures\Io_3_W0918_N0324.dds
    copy /b Textures\Earth_3_W0918_N0326.dds Textures\Io_3_W0918_N0326.dds
    copy /b Textures\Earth_3_W0919_N0320.dds Textures\Io_3_W0919_N0320.dds
    copy /b Textures\Earth_3_W0919_N0321.dds Textures\Io_3_W0919_N0321.dds
    copy /b Textures\Earth_3_W0919_N0322.dds Textures\Io_3_W0919_N0322.dds
    copy /b Textures\Earth_3_W0919_N0323.dds Textures\Io_3_W0919_N0323.dds
    copy /b Textures\Earth_3_W0919_N0324.dds Textures\Io_3_W0919_N0324.dds
    copy /b Textures\Earth_3_W0919_N0326.dds Textures\Io_3_W0919_N0326.dds
    copy /b Textures\Earth_3_W0919_N0327.dds Textures\Io_3_W0919_N0327.dds 
    copy /b Textures\Earth_3_W0920_N0320.dds Textures\Io_3_W0920_N0320.dds
    copy /b Textures\Earth_3_W0920_N0321.dds Textures\Io_3_W0920_N0321.dds
    copy /b Textures\Earth_3_W0920_N0322.dds Textures\Io_3_W0920_N0322.dds
    copy /b Textures\Earth_3_W0920_N0323.dds Textures\Io_3_W0920_N0323.dds
    copy /b Textures\Earth_3_W0920_N0324.dds Textures\Io_3_W0920_N0324.dds
    copy /b Textures\Earth_3_W0920_N0325.dds Textures\Io_3_W0920_N0325.dds
    copy /b Textures\Earth_3_W0920_N0326.dds Textures\Io_3_W0920_N0326.dds
    copy /b Textures\Earth_3_W0920_N0327.dds Textures\Io_3_W0920_N0327.dds
    copy /b Textures\Earth_4_W1835_N0650.dds Textures\Io_4_W1835_N0650.dds
    copy /b Textures\Earth_4_W1835_N0651.dds Textures\Io_4_W1835_N0651.dds
    copy /b Textures\Earth_4_W1836_N0650.dds Textures\Io_4_W1836_N0650.dds
    copy /b Textures\Earth_4_W1836_N0651.dds Textures\Io_4_W1836_N0651.dds
    copy /b Textures\Earth_4_W1837_N0650.dds Textures\Io_4_W1837_N0650.dds
    copy /b Textures\Earth_4_W1837_N0651.dds Textures\Io_4_W1837_N0651.dds
    copy /b Textures\Earth_4_W1838_N0650.dds Textures\Io_4_W1838_N0650.dds
    copy /b Textures\Earth_4_W1838_N0651.dds Textures\Io_4_W1838_N0651.dds

  2. Execute the MakeIoSurfTiles.cmd file in Orbiter folder, it will make surface tiles for Io.

  3. Place the following configuration file to Io's Base folder:

    $(OrbiterDir)/Config/Io/Base/CapeIo.cfg:
    Code:
    BASE-V2.0
    Name = Cape at Io
    Location = -80.675 +28.5208
    Size = 1000
    MapObjectsToSphere = TRUE
    
    BEGIN_OBJECTLIST
    LPAD2
    	POS 0 0 0
    	SCALE 0 0 0
    	TEX Lpad02
    END
    END_OBJECTLIST
    
    BEGIN_SURFTILELIST
    2 -462 160 3
    2 -461 160 3
    2 -462 161 3
    2 -461 161 3
    2 -462 162 3
    2 -461 162 3
    2 -462 163 3
    2 -461 163 3
    2 -460 164 3
    3 -920 320 3
    3 -919 320 3
    3 -918 320 3
    3 -917 320 3
    3 -920 321 3
    3 -919 321 3
    3 -918 321 3
    3 -920 322 3
    3 -919 322 3
    3 -918 322 3
    3 -920 323 3
    3 -919 323 3
    3 -918 323 3
    3 -917 323 3
    3 -920 324 3
    3 -919 324 3
    3 -918 324 3
    3 -917 324 3
    3 -920 325 3
    3 -917 325 3
    3 -920 326 3
    3 -919 326 3
    3 -918 326 3
    3 -920 327 3
    3 -919 327 3
    4 -1838 650 3
    4 -1837 650 3
    4 -1836 650 3
    4 -1835 650 3
    4 -1838 651 3
    4 -1837 651 3
    4 -1836 651 3
    4 -1835 651 3
    END_SURFTILELIST

  4. The Cape Canaveral surface tiles should appear around -80.675 +28.5208 coordinates on Io.
 
Thanks Orb, I'll give this a try!!!
 
To stevcast:

Why have you gone so far away? Though I like your ambition! Could you try a simple tile nearer to Earth? Thats how I started.

N.
 
Apologies Stevcast if this is a bit basic, but I made a sort of [ame="http://www.orbithangar.com/searchid.php?ID=5157"]walkthrough[/ame] for surface tiles some time back. It's for Earth which may not be too helpful, but just in case...
 
Apologies Stevcast if this is a bit basic, but I made a sort of walkthrough for surface tiles some time back. It's for Earth which may not be too helpful, but just in case...

Actually, I have gone through your walkthrough and found it very helpful!
As I have stated before, I am far from being an "expert' in any way shape or form when it comes to computers and or addon development. I basically get an idea for an addon and keep at it until it either semi works or totally flops. I certainly don't consider myself an addon developer like some of the individuals here. I appreciate any and all help that people are willing to offer me. Thank you for your input!

stevcast

---------- Post added at 02:37 PM ---------- Previous post was at 02:33 PM ----------

  1. Create a file in Orbiter directory with containing the code below:

    $(OrbiterDir)/MakeIoSurfTiles.cmd:
    Code:
    copy /b Textures\Earth_2_W0460_N0164.dds Textures\Io_2_W0460_N0164.dds
    copy /b Textures\Earth_2_W0461_N0160.dds Textures\Io_2_W0461_N0160.dds
    copy /b Textures\Earth_2_W0461_N0161.dds Textures\Io_2_W0461_N0161.dds
    copy /b Textures\Earth_2_W0461_N0162.dds Textures\Io_2_W0461_N0162.dds
    copy /b Textures\Earth_2_W0461_N0163.dds Textures\Io_2_W0461_N0163.dds
    copy /b Textures\Earth_2_W0462_N0160.dds Textures\Io_2_W0462_N0160.dds
    copy /b Textures\Earth_2_W0462_N0161.dds Textures\Io_2_W0462_N0161.dds
    copy /b Textures\Earth_2_W0462_N0162.dds Textures\Io_2_W0462_N0162.dds
    copy /b Textures\Earth_2_W0462_N0163.dds Textures\Io_2_W0462_N0163.dds
    copy /b Textures\Earth_3_W0917_N0320.dds Textures\Io_3_W0917_N0320.dds
    copy /b Textures\Earth_3_W0917_N0323.dds Textures\Io_3_W0917_N0323.dds
    copy /b Textures\Earth_3_W0917_N0324.dds Textures\Io_3_W0917_N0324.dds
    copy /b Textures\Earth_3_W0917_N0325.dds Textures\Io_3_W0917_N0325.dds
    copy /b Textures\Earth_3_W0918_N0320.dds Textures\Io_3_W0918_N0320.dds
    copy /b Textures\Earth_3_W0918_N0321.dds Textures\Io_3_W0918_N0321.dds
    copy /b Textures\Earth_3_W0918_N0322.dds Textures\Io_3_W0918_N0322.dds
    copy /b Textures\Earth_3_W0918_N0323.dds Textures\Io_3_W0918_N0323.dds
    copy /b Textures\Earth_3_W0918_N0324.dds Textures\Io_3_W0918_N0324.dds
    copy /b Textures\Earth_3_W0918_N0326.dds Textures\Io_3_W0918_N0326.dds
    copy /b Textures\Earth_3_W0919_N0320.dds Textures\Io_3_W0919_N0320.dds
    copy /b Textures\Earth_3_W0919_N0321.dds Textures\Io_3_W0919_N0321.dds
    copy /b Textures\Earth_3_W0919_N0322.dds Textures\Io_3_W0919_N0322.dds
    copy /b Textures\Earth_3_W0919_N0323.dds Textures\Io_3_W0919_N0323.dds
    copy /b Textures\Earth_3_W0919_N0324.dds Textures\Io_3_W0919_N0324.dds
    copy /b Textures\Earth_3_W0919_N0326.dds Textures\Io_3_W0919_N0326.dds
    copy /b Textures\Earth_3_W0919_N0327.dds Textures\Io_3_W0919_N0327.dds 
    copy /b Textures\Earth_3_W0920_N0320.dds Textures\Io_3_W0920_N0320.dds
    copy /b Textures\Earth_3_W0920_N0321.dds Textures\Io_3_W0920_N0321.dds
    copy /b Textures\Earth_3_W0920_N0322.dds Textures\Io_3_W0920_N0322.dds
    copy /b Textures\Earth_3_W0920_N0323.dds Textures\Io_3_W0920_N0323.dds
    copy /b Textures\Earth_3_W0920_N0324.dds Textures\Io_3_W0920_N0324.dds
    copy /b Textures\Earth_3_W0920_N0325.dds Textures\Io_3_W0920_N0325.dds
    copy /b Textures\Earth_3_W0920_N0326.dds Textures\Io_3_W0920_N0326.dds
    copy /b Textures\Earth_3_W0920_N0327.dds Textures\Io_3_W0920_N0327.dds
    copy /b Textures\Earth_4_W1835_N0650.dds Textures\Io_4_W1835_N0650.dds
    copy /b Textures\Earth_4_W1835_N0651.dds Textures\Io_4_W1835_N0651.dds
    copy /b Textures\Earth_4_W1836_N0650.dds Textures\Io_4_W1836_N0650.dds
    copy /b Textures\Earth_4_W1836_N0651.dds Textures\Io_4_W1836_N0651.dds
    copy /b Textures\Earth_4_W1837_N0650.dds Textures\Io_4_W1837_N0650.dds
    copy /b Textures\Earth_4_W1837_N0651.dds Textures\Io_4_W1837_N0651.dds
    copy /b Textures\Earth_4_W1838_N0650.dds Textures\Io_4_W1838_N0650.dds
    copy /b Textures\Earth_4_W1838_N0651.dds Textures\Io_4_W1838_N0651.dds

  2. Execute the MakeIoSurfTiles.cmd file in Orbiter folder, it will make surface tiles for Io.

  3. Place the following configuration file to Io's Base folder:

    $(OrbiterDir)/Config/Io/Base/CapeIo.cfg:
    Code:
    BASE-V2.0
    Name = Cape at Io
    Location = -80.675 +28.5208
    Size = 1000
    MapObjectsToSphere = TRUE
     
    BEGIN_OBJECTLIST
    LPAD2
        POS 0 0 0
        SCALE 0 0 0
        TEX Lpad02
    END
    END_OBJECTLIST
     
    BEGIN_SURFTILELIST
    2 -462 160 3
    2 -461 160 3
    2 -462 161 3
    2 -461 161 3
    2 -462 162 3
    2 -461 162 3
    2 -462 163 3
    2 -461 163 3
    2 -460 164 3
    3 -920 320 3
    3 -919 320 3
    3 -918 320 3
    3 -917 320 3
    3 -920 321 3
    3 -919 321 3
    3 -918 321 3
    3 -920 322 3
    3 -919 322 3
    3 -918 322 3
    3 -920 323 3
    3 -919 323 3
    3 -918 323 3
    3 -917 323 3
    3 -920 324 3
    3 -919 324 3
    3 -918 324 3
    3 -917 324 3
    3 -920 325 3
    3 -917 325 3
    3 -920 326 3
    3 -919 326 3
    3 -918 326 3
    3 -920 327 3
    3 -919 327 3
    4 -1838 650 3
    4 -1837 650 3
    4 -1836 650 3
    4 -1835 650 3
    4 -1838 651 3
    4 -1837 651 3
    4 -1836 651 3
    4 -1835 651 3
    END_SURFTILELIST

  4. The Cape Canaveral surface tiles should appear around -80.675 +28.5208 coordinates on Io.

I am now the proud owner of the cape on Io!!! I don't understand why this worked, and everything else I tried failed! The question is, how do I translate something that works in an entirely different location, to the location that I want my base to be?

---------- Post added at 09:04 PM ---------- Previous post was at 02:37 PM ----------

Well, after hours of work and head scratching, I finally got my tiles on Io. For some reason, when I used the tile calculator and used Io as the target planet, the tiles would not show up. But when I used Earth as the target planet, and then transferred the information to Io, it worked!! I don't understand why, but I am just relieved that I finally got a start on it. Thanks to everyone that helped!

stevcast:cheers:
 
Back
Top