Chris Tanner (cct++at++faith)
Thu, 11 Aug 1994 17:39:24 -0700
The format in the programming guide is missing a field...
The real format is...
TerrainNodeName
#LODs /* Typically 3-5 */
#TilesX #TilesY /* The more the better (4-10,4-10) */
ScaleX ScaleY ScaleZ /* Pixel->Performer Unit description of elevation data
*/
Elevation.bw SizeX SizeY /* bw or fit data 8 or 16 bit *should* work*/
/* Note sizeX sizeY tell Performer the highest
resolution */
/* Of the data across the whole terrain - Performer
will use */
/* ImageVision library to downsample to this resolution
and */
/* tile the data */
Satellite.rgb SizeX SizeY /* Specifies an RGB image to drape over the
elevation data */
/* Once again SizeX SizeY specify the resolution the
image */
/* should be sampled down to before tiling occurs */
/* IL is used for this as well */
DetailTexture.rgb <spline1> <spline2> <spline3> <spline4>
/* Optional detail texture and detail texture spline */
/* Have seen some anomolies when using detail
texture...*/
A Sample File ("ystone.ptu")
yellowstone
4
8 8
200.0 200.0 5.0
/usr/demos/data/Performer/terrain/ystone1024.bw 1024 1024
/usr/demos/data/Performer/terrain/ystone2048.rgb 2048 2048
detail.rgb
where...
cct++at++faith>> istat
/hosts/rose/d2/people/demos/data/Performer/terrain/ystone2048.rgb
xsize ysize zsize min max bpp type storage name
2048 2048 3 0 255 1 NORMAL verb ystone2048.rgb
cct++at++faith>> istat
/hosts/rose/d2/people/demos/data/Performer/terrain/ystone1024.bw
xsize ysize zsize min max bpp type storage name
1024 1024 1 0 3712 2 NORMAL verb ystone1024.bw
The ptu stuff isnt perfect, but it makes it easy to fly over terrain data
getting decent performance
without much effort. (Remember that its just utility stuff though and isnt
intend to be THE solution, rather its just a helpful utility)
Later,
Chris Tanner
IRIS Performer
--_____________________________________________________________ Chris Tanner (cct++at++faith.asd.sgi.com) Silicon Graphics - Advanced Graphics Division _____________________________________________________________
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:26 PDT