Back

Putting Your Character into the VR System

Process Image/Texture

  • Open Gimp (Gimp is similar to photshop) (type gimp in terminal window)
    • make texture size in powers of 2
    • make alpha channel for part that will be transparent
    • save as .rgb or .sgi

Put Image on to Cube

  • copy cube.iv to myHead.iv (or myLeg.iv etc)
  • use text editor to open myHead.iv file
  • alter height, width, depth parameters to be what you want (very thin)
  • put your texture name into the file
  • check the file (type perfly + name of your .iv file)
    • texture should be on cube but transparency is not yet working

Put Image on to Dummy polygon

  • get dummy.iv file from my models directory and put in your models dir
  • copy dummy.iv to myHead.iv (or myLeg.iv etc)
  • use text editor to open myHead.iv file
  • put your texture name into the file
  • check the file (type perfly + name of your .iv file)
    • texture should be on cube but transparency is not yet working
  • if you need to change size use pftransform command line tool
  • ~depape/bin/pftransform -s3 xsize ysize zsize myHead.iv myHead.pfb
    • to see options for this tool type only ~depape/bin/pftransform
  • to move pivot point of the model
    • use this tool to look at the model
      • ~depape/bin/pfBounds
    • use pftransform to move the object
      • ~depape/bin/pftransform -t xpos ypos zpos

Make image on cube transparent & change file format

  • use this command line tool
  • ~depape/bin/pfTransparency infile outfiile
    • eg depape/bin/pfTransparency infile myHead.pfb
    • infile is either file.iv if you did not change size or file.pfb
  • (alternatively explicitly tell photoshop to add alpha channel?)
  • check file