cartrite wrote:I tried to modify it to use the Clemintine file at CM. I can't test it on Windows so................
cartrite
Ah, great! I'll try to look at it under Windows XP, but probably only tomorrow...
Fridger
cartrite wrote:I tried to modify it to use the Clemintine file at CM. I can't test it on Windows so................
cartrite
Cartrite,cartrite wrote:I was trying to modify it to do the moon. But I'm stuck on creating a ssc file.
Would it look like this?Or something like this?Code: Select all
AltSurface "64k-Moon-VT" "Sol/Earth/Moon"
{
Texture "64k-moon.ctx"
}Code: Select all
AltSurface "Moon:Earth II" "Sol/Earth"{
Texture "64k-moon.ctx"
}
I don't run windows xp anymore so there is no way for me to test the script.
cartrite
Code: Select all
AltSurface "Moon16KVT (~praesepe)" "Sol/Earth/Moon"
{
Texture "Moon16KVT.ctx"
}
Code: Select all
Alt Surface "64k-Moon-VT" "Sol/Earth/Moon"
{
Texture "64k-moon.ctx"
}
But this is basically from solarsys.ssc that comes with Celestia.Incidentally, your second version will still work, however it will appear on the list of AltSurfaces for the Earth (with the name: "Moon"), and if selected will apply the Moon VT to the Earths surface.
Code: Select all
"Moon:Earth I" "Sol/Earth"
I don't think this was used in code posted hereUsage: gdal_translate [--help-general]
[-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
CInt16/CInt32/CFloat32/CFloat64}] [-strict]
[-of format] [-b band] [-expand {rgb|rgba}]
[-outsize xsize[%] ysize[%]]
[-scale [src_min src_max [dst_min dst_max]]]
[-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry]
[-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value]
[-gcp pixel line easting northing [elevation]]*
[-mo "META-TAG=VALUE"]* [-quiet] [-sds]
[-co "NAME=VALUE"]*
src_dataset dst_dataset
GDAL 1.7dev, FWTools 2.3.0, released 2009/01/06
The following format drivers are configured and support output:
VRT: Virtual Raster
GTiff: GeoTIFF
NITF: National Imagery Transmission Format
HFA: Erdas Imagine Images (.img)
ELAS: ELAS
AAIGrid: Arc/Info ASCII Grid
DTED: DTED Elevation Raster
PNG: Portable Network Graphics
JPEG: JPEG JFIF
MEM: In Memory Raster
GIF: Graphics Interchange Format (.gif)
XPM: X11 PixMap Format
BMP: MS Windows Device Independent Bitmap
PCIDSK: PCIDSK Database File
PCRaster: PCRaster Raster File
ILWIS: ILWIS Raster Map
SGI: SGI Image File Format 1.0
SRTMHGT: SRTMHGT File Format
Leveller: Leveller heightfield
Terragen: Terragen heightfield
GMT: GMT NetCDF Grid Format
netCDF: Network Common Data Format
HDF4Image: HDF4 Dataset
ERS: ERMapper .ers Labelled
ECW: ERMapper Compressed Wavelets
JP2ECW: ERMapper JPEG2000
FIT: FIT Image
RMF: Raster Matrix Format
RST: Idrisi Raster A.1
INGR: Intergraph Raster
GSAG: Golden Software ASCII Grid (.grd)
GSBG: Golden Software Binary Grid (.grd)
PNM: Portable Pixmap Format (netpbm)
ENVI: ENVI .hdr Labelled
EHdr: ESRI .hdr Labelled
PAux: PCI .aux Labelled
MFF: Vexcel MFF Raster
MFF2: Vexcel MFF2 (HKV) Raster
BT: VTP .bt (Binary Terrain) 1.3 Format
IDA: Image Data and Analysis
USGSDEM: USGS Optional ASCII DEM (and CDED)
ADRG: ARC Digitized Raster Graphics
BLX: Magellan topo (.blx)
I know I didn't use it. It looks like it could have been in color. I think it also defaulted to translating only band 1 which was the worst in my opinion. I had a pretty good look at the 500m cube files. Every band had different null areas.[-of format] [-b band] [-expand {rgb|rgba}]
cartrite wrote:I just ran a linux version and also saw something wrong. I though that the file was color?
How many bands are in UVVIS_Clementine_Basemap_v2_ll.jp2?
About that copy statement, Will "mv Clementine64k.bin level5" work in dos? It does in linux/bash.
I left the copy statement as is but I think I corrected the grayscale issue.
cartrite
Code: Select all
mkdir level5
mkdir level4
mkdir level3
mkdir level2
mkdir level1
mkdir level0
move Clementine64k.bin level5
cd level5
tx2half 1 65536 < Clementine64k.bin > ..\level4\Clementine32k.bin
txtiles 1 65536 5 < Clementine64k.bin
del Clementine64k.bin
cd ..\level4
tx2half 1 32768 < Clementine32k.bin > ..\level3\Clementine16k.bin
txtiles 1 32768 4 < Clementine32k.bin
del Clementine32k.bin
cd ..\level3
tx2half 1 16384 < Clementine16k.bin > ..\level2\Clementine8k.bin
txtiles 1 16384 3 < Clementine16k.bin
del Clementine16k.bin
cd ..\level2
tx2half 1 8192 < Clementine8k.bin > ..\level1\Clementine4k.bin
txtiles 1 8192 2 < Clementine8k.bin
del Clementine8k.bin
cd ..\level1
tx2half 1 4096 < Clementine4k.bin > ..\level0\Clementine2k.bin
txtiles 1 4096 1 < Clementine4k.bin
del Clementine4k.bin
cd ..\level0
txtiles 1 2048 0 < Clementine2k.bin
del Clementine2k.bin
cd ..
cartrite wrote:Just a thought. If you just installed the linux version of gdal and the jpeg libraries are in your library path, maybe they are causing your moon rendering problems in KDE?
cartrite
cartrite wrote:I just tried gdal_translate on the jp2 file again with "-b 2" and it did come up with an error because it was only a 1 band file.
I put the open in the script so it should work good now and have all the other folders and files needed for a VT.
I didn't think mv would work with windows but I couldn't remember what would.
These isis cube files have 5 bands though.
http://ser.sese.asu.edu/MOON/CLEM_COLOR ... est.cub.gz
http://ser.sese.asu.edu/MOON/CLEM_COLOR ... ast.cub.gz
That's what was confusing me.
cartrite
cartrite wrote:The latest link I found to F-TexTools is version 2.0pre1
http://www.celestialmatters.org/users/t ... .0pre1.zip
I have a link to the Clementine file in a readme.txt file in the folder with the script.
Do you have a link to version pre2?
If so, I'll put that in the read me too. Then I'll make the modifications to the readme file.
The script already has the open statement. It should be almost the same as you posted. I got extra lines to change directories. That shouldn't matter. I deleted the other version that had problems.
cartrite
Code: Select all
mkdir level5
mkdir level4
mkdir level3
mkdir level2
mkdir level1
mkdir level0
move Clementine64k.bin level5
tx2half 1 65536 < level5\Clementine64k.bin > level4\Clementine32k.bin
cd level5
txtiles 1 65536 5 < Clementine64k.bin
del Clementine64k.bin
cd ..\
tx2half 1 32768 < level4\Clementine32k.bin > level3\Clementine16k.bin
cd level4
txtiles 1 32768 4 < Clementine32k.bin
del Clementine32k.bin
cd ..\
tx2half 1 16384 < level3\Clementine16k.bin > level2\Clementine8k.bin
cd level3
txtiles 1 16384 3 < Clementine16k.bin
del Clementine16k.bin
cd ..\
tx2half 1 8192 < level2\Clementine8k.bin > level1\Clementine4k.bin
cd level2
txtiles 1 8192 2 < Clementine8k.bin
del Clementine8k.bin
cd ..\
tx2half 1 4096 < level1\Clementine4k.bin > level0\Clementine2k.bin
cd level1
txtiles 1 4096 1 < Clementine4k.bin
del Clementine4k.bin
cd ..\
cd level0
txtiles 1 2048 0 < Clementine2k.bin
del Clementine2k.bin
They have to see the readme in order to run the script. Can't be sure they will read it though.Download and install F-TexTools 2.0 from here. http://www.celestialmatters.org/users/t ... .0pre1.zip
Download http://www.celestialmatters.org/users/t ... 4k.bin.zip and unzip it to this folder. Be sure to save the original zip file. The working .bin files are deleted by this script to save disk space.
Then run the batch file make-moon-vt.bat. After it finishes, copy or move the moon-vt folder to your extras folder.
I guess maybe the script should also be in the top directory. But I can't test for typo's or paths and that could get messy. If I was only running XPNavigate to 64k-moon-texture-kit\moon-vt\textures\hires\moon.
There you will find the script and another readme. This will have further
download links. Run the bat file from that directory.
After the script finishes, copy the moon-vt folder to your extras folder