Re: Ptu (Performer Terrain Utility) samples?

New Message Reply Date view Thread view Subject view Author view

Chris Tanner (cct++at++faith)
Thu, 11 Aug 1994 17:39:24 -0700


On Aug 10, 5:34pm, Jan A. Barglowski wrote:
> Subject: Ptu (Performer Terrain Utility) samples?
> Does anyone use the PTU loader? If so, can I possible get a .ptu file, and
> the corresponding terrain image and overlays?
>
> The manual says the terrain height is calculated by the brightness of the
> monochromatic image. Is this a limitation to between 0-255, or can you use
> a 16-bit mono image to get better resolution?
>
> In looking at the ptu loader code and the description of parameters in the
> manual, they don't seem to be the same. Something for the doc
> department...
>
> For government users, I just got a copy of a program called MUSE, from the
> DMA. It allows various sort of maps (imagery) to be created from just
> about any DMA data format. I was able to extract out a nice tiff image of
> an exact area from an ADRG CDROM in just a few minutes...
>
> jan.
>
>
> Jan Anthony Barglowski Phone: (619) 927-1057
> Computer Dude Internet: jan++at++archimedes.nwc.navy.mil
> Visualization Lab Packet: SYSOP++at++WA6YBN.#SOCA.CA.US.NA
> Naval Air Warfare Center kc6uth++at++kc6uth.ampr.org
> -Weapons Division [44.17.2.6]
>
>
>
>
>-- End of excerpt from Jan A. Barglowski

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 _____________________________________________________________


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:26 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.