Just a test - 64K Moon

Tips for creating and manipulating planet textures for Celestia.
Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Re: Just a test - 64K Moon

Post #181by Chuft-Captain » 26.05.2009, 11:58

danielj wrote:How I PASS the file?
I have to put the file inside F-Tex Tools and then what?
The conditions as a video file is problematic.I run the bat.exe and it only produces the levels 0-5,all empty.
What is the normal?I know that Power of 2 is tx2pow2,but I don?t know which one is normal and where I have to put the file.
Daniel, when John says "pass it to the power of 2 program", he means for you to open a cmd window and then "pass" the file as an input parameter to the tx2pow2 program by using the "<" character, for example:

Code: Select all

tx2pow2 1 92160 < Clementine.bin > level5\64k.bin

To break this command down:
tx2pow2 : is the name of the program you run to convert to a power of 2.
1 : is the first parameter, which says in this case you are processing a grayscale image.
92160 : is the 2nd parameter which is the size of the input file
< Clementine.bin : tells the program where to get the input (the filename must follow next (in this case Clementine.bin)
> level5\64k.bin : tells the program where to put the output (in this case in a file called 64k.bin in the level 5 folder.

After doing that you will find that a file called 64k.bin has appeared in the level5 folder. All that remains now is to just repeat the process by using the output file from that step, as the input for the next run of tx2pow2:

Code: Select all

tx2pow2 1 65536 < level5\64k.bin > level4\32k.bin

...and so on,

Code: Select all

tx2pow2 1 32768 < level4\32k.bin > level3\16k.bin

...and so on....for 8k and 4k files....
until you finally get the last output file in the level0 folder:

Code: Select all

tx2half 1 4096 < level1\4k.bin > level0\2k.bin


You will now have the correct power of 2 sized .bin file in each folder.
The next step is to use each of these files as the input to the tile creation program.

Code: Select all

cd level5
txtiles 1 65536 5 < 64k.bin
cd ..
cd level4
txtiles 1 32768 4 < 32k.bin
cd ..
cd level3
txtiles 1 16384 3 < 16k.bin
cd ..
cd level2
txtiles 1 8192 2 < 8k.bin
cd ..
cd level1
txtiles 1 4096 1 < 4k.bin
cd ..
cd level0
txtiles 1 2048 0 < 2k.bin
cd ..


Finally after you've done all these steps, you can delete or archive all the BIN files.

The wholes process was explained earlier in this thread by praesepe, here: Subject: Just a test - 64K Moon

Now that you understand cmd line commands and how they work, I suggest you re-read his post.

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

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Re: Just a test - 64K Moon

Post #182by danielj » 26.05.2009, 14:12

I have to do this for EACH level?So,why the use of the script?Sorry,It?s REALLY too complicated.I GIVE UP!
Why there is NO READY texture?Every one you have to CONVERT and there is NO script to do that...

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: Just a test - 64K Moon

Post #183by t00fri » 26.05.2009, 14:28

danielj wrote:I have to do this for EACH level?So,why the use of the script?Sorry,It?s REALLY too complicated.I GIVE UP!
Why there is NO READY texture?Every one you have to CONVERT and there is NO script to do that...

We have made a script for YOU where you just need ONE click. I gave you step-by-step instructions what you have to download.

You did NOT read my instructions. Next you did NOT download what I have written there etc. If you think you don't have to follow what people write, then you are on your own.

CC tried to add further explanations which unfortunately confused you and made you switch instructions, while still not understanding...

++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
Go to this post of mine and follow it STRICTLY!!!
viewtopic.php?f=5&t=13775&st=0&sk=t&sd=a&start=165
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++

Fridger
Image

danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Re: Just a test - 64K Moon

Post #184by danielj » 26.05.2009, 14:38

I followed exactly what you say and a few seconds after the beggining of the script,they ended and what I had was level 0-5 all empty.But there is something strange.Because I did the BMNG 64 NM and the original file are also empty.Should the files be hidden and only Celestia can interpret it?

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: Just a test - 64K Moon

Post #185by t00fri » 26.05.2009, 14:46

danielj wrote:I followed exactly what you say and a few seconds after the beggining of the script,they ended and what I had was level 0-5 all empty.But there is something strange.Because I did the BMNG 64 NM and the original file are also empty.Should the files be hidden and only Celestia can interpret it?

Did you download the file Clementine64k.bin.zip, unzipped it and placed the resulting file Clementine64k.bin into the correct subdirectory, where also the script is located??

+++++++++++++++++++++++++++++++++
Did you reboot right after installation of my F-TexTools,
as I wrote in my instructions!??
+++++++++++++++++++++++++++++++++

To check, open the Windows console and type at the prompt
> txtiles

After pressing return, you should see the printout of some help text for this command. If not then you did not follow exactly my instructions.

Fridger
Image

danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Re: Just a test - 64K Moon

Post #186by danielj » 26.05.2009, 18:04

I DID IT and in less than 9 minutes.
However,the final result is not AS GOOD as the pictures of the topic.I don?t know why...

danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Re: Just a test - 64K Moon

Post #187by danielj » 26.05.2009, 18:07

Continuing...
Anyway,what matters that I DID IT.But I don?t understand why Celestia have an alternate texture named 64k-Moon-VT,if this was the default texture.I am using Celestia 1.6.0 SVN R4632.

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: Just a test - 64K Moon

Post #188by t00fri » 26.05.2009, 18:40

Daniel,

despite the long struggling, I am happy to read that you finally succeeded. The main point being that if there is now some improvement in the input Moon file, you can quickly rerun the script. You can be assured that everyone who did that Moon texture with my tools has exactly the same quality! But we are aware that the input file is far from perfect. There is simply no good Moon texture YET. Hopefully soon the situation will change dramatically...

Certainly, the original 64k Moon texture is a bit dark. Perhaps I'll upload one that is cleaned out and brighter... let's see if I find some time.

One thing I would do in your place: just try and remember what it was that prevented your success right away!

Did you forget to reboot after installation or was the Clementine64k.bin file in the wrong directory, perhaps?

Just try not to repeat the same mistake...

Fridger
Image


Return to “Textures”