Create a Color WRL File From an Echo Scan
  1. Launch the scanning software and take a scan with color. You will see something similar to the illustration below:
  2. [Scan]
    CyScan
  3. Save the file in the Echo format by selecting Save As Echo... from the File menu.
  4. [Save As]
    CyScan Save As Menu
  5. Save the file as "scan000". This action will automatically save the color map as "scan000.tif".
  6. [Save the File]
    CyScan Save As Dialog
  7. Exit CyScan.
  8. Open CySurf/CyEdit+.
  9. Select Scan>>Open Range....
  10. [Open Range]
    CySurf/CyEdit+ Scan Menu
  11. Pick the scan000 file. It will appear in the CySurf main window.
  12. [Select Scan]
    Select Range File
  13. Click Dismiss.
  14. Open the color texture map, "scan000.tif" in the Scan Color dialog box.
  15. [Select Color]
    Select Color File
  16. Click Dismiss.
  17. Do any editing that you would normally do, such as Suture, Despike, and Fill-Cap.
  18. Save the file as "scan000a" using the Scan>>Save Range... menu selection.
  19. [Save Range]
    CySurf/CyEdit+ Scan Menu
  20. Click Dismiss.
  21. Save the color texture map as "scan000a.tif".
  22. Click Dismiss. Also, click Dismiss in the View File dialog that follows.
  23. Select Scan>>Save As Ply....
  24. [Save Ply]
    CySurf/CyEdit+ Scan Menu

    Set the following switches at save time (if available):

    Color:UV
    Center-:No
    Points:Grid

    Use the filename, "scan000a.ply", for the purposes of this example.

    [Save Ply]
    CySurf/CyEdit+ Save Ply Dialog

    Optional:
    If you would like to see the color texture map in Plyview, ensure that the texture map uses the same filename as the associated Ply file (scan000a.tif in this example). Then, load the file into Plyview and hit the "c" key to shade the object with the color map.

  25. Click Dismiss.
  26. Exit CySurf.
  27. Open the file for conversion to VRML by launching Mtool and loading the file, "scan000a.ply".
  28. Set a target number of faces in the Faces section, near the top of the window.
  29. Enable the Sort Faces option in Mtool.
  30. In the Output section, pick ".wrl" and name the file "scan.wrl". Select Output, then Convert.
  31. [MTool Setup]
    MTool Setup
  32. Exit Mtool when this process is complete.
  33. Use an image processor to convert the color texture map (scan.color or scan.tif) to JPEG. Save the file as "scan.jpg".
  34. Open the WRL file in a text editor.
  35. Search for "jpg" in the WRL file. You should find something similar to this:
  36. material Material { diffuseColor 1 1 1 }
    texture ImageTexture { url "./mtba00840.jpg" } }
    geometry DEF ./mtba00840 IndexedFaceSet
  37. Change the path and filename of the JPG file to point to the file you created in step 21. For this example, the file should be modified as follows (only the texture entry will change):
  38. material Material { diffuseColor 1 1 1 }
    texture ImageTexture { url "./scan.jpg" } }
    geometry DEF ./mtba00840 IndexedFaceSet
  39. Save the file and quit the text editor.
  40. Load the file into your web browser.