Changes between Version 13 and Version 14 of OsgTerrainData


Ignore:
Timestamp:
Oct 27, 2011, 10:06:51 PM (13 years ago)
Author:
Torben Dannhauer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OsgTerrainData

    v13 v14  
    6565
    6666To shift system load from HDD to CPU, compress all textures lossless with LZW. This will decrease rendering time a lot, because usually the HDD ist the bottleneck.
     67
     68This is an example bash script to process the images:
    6769{{{
    68 #!sh
    69 gdal_translate -co "COMPRESS=LZW" unsw ToDo
     70mkdir /home/user/your/path/to/imagery/compressed
     71
     72cat compressFolder_LZW.sh
     73
     74#!/bin/bash
     75cd /home/user/your/path/to/imagery
     76for file in `dir -d *` ; do
     77echo "$file :"
     78/usr/bin/gdal_translate -of GTiff -co "COMPRESS=LZW" $file compressed/$file
     79done
    7080}}}
     81
     82==create overviews
     83
     84To reduce system load to resize the terrain textures on the fly multiple times, you should consider to create overviews embedded into your imagery.
     85This allows VPB to use the existing overview of the fitting dimensions instead of creating it every time from scratch.
     86Additionally you can improve the image quality, because VPB uses as OpenGL default the nearest neighbour interpolation, which results in bad texture quality.
     87You can choose between several interpolation algorithms like average, gauss or cubic interpolation.
     88
     89Average interpolation has the advantage that is does not involve a 3x3 or 4x4 matrix, but only the adjacent pixels itself. So it does not lead to black edges on curved imagery edges with adjacent NODATA pixels.
     90Gauss interpolation is only suitable on tiles without NOTDATA values, gut it smoothes the image which leads to better results in images with sharp edges or high frequency content.
     91
     92This is an example bash script to process the images:
     93{{{
     94cat createAddons.sh
     95
     96#!/bin/bash
     97cd /home/user/your/path/to/imagery
     98for file in `dir -d *` ; do
     99echo "$file :"
     100/usr/bin/gdaladdo --config COMPRESS_OVERVIEW LZW -r average $file 2 4 8 16 32 64 128
     101done
     102}}}
     103
    71104
    72105== Moon Data ==