UNWRAP.PXP Copyright 1996
Written by Peter Watje
Internet   peterw@blarg.net
Compuserve 74453,225

UNWRAP.PXP is a pxp that unwraps the texture map coordinates of 
an object and place them in a bitmap.  Similiar to the function
in Meshpaint.  You can mark vertices with colors and see where
they are in the texture map.



Basic Usage

1. Create an object

2. Apply mapping coordinates to the object

3. Load up the pxp

4. Bring in the object into the PXP by hitting on the Pick Object
button and selecting the object

5. Set the size of the output texure map size using the X,Y fields 

6. Mark any vertices that you want to stand out first by 
selecting a color using the COLOR button.  Then press the SELECT 
button and marquee the vertices that you want marked.  You can
deselect the vertices by holding the ALT key when marking 
vertices.  Repeat as necessary.

7. Hit the OK button and select a file to save the texture out.

8. Edit the texture in a paint program.  Photoshop is excellent 
tool to do this especially with its ability to handle layers.



Reference

Pick Object - loads an object into the IPAS routine
Template - allows you to load a template object

X field is the texture maps width
Y field is the texture maps height

About - brings up the about box
Preferences - brings up the preference box which controls
the interface look and feel

Pan - pans your viewport
Rotate - rotates your viewport
Zoom - zooms your viewport in and out

The pan, rotate, and zoom work by clicking on the button and 
then clicking in the viewport and moving the mouse.  Left click 
again to accept the changes or right click to cancel.


Select - allows you to change the color the vertices in the 
texture map

Color - changes the color of the next set of selected vertices.

T/B/L/R/F/K - top/bottom/left/right/front/back views

Fit - fits the object to the viewport

Render - renders the the viewport based on the preference dialog 
either flator gouraud.



About me

This IPAS routine was written fairly quickly (less than 6 hours) 
so I decided to release it as shareware.  I take no 
responsiblity for any damage that may occur from using this 
routine.  This IPAS can be distributed freely, however if you 
want to post this routine to a webpage, ftp site, buletin board,
or anything similiar please email for permission first before 
you do so.


I also write commercial IPAS routines so if you find this 
routine useful you can support me by purchasing my other 
routines such as MAGNET.PXP from Digimation.


I have plans for several more routine both shareware and 
commercial listed below.


Alpha cropping tool for sprites
Displacement mapping
Hair generator 
Keyframe database manager
Lip sync/facial expression tool

If you have any questions or suggestions feel free to contact me 
through my compuserve or internet account.


Known Bugs

There has been no testing with Release 3 so I do not know if 
works with R3.

I think there is a memory leak in the IPAS but have not been 
able to find it yet so repeative uses might cause a crash.

Texture maps larger than 1000x1000 take some time to generate be 
patient.

The color swatch on the right does not update correctly.

Texture that wrap either horizontal or vertically sometime don't 
wrap right on the textures.

This routine has not been throughly tested so there probably 
are stills few bugs.



