It is currently Sat, 19-08-17, 5:35 GMT

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Virtual texture tools
PostPosted: Mon, 12-05-14, 20:09 GMT 
Offline

Joined: Mon, 05-05-14, 3:48 GMT
Posts: 9
I was about to create a virtual texture but unfortunately the tools at http://www.shatters.net/~t00fri/virtualtex, are no longer available, could anyone help me obtain them?


Top
 Profile  
 
PostPosted: Mon, 12-05-14, 20:50 GMT 
Offline
Site Admin
User avatar

Joined: Fri, 31-08-07, 7:01 GMT
Posts: 4474
Location: Hamburg, Germany
zhar2 wrote:
I was about to create a virtual texture but unfortunately the tools at http://www.shatters.net/~t00fri/virtualtex, are no longer available, could anyone help me obtain them?


;-)

Since I am the author, you naturally find the latest versions at CM. Go here

viewtopic.php?f=6&t=70

My tools for normalmap tiles are called NmTools, the tools for VT surface textures
are called F-TexTools. They work fine also for Win 7. No idea about Win 8.x

There is also a dedicated dept. called 'Texture Tools' here
viewforum.php?f=6

You might also like my detailed tutorial about making normalmap tiles with my tools. It's a bit old but still useful I gather.

http://www.celestialmatters.org/?q=node/10

Enjoy,
Fridger

_________________
Image


Top
 Profile  
 
PostPosted: Mon, 12-05-14, 20:58 GMT 
Offline

Joined: Mon, 05-05-14, 3:48 GMT
Posts: 9
Oh thank you so much, im having some really bizarre issues with a project of mine, but you made my day!

this is my project http://www.worldofgotha.com/atlas/index.html

I am trying to create a texture tree to use in either celestia, Cesium or osgEarth. but needless to say its an uphill battle.


Top
 Profile  
 
PostPosted: Thu, 22-05-14, 1:03 GMT 
Offline
User avatar

Joined: Tue, 04-09-07, 21:55 GMT
Posts: 758
Location: N 42.38846 W 83.45456
the OLD virtual texture script using Imagemagick is this
Code:
#! /bin/bash
if [ $# -lt 3 -o "$1" = "--help" ]; then
  echo
  echo 'Usage: virtualtex [--help | <texture name> <tile size> <tile format>] [e|E|w|W]'
  echo
  echo
  echo The shell script \'virtualtex\' is a tool for Celestia \> 1.3.0
  echo that supports \'virtual textures\'.
  echo
  echo The script generates the required tiles tx_i_j of \
       desired \(square\) size, 
  echo \<tile size\>, in a specified format, \<tile format\> = \
       png, tga, jpg,...,
  echo from an input texture, \<texture name\>, in any popular graphics format.
  echo
  echo The optional 4th argument e\|E\|w\|W is for the case of tiling 
  echo square /e/astern \| /w/estern halfes of the full texture separately!
  echo 
  echo Besides Linux/Unix, the script also runs in a current Cygwin \
       installation
  echo under Windows, \( http://www.cygwin.com \). If the z-shell \(\'zsh\'\) \
       is unavailable,
  echo it also may be executed with the \'bash\' shell, by replacing \
       \#\! /usr/bin/zsh by
  echo \#\! /bin/bash in the first line.
  echo
  echo The script assumes that a recent version \(\>= 6.1.8\) of the ImageMagick package
  echo \( http://www.ImageMagick.org \) is installed \
       \(either under Unix/Linux or Windows\).
  echo The utilities \'convert\' and \'identify\' of that package are used.
  echo
  echo You may increase the pixel cache size \$maxmem from the 80 MB default
  echo value to e.g. 80\% of your RAM size within the script with an editor.
  echo This will speed up the performance of \'virtualtex\' considerably.
  echo
  echo On a PIII/512MB RAM the tiling of a 16k x 8k texture into
  echo 32 \(2k x 2k\) tiles now only takes 15 minutes with a Linux OS!
  echo
  echo Author: Dr. Fridger Schrempp, fridger.schrempp@desy.de
  echo Version: 1.04, 02/15/05
  echo 
else
maxmem=80
texturesize=`identify -format "%wx%h" $1`
texturewidth=`identify -format "%w" $1`
textureheight=`identify -format "%h" $1`
tilesize=$2
tileformat="$3"
echo
echo "Texture size = " $texturewidth "x" $textureheight "tilesize = " $tilesize
echo "Number of tiles =" $(( ((texturewidth/tilesize)) * ((textureheight/tilesize)) ))
echo "Image format of tiles:" $tileformat
echo
echo "Tile: "
echo

convert -cache $maxmem -crop ${tilesize}x${tilesize} $1 out%d.$tileformat


j=0
while (( j * tilesize + tilesize <=  textureheight )); do
    ((offy = j * tilesize))
    if [ $# -eq 4 ]; then
   if [ "$4" = "e" -o "$4" = "E" ]; then
       ioff=$(( texturewidth/tilesize ))
   elif [ "$4" = "w" -o "$4" = "W" ]; then
       ioff=0
        else
            echo
            echo "*** Incorrect 4th parameter! ***"
            echo
            return
        fi
    fi
    i=0
    while (( i * tilesize + tilesize <= texturewidth )); do
        ((offx = i * tilesize))
        echo "tx_"$((i + ioff))"_"${j}":  x-offset:" $((offx + ioff * tilesize)) "y-offset:" $offy
    mv out$((i+ ((texturewidth/tilesize)) * j)).$tileformat tx_$((i + ioff))_${j}.$tileformat
        ((i++))
    done
    ((j++))
done
fi

I still use it for cloud maps ( transparency support in IM)


but from your post you are just cutting images into tiles
there are many ways to do that
for images numbered 1,2,3,4,5... and so on to 65536
Nip2 has a built in "chop" tool
http://www.vips.ecs.soton.ac.uk/index.php?title=VIPS

_________________
"I don't pitch Linux to my friends, I let Microsoft do that for me."
Using OpenSUSE 42.1 & Scientific Linux 6.7


Top
 Profile  
 
PostPosted: Thu, 22-05-14, 4:53 GMT 
Offline
User avatar

Joined: Mon, 03-09-07, 23:01 GMT
Posts: 385
Location: Tuscany, Tyrrhenian Sea
John Van Vliet wrote:
I still use it for cloud maps ( transparency support in IM)


After quite a long attempts I found how F-TexTools does manage transparent PNGs without to add black dots at profiles' boundary image/canvas: must be checked the option below in GIMP (in english sound like: "save color values from transparent points"
Attachment:
gimppng.png
gimppng.png [ 5.38 KiB | Viewed 1865 times ]

_________________
Never at rest.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group